removed egg directory and modified set_config so it does not require pecan before calling conf

This commit is contained in:
Alfredo Deza
2010-12-06 10:06:20 -05:00
parent 906fa276d2
commit ccdcd2b494
10 changed files with 3 additions and 50 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
pecan.egg-info

View File

@@ -1,10 +0,0 @@
Metadata-Version: 1.0
Name: pecan
Version: 0.1dev
Summary: A WSGI object-dispatching web framework, in the spirit of TurboGears, only much much smaller, with many fewer dependencies.
Home-page: http://github.com/cleverdevil/pecan
Author: Jonathan LaCour
Author-email: jonathan@cleverdevil.org
License: BSD
Description: UNKNOWN
Platform: UNKNOWN

View File

@@ -1,22 +0,0 @@
README
setup.cfg
setup.py
pecan/__init__.py
pecan/configuration.py
pecan/decorators.py
pecan/hooks.py
pecan/jsonify.py
pecan/pecan.py
pecan/rest.py
pecan/routing.py
pecan/secure.py
pecan/templating.py
pecan.egg-info/PKG-INFO
pecan.egg-info/SOURCES.txt
pecan.egg-info/dependency_links.txt
pecan.egg-info/entry_points.txt
pecan.egg-info/requires.txt
pecan.egg-info/top_level.txt
pecan.egg-info/zip-safe
templates/__init__.py
tests/templates/__init__.py

View File

@@ -1 +0,0 @@

View File

@@ -1,4 +0,0 @@
[paste.paster_create_template]
pecan-base = templates:NewProjectTemplate

View File

@@ -1 +0,0 @@

View File

@@ -1,7 +0,0 @@
WebOb == 1.0.0
WebCore == 1.0.0
simplegeneric == 0.7
Kajiki == 0.3.1
Paste == 1.7.5.1
PasteScript == 1.7.3
formencode == 1.2.2

View File

@@ -1,3 +0,0 @@
templates
tests
pecan

View File

@@ -23,4 +23,4 @@ def make_app(root, static_root=None, debug=False, errorcfg={}, **kw):
return app
def set_config(name):
pecan.conf.update_with_module(name)
conf.update_with_module(name)

View File

@@ -7,7 +7,7 @@ if __name__ == '__main__':
sys.exit(1)
runtime_conf = set_config(sys.argv[1])
app_conf = runtime_conf.application
app_conf = runtime_conf.app
serv_conf = runtime_conf.server
app = make_app(