model cleanup
* add __repr__() to all current module objects (fixes #10) * pep8 fixes in all Python files (addresses #9) * create subdirectory for customer templates (addresses #2) git-svn-id: file:///var/www/wwwusers/usr01/svn/pyalchemybiz/trunk@8 389c73d4-bf09-4d3d-a15e-f94a37d0667a
This commit is contained in:
parent
1228fcef3c
commit
b53e8c48df
20 changed files with 67 additions and 25 deletions
|
|
@ -12,6 +12,7 @@ import pyalchemybiz.lib.app_globals as app_globals
|
|||
import pyalchemybiz.lib.helpers
|
||||
from pyalchemybiz.config.routing import make_map
|
||||
|
||||
|
||||
def load_environment(global_conf, app_conf):
|
||||
"""Configure the Pylons environment via the ``pylons.config``
|
||||
object
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ from pylons.wsgiapp import PylonsApp
|
|||
|
||||
from pyalchemybiz.config.environment import load_environment
|
||||
|
||||
|
||||
def make_app(global_conf, full_stack=True, **app_conf):
|
||||
"""Create a Pylons WSGI application and return it
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ refer to the routes manual at http://routes.groovie.org/docs/
|
|||
from pylons import config
|
||||
from routes import Mapper
|
||||
|
||||
|
||||
def make_map():
|
||||
"""Create, configure and return the routes Mapper"""
|
||||
map = Mapper(directory=config['pylons.paths']['controllers'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue