[Checkins] SVN: grokproject/trunk/grokproject/templates.py Set the include_site_packages conditionally so we have a chance to override it in a template inheriting from grok template.

Vincent Fretin vincent.fretin at gmail.com
Sun Jan 2 09:19:06 EST 2011


Log message for revision 119252:
  Set the include_site_packages conditionally so we have a chance to override it in a template inheriting from grok template.

Changed:
  U   grokproject/trunk/grokproject/templates.py

-=-
Modified: grokproject/trunk/grokproject/templates.py
===================================================================
--- grokproject/trunk/grokproject/templates.py	2011-01-01 14:08:49 UTC (rev 119251)
+++ grokproject/trunk/grokproject/templates.py	2011-01-02 14:19:06 UTC (rev 119252)
@@ -104,8 +104,11 @@
 
         vars['package_directory'] = os.path.abspath(os.path.join(
                 os.getcwd(), vars['project']))
-        vars['include_site_packages'] = 'false'
 
+        include_site_packages = vars.get('include_site_packages')
+        if include_site_packages is None:
+            vars['include_site_packages'] = 'false'
+
         return vars
 
     def download(self, url):



More information about the checkins mailing list