Commit 3afe785c authored by Yusei Tahara's avatar Yusei Tahara

2010-11-05 yusei

* Simplify Event_init.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39939 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 09946657
...@@ -53,9 +53,7 @@ ...@@ -53,9 +53,7 @@
<value> <string># XXX Reference will be probably generated with dedicated tool\n <value> <string># XXX Reference will be probably generated with dedicated tool\n
# in near future\n # in near future\n
\n \n
portal = context.getPortalObject()\n type_definition = context.getTypeInfo()\n
portal_type = context.getPortalType()\n
type_definition = portal.portal_types[portal_type]\n
\n \n
short_portal_type = type_definition.getShortTitle()\n short_portal_type = type_definition.getShortTitle()\n
if not short_portal_type:\n if not short_portal_type:\n
...@@ -115,14 +113,12 @@ context.edit(content_type=context.portal_preferences.getPreferredTextFormat(),\n ...@@ -115,14 +113,12 @@ context.edit(content_type=context.portal_preferences.getPreferredTextFormat(),\n
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string>
<string>portal_type</string>
<string>_getitem_</string>
<string>type_definition</string> <string>type_definition</string>
<string>short_portal_type</string> <string>short_portal_type</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>portal_type</string>
<string>s</string> <string>s</string>
<string>id_group</string> <string>id_group</string>
<string>default</string> <string>default</string>
......
2010-11-05 yusei
* Simplify Event_init.
2010-10-14 lucas 2010-10-14 lucas
* Generate reference automatically for Support Request. * Generate reference automatically for Support Request.
......
497 498
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment