From 8abf779958e3601d1a17cdb29de1197f5b80e004 Mon Sep 17 00:00:00 2001 From: xrotwang Date: Tue, 11 Feb 2014 19:45:29 +0100 Subject: [PATCH] more work on scaffold --- .../clld_app/+package+/scripts/initializedb.py_tmpl | 4 ++++ clldmpg/scaffolds/clld_app/setup.py_tmpl | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/clldmpg/scaffolds/clld_app/+package+/scripts/initializedb.py_tmpl b/clldmpg/scaffolds/clld_app/+package+/scripts/initializedb.py_tmpl index 6bf64ac..4c67695 100644 --- a/clldmpg/scaffolds/clld_app/+package+/scripts/initializedb.py_tmpl +++ b/clldmpg/scaffolds/clld_app/+package+/scripts/initializedb.py_tmpl @@ -14,6 +14,7 @@ def main(args): dataset = common.Dataset( id={{package}}.__name__, + name="--TODO--", publisher_name ="Max Planck Institute for Evolutionary Anthropology", publisher_place="Leipzig", publisher_url="http://www.eva.mpg.de", @@ -21,6 +22,9 @@ def main(args): domain='{{package}}.clld.org') DBSession.add(dataset) + # + # TODO: add editors! + # def prime_cache(args): """If data needs to be denormalized for lookup, do that here. diff --git a/clldmpg/scaffolds/clld_app/setup.py_tmpl b/clldmpg/scaffolds/clld_app/setup.py_tmpl index d915f90..fc9c4fe 100644 --- a/clldmpg/scaffolds/clld_app/setup.py_tmpl +++ b/clldmpg/scaffolds/clld_app/setup.py_tmpl @@ -39,5 +39,8 @@ setup(name='{{project}}', install_requires=requires, tests_require=requires, test_suite="{{package}}", - entry_points="", + entry_points="""\ +[paste.app_factory] +main = {{package}}:main +""", )