Skip to content

Commit

Permalink
moved showmarc.py from plugins/openlibrary/ to views/.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Chitipothu committed Nov 4, 2013
1 parent 3dff054 commit 99f1777
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This repository contains the code that powers https://openlibrary.org/
## Code Oraganization

* openlibrary/core - core openlibrary functionality, imported and used by www
* openlibrary/www - website
* openlibrary/views - views for rendering web pages
* openlibrary/templates - all the tempaltes used in the website
* openlibrary/macros - macros are like templates, but can be called from wikitext
* openlibrary/plugins - legacy code. will be moved to core and www soon.
Expand Down
7 changes: 7 additions & 0 deletions openlibrary/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def setup():
macro.load_macros(path, lazy=True)
i18n.load_strings(path)
__import__(modname, globals(), locals(), ['plugins'])

load_views()
logger.info("loading complete.")

def setup_logging():
Expand All @@ -37,4 +39,9 @@ def setup_logging():
print >> sys.stderr, "Unable to set logging configuration:", str(e)
raise

def load_views():
"""Registers all views by loading all view modules.
"""
from .views import showmarc

setup()
Empty file added openlibrary/views/__init__.py
Empty file.
File renamed without changes.

0 comments on commit 99f1777

Please sign in to comment.