Commit f09b2acf authored by Fabien Morin's avatar Fabien Morin

update some listbox to be able to handle searchable text and to be able to...

update some listbox to be able to handle searchable text and to be able to sort application by modification date (descending).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24201 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6432e40f
......@@ -475,7 +475,7 @@
<list>
<tuple>
<string>modification_date</string>
<string>Modification Date</string>
<string>descending</string>
</tuple>
</list>
</value>
......@@ -505,6 +505,12 @@
<key> <string>title</string> </key>
<value> <string>My Documents</string> </value>
</item>
<item>
<key> <string>untranslatable_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value>
......
......@@ -92,7 +92,7 @@
<key> <string>hidden</string> </key>
<value>
<list>
<string>listbox_getCreationDate</string>
<string>listbox_modification_date</string>
</list>
</value>
</item>
......
......@@ -349,8 +349,8 @@
<string>Validation State</string>
</tuple>
<tuple>
<string>getCreationDate</string>
<string>Creation Date</string>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
</list>
</value>
......@@ -392,7 +392,7 @@
<value>
<list>
<tuple>
<string>getCreationDate</string>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
</list>
......@@ -469,7 +469,7 @@
<string>Application Number</string>
</tuple>
<tuple>
<string>owner</string>
<string>getOwner</string>
<string>Actor</string>
</tuple>
<tuple>
......@@ -481,8 +481,8 @@
<string>Validation State</string>
</tuple>
<tuple>
<string>getCreationDate</string>
<string>Creation Date</string>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
</list>
</value>
......@@ -500,8 +500,8 @@
<value>
<list>
<tuple>
<string>getCreationDate</string>
<string>getCreationDate</string>
<string>modification_date</string>
<string>descending</string>
</tuple>
</list>
</value>
......@@ -511,8 +511,8 @@
<value>
<list>
<tuple>
<string>getCreationDate</string>
<string>getCreationDate</string>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
</list>
</value>
......
......@@ -11,7 +11,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>listbox_getCreationDate</string> </value>
<value> <string>listbox_modification_date</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -342,7 +342,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Creation Date</string> </value>
<value> <string>Modification Date</string> </value>
</item>
</dictionary>
</value>
......
......@@ -56,10 +56,12 @@
<value> <string># get user name\n
user_name = context.portal_membership.getAuthenticatedMember().getUserName()\n
\n
return context.portal_catalog(portal_type=context.getPortalDocumentTypeList(), \n
sort_on=\'creation_date\', \n
sort_order=\'reverse\',\n
owner=user_name);\n
if not kw.has_key(\'portal_type\'):\n
kw[\'portal_type\'] = context.getPortalDocumentTypeList()\n
if not kw.has_key(\'sort_on\'): \n
kw[\'sort_on\']=[(\'modification_date\', \'descending\')]\n
return context.portal_catalog(owner=user_name,\n
**kw);\n
</string> </value>
</item>
<item>
......@@ -101,6 +103,8 @@ return context.portal_catalog(portal_type=context.getPortalDocumentTypeList(), \
<string>_getattr_</string>
<string>context</string>
<string>user_name</string>
<string>_write_</string>
<string>_apply_</string>
</tuple>
</value>
</item>
......
......@@ -55,26 +55,16 @@
<key> <string>_body</string> </key>
<value> <string>portal_type_list = context.EGov_getAllowedFormTypeList()\n
\n
validation_state_list=[ \'draft\',\n
\'submitted\', \n
\'paid\', \n
\'validated\', \n
\'assigned\', \n
\'open\', \n
\'requested\', \n
\'suspended\', \n
\'completed\', \n
\'disapproved\',\n
\'approved\',\n
\'signed\']\n
# get user name\n
user_name = context.portal_membership.getAuthenticatedMember().getUserName()\n
\n
return context.portal_catalog(portal_type=portal_type_list,\n
owner=user_name,\n
sort_on=\'creation_date\', \n
sort_order=\'reverse\',\n
validation_state=validation_state_list)\n
if not kw.has_key(\'portal_type\'):\n
kw[\'portal_type\'] = portal_type_list\n
if not kw.has_key(\'sort_on\'): \n
kw[\'sort_on\']=[(\'modification_date\', \'descending\')]\n
result = context.portal_catalog(owner=user_name,\n
**kw)\n
return result\n
</string> </value>
</item>
<item>
......@@ -116,8 +106,10 @@ return context.portal_catalog(portal_type=portal_type_list,\n
<string>_getattr_</string>
<string>context</string>
<string>portal_type_list</string>
<string>validation_state_list</string>
<string>user_name</string>
<string>_write_</string>
<string>_apply_</string>
<string>result</string>
</tuple>
</value>
</item>
......
......@@ -2,6 +2,7 @@
* update some listbox to display the last application in first
* update css
* add some rights on assignee to the validated state on egov_universal_workflow. This avoid a security error if an agent have an assigned application and refuse it (it will change the state of the application to validated and redirect the agent on it).
* update some listbox to be able to handle searchable text and to be able to sort application by modification date (descending).
2008-10-10 fabien
bring some corrections after the Mme Ba review :
......
391
\ No newline at end of file
394
\ 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