diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml index c98864964db589574b301499bdfab0afcc29ee10..b603973538cdb4d095bcebf9adf001c547473a7b 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml @@ -53,9 +53,7 @@ <value> <string># XXX Reference will be probably generated with dedicated tool\n # in near future\n \n -portal = context.getPortalObject()\n -portal_type = context.getPortalType()\n -type_definition = portal.portal_types[portal_type]\n +type_definition = context.getTypeInfo()\n \n short_portal_type = type_definition.getShortTitle()\n if not short_portal_type:\n @@ -115,14 +113,12 @@ context.edit(content_type=context.portal_preferences.getPreferredTextFormat(),\n <string>kw</string> <string>_getattr_</string> <string>context</string> - <string>portal</string> - <string>portal_type</string> - <string>_getitem_</string> <string>type_definition</string> <string>short_portal_type</string> <string>append</string> <string>$append0</string> <string>_getiter_</string> + <string>portal_type</string> <string>s</string> <string>id_group</string> <string>default</string> diff --git a/bt5/erp5_crm/bt/change_log b/bt5/erp5_crm/bt/change_log index 9d48f144824ec21683187aef43396dee1ac03cf9..52581c3331003890afc3972371437157f901fbc2 100644 --- a/bt5/erp5_crm/bt/change_log +++ b/bt5/erp5_crm/bt/change_log @@ -1,3 +1,6 @@ +2010-11-05 yusei +* Simplify Event_init. + 2010-10-14 lucas * Generate reference automatically for Support Request. diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index df2d2b6cee7f8de8a6bd944613e831192e343399..f35d9602e1a7b7da27644a48e1997c111e3bfd8c 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -497 \ No newline at end of file +498 \ No newline at end of file