Commit 7bbb5644 authored by Mayoro Diagne's avatar Mayoro Diagne

2010-06-23 mayoro

* modify ERP5Site_getQuickSearchableTypeList to allow processing anonymous and not anonymous procedure
* after login redirect in desired default page (default view)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36558 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e669b84a
...@@ -53,7 +53,16 @@ ...@@ -53,7 +53,16 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>type_list = context.EGov_getAllowedFormTypeList() + (\'Person\', \'Organisation\')\n <value> <string>portal_types = context.getPortalObject().portal_types\n
validated_type_list = portal_types.searchFolder(portal_type=\'EGov Type\', validation_state = \'validated\')\n
\n
portal_type_list = ()\n
\n
for portal_type in validated_type_list:\n
portal_type_list += (portal_type.getTitle(),)\n
\n
\n
type_list = portal_type_list + (\'Person\', \'Organisation\')\n
return type_list\n return type_list\n
</string> </value> </string> </value>
</item> </item>
...@@ -93,6 +102,12 @@ return type_list\n ...@@ -93,6 +102,12 @@ return type_list\n
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal_types</string>
<string>validated_type_list</string>
<string>portal_type_list</string>
<string>_getiter_</string>
<string>portal_type</string>
<string>_inplacevar_</string>
<string>type_list</string> <string>type_list</string>
</tuple> </tuple>
</value> </value>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: here.EGov_checkUserIsAPersonOrOrganisation()==True or here.EGov_getUserDocumentUrl()==None">\n <tal:block tal:condition="python: here.EGov_checkUserIsAPersonOrOrganisation()==True or here.EGov_getUserDocumentUrl()==None">\n
<tal:block tal:define="came_from python: request.get(\'came_from\') or request.get(\'field_came_from\') or request.get(\'field_came_from\') or here.absolute_url() + \'/view\';\n <tal:block tal:define="came_from python: request.get(\'came_from\') or request.get(\'field_came_from\') or request.get(\'field_came_from\') or here.absolute_url();\n
dummy python: response.redirect(came_from);" />\n dummy python: response.redirect(came_from);" />\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
......
2010-06-23 mayoro
* modify ERP5Site_getQuickSearchableTypeList to allow processing anonymous and not anonymous procedure
* after login redirect in desired default page (default view)
2010-06-23 mayoro 2010-06-23 mayoro
* Allow manager to set own password for procedures * Allow manager to set own password for procedures
......
609 613
\ 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