[Checkins]
SVN: gocept.zope3instance/trunk/src/gocept/zope3instance/__init__.py
refactored recipe to be able to use validateZ3Path from other
recipes
Christian Zagrodnick
cz at gocept.com
Thu Feb 8 04:40:31 EST 2007
Log message for revision 72448:
refactored recipe to be able to use validateZ3Path from other recipes
Changed:
U gocept.zope3instance/trunk/src/gocept/zope3instance/__init__.py
-=-
Modified: gocept.zope3instance/trunk/src/gocept/zope3instance/__init__.py
===================================================================
--- gocept.zope3instance/trunk/src/gocept/zope3instance/__init__.py 2007-02-08 07:48:58 UTC (rev 72447)
+++ gocept.zope3instance/trunk/src/gocept/zope3instance/__init__.py 2007-02-08 09:40:29 UTC (rev 72448)
@@ -65,7 +65,7 @@
def install(self):
options = self.options
- z3path = self._validateZ3Path(options['zope3-location'])
+ z3path = self.validateZ3Path(options['zope3-location'])
extra = options.get('extra-paths')
if extra:
@@ -197,7 +197,8 @@
file(new_name, 'w').write(new_contents)
os.remove(in_file)
- def _validateZ3Path(self, path):
+ @staticmethod
+ def validateZ3Path(path):
"""Validate that a given absolute path is a Zope 3 installation or checkout.
Return the path that should be added to the PYTHONPATH for the generated
More information about the Checkins
mailing list