[Checkins] SVN: grokproject/trunk/grokproject/__init__.py Fix
https://bugs.launchpad.net/grok/+bug/119805:
Philipp von Weitershausen
philikon at philikon.de
Fri Jul 13 13:04:30 EDT 2007
Log message for revision 77878:
Fix https://bugs.launchpad.net/grok/+bug/119805:
grok project can't be called 'grok' or 'zope'.
Changed:
U grokproject/trunk/grokproject/__init__.py
-=-
Modified: grokproject/trunk/grokproject/__init__.py
===================================================================
--- grokproject/trunk/grokproject/__init__.py 2007-07-13 16:35:33 UTC (rev 77877)
+++ grokproject/trunk/grokproject/__init__.py 2007-07-13 17:04:30 UTC (rev 77878)
@@ -28,6 +28,12 @@
vars['module'] = module[:-3]
else:
raise command.BadCommand('Bad module name: %s' % module)
+ if vars['package'] in ('grok', 'zope'):
+ print
+ print "Error: The chosen project name results in an invalid " \
+ "package name: %s." % vars['package']
+ print "Please choose a different project name."
+ sys.exit(1)
return vars
def main():
More information about the Checkins
mailing list