[Erp5-report] r41517 jm - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Dec 18 02:59:01 CET 2010


Author: jm
Date: Sat Dec 18 02:59:00 2010
New Revision: 41517

URL: http://svn.erp5.org?rev=41517&view=rev
Log:
Stop exporting '_arg' and 'template' attributes of Z SQL Methods

This is a follow-up of 38356, now that most erp5_* Business Templates can only
be installed on instances using new portal types as classes.

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=41517&r1=41516&r2=41517&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Sat Dec 18 02:59:00 2010
@@ -565,8 +565,8 @@ class BaseTemplateItem(Implicit, Persist
         for attr in 'errors', 'warnings', '_proxy_roles':
           if not obj.__dict__.get(attr, 1):
             delattr(obj, attr)
-      #elif classname == 'SQL' and klass.__module__== 'Products.ZSQLMethods':
-      #  attr_set.update(('_arg', 'template'))
+      elif classname == 'SQL' and klass.__module__== 'Products.ZSQLMethods.SQL':
+        attr_set.update(('_arg', 'template'))
       elif interfaces.IIdGenerator.providedBy(obj):
         attr_set.update(('last_max_id_dict', 'last_id_dict'))
 



More information about the Erp5-report mailing list