[Checkins]
SVN: Sandbox/philikon/mkzopeapp/trunk/mkzopeapp/__init__.py
Actually render template variables.
Philipp von Weitershausen
philikon at philikon.de
Mon Jul 9 11:39:08 EDT 2007
Log message for revision 77660:
Actually render template variables.
Changed:
U Sandbox/philikon/mkzopeapp/trunk/mkzopeapp/__init__.py
-=-
Modified: Sandbox/philikon/mkzopeapp/trunk/mkzopeapp/__init__.py
===================================================================
--- Sandbox/philikon/mkzopeapp/trunk/mkzopeapp/__init__.py 2007-07-09 15:33:14 UTC (rev 77659)
+++ Sandbox/philikon/mkzopeapp/trunk/mkzopeapp/__init__.py 2007-07-09 15:39:08 UTC (rev 77660)
@@ -1,6 +1,7 @@
import sys
from paste.script import templates, command
from paste.script.templates import var, NoDefault
+from paste.util.template import paste_script_template_renderer
class MakeZopeApp(templates.BasicPackage):
_template_dir = 'make_zope_app'
@@ -18,6 +19,14 @@
default=NoDefault),
]
+ template_renderer = staticmethod(paste_script_template_renderer)
+
+ def check_vars(self, vars, cmd):
+ vars = super(DeployZopeApp, self).check_vars(vars, cmd)
+ # TODO check whether 'develop = .' is actually needed
+ vars['develop'] = '.'
+ return vars
+
def make_zope_app():
extra_args = sys.argv[1:]
command.run(['create', '-t', 'make_zope_app'] + extra_args)
More information about the Checkins
mailing list