Commit 5d0ca964 authored by Mayoro Diagne's avatar Mayoro Diagne

2010-06-29 mayoro

* Clean up page templates and scripts, remove french expression, use Locallizer for translation
* Add Agent role for procedure
* Rename Egov_getTendererFromUserName

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36686 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e36a953d
......@@ -54,7 +54,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>"""\n
Return the tenderer of the procédure \n
Return the tenderer of the procedure \n
ie: return the organisation on wich belong the user\n
if it doesn\'t exist return the user\n
"""\n
......@@ -129,7 +129,7 @@ return tenderer\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Egov_getTendererFromUserName</string> </value>
<value> <string>EGov_getTendererFromUserName</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
......@@ -91,7 +91,7 @@ password = context.Person_generatePassword()\n
form.setPassword(password)\n
\n
# the ownership is the form itself\n
form.manage_addLocalRoles(new_object_id, [\'Owner\',])\n
form.manage_addLocalRoles(new_object_id, [\'Owner\',\'Agent\'])\n
\n
\n
# login with this new form\n
......
......@@ -13,8 +13,8 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>default</string>
<string>title</string>
</list>
</value>
</item>
......@@ -81,6 +81,10 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_checkbox</string> </value>
......@@ -95,7 +99,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Origine du fonds de commerce(Création)</string> </value>
<value> <string>Origine du fonds de commerce(Creation)</string> </value>
</item>
</dictionary>
</value>
......
......@@ -13,8 +13,8 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>display_width</string>
<string>title</string>
</list>
</value>
</item>
......@@ -93,7 +93,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Préciser</string> </value>
<value> <string>Define</string> </value>
</item>
</dictionary>
</value>
......
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Dénomination</string> </value>
<value> <string>Denomination</string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<tal:block metal:define-macro="master">\n
<tal:block\n
tal:define="object_uid here/getUid | nothing;\n
object_path here/getPath | nothing;\n
form nocall: form | nothing;\n
form_id form/id | template/title_or_id | nothing;\n
portal here/getPortalObject;\n
form_action python: form and form.action not in (\'\', None) and portal.portal_membership.checkPermission(\'Modify portal content\', here) and form.action or nothing;\n
local_parameter_list local_parameter_list | python: {};\n
dummy python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n
title python: \'%s - %s\' % (portal.Base_translateString(template.title_or_id()), here.getTitle());\n
">\n
<tal:block metal:use-macro="here/main_template/macros/master">\n
<tal:block metal:fill-slot="context_bar">\n
<tal:block metal:use-macro="here/context_box_render/macros/master" />\n
</tal:block>\n
<tal:block metal:fill-slot="main">\n
<script type="text/javascript"\n
tal:condition="portal/portal_preferences/getPreferredHtmlStyleUnsavedFormWarning"\n
tal:define="message python:context.Base_translateString(\'You have unsaved changes\').replace(\'\\\'\', \'\\\\\\\'\')"\n
tal:content="string:installUnsavedChangesWarning(\'$message\')">\n
</script>\n
<div class="document"\n
tal:define="actions actions/object_view | python: []">\n
<div class="actions"\n
tal:condition="python: (not is_web_mode or editable_mode) and len(actions)">\n
<button tal:condition="python: not is_web_mode and form_action"\n
type="submit" class="save" title="Save"\n
tal:attributes="name string:${form_action}:method;\n
onClick string:javascript:clickSaveButton(\'${form_action}\');"\n
i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Save</span>\n
</button>\n
<ul>\n
<li tal:repeat="action actions"\n
tal:attributes="class python: action == current_action and \'selected\' or \'not_selected\'">\n
<a tal:attributes="href python: \'%s%s%s\' % (action[\'url\'], \'?\' in action[\'url\'] and \'&amp;\' or \'?\', http_parameters)"\n
><span i18n:translate="" i18n:domain="ui" tal:content="action/name">action_name</span></a>\n
</li>\n
</ul>\n
</div>\n
<div tal:attributes="class python: editable_mode and \'content editable\' or \'content\'">\n
<tal:block metal:define-slot="main" />\n
<div class="bottom_actions"\n
tal:condition="python: is_web_mode and editable_mode and len(actions) and form_action">\n
<input type="hidden" name="form_action" value=""\n
tal:attributes="value form_action" />\n
<input type="hidden" name="edit_document_url" value=""\n
tal:attributes="value python:\'%s/%s\' % (here.absolute_url(), form_id)" />\n
<input type="hidden" name="view_document_url" value=""\n
tal:attributes="value python:\'%s/%s\' % (here.absolute_url(), \'view\')" />\n
</div>\n
</div>\n
</div>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>view_main</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2010-06-28 mohamadou
* add a script in setUpEgovInstance to allow acces on Persons and Organisations to administrative agents
2010-06-29 mayoro
* Clean up page templates and scripts, remove french expression, use Locallizer for translation
* Add Agent role for procedure
* Rename Egov_getTendererFromUserName
2010-06-26 mayoro
* correct previous commit, use contentValues because of caching method
......
654
\ No newline at end of file
655
\ 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