[Erp5-report] r33763 nicolas - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 16 17:17:32 CET 2010
Author: nicolas
Date: Tue Mar 16 17:17:31 2010
New Revision: 33763
URL: http://svn.erp5.org?rev=33763&view=rev
Log:
rename variable
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=33763&r1=33762&r2=33763&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Tue Mar 16 17:17:31 2010
@@ -2080,8 +2080,8 @@
self._objects['%s/%s' % (self.class_property, id,)] = item_type_list
def install(self, context, trashbin, **kw):
- p = context.getPortalObject()
- pt = p.unrestrictedTraverse('portal_types')
+ portal = context.getPortalObject()
+ types_tool = getToolByName(portal, 'portal_types')
update_dict = kw.get('object_to_update')
force = kw.get('force')
installed_bt = kw.get('installed_bt')
More information about the Erp5-report
mailing list