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 @@
<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>
......
2010-11-05 yusei
* Simplify Event_init.
2010-10-14 lucas
* Generate reference automatically for Support Request.
......
497
\ No newline at end of file
498
\ 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