Commit c0c05a19 authored by Fabien Morin's avatar Fabien Morin

2008-06-04 fabien

* enhance EGov_Base_editAndNextStep script, now it should be possible to not
have a modified Base_edit script
* moved here some script from safi_tva bt

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21324 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bc1736fa
msgid "" msgid ""
msgstr "Project-Id-Version: ERP5 Localized Interface\n" msgstr "Project-Id-Version: ERP5 Localized Interface\n"
"POT-Creation-Date: 2008-05-29 14:05+CET\n" "POT-Creation-Date: 2008-06-04 19:06+CET\n"
"PO-Revision-Date: 2008-05-29 14:05+CET\n" "PO-Revision-Date: 2008-06-04 19:06+CET\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: fr <>\n" "Language-Team: fr <>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
...@@ -561,6 +561,9 @@ msgstr "Alarme" ...@@ -561,6 +561,9 @@ msgstr "Alarme"
msgid "Alarm Tool" msgid "Alarm Tool"
msgstr "Outil Alarme" msgstr "Outil Alarme"
msgid "All Applications"
msgstr ""
msgid "All Documents" msgid "All Documents"
msgstr "Tous les documents" msgstr "Tous les documents"
...@@ -570,15 +573,24 @@ msgstr "" ...@@ -570,15 +573,24 @@ msgstr ""
msgid "All Rights Reserved to the DGID" msgid "All Rights Reserved to the DGID"
msgstr "Tous Droits réservés à la DGID" msgstr "Tous Droits réservés à la DGID"
msgid "All attached files add to your application"
msgstr ""
msgid "All documents" msgid "All documents"
msgstr "" msgstr ""
msgid "All documents add to your requests" msgid "All documents add to your requests"
msgstr "Tous les documents ajoutés à votre demande" msgstr "Tous les documents ajoutés à votre demande"
msgid "All documents resulting of your application"
msgstr ""
msgid "All documents resulting of your requests" msgid "All documents resulting of your requests"
msgstr "Tous les documents résultants de votre demande" msgstr "Tous les documents résultants de votre demande"
msgid "All events related on your application"
msgstr ""
msgid "All pending Applications" msgid "All pending Applications"
msgstr "Toutes les demandes en cours" msgstr "Toutes les demandes en cours"
...@@ -2322,9 +2334,15 @@ msgstr "" ...@@ -2322,9 +2334,15 @@ msgstr ""
msgid "ERP5 eGov Universal Workflow" msgid "ERP5 eGov Universal Workflow"
msgstr "" msgstr ""
msgid "ERP5 eGov anonymous Workflow"
msgstr ""
msgid "ERP5 eGov test Workflow" msgid "ERP5 eGov test Workflow"
msgstr "" msgstr ""
msgid "ERP5 eGov universal Workflow"
msgstr ""
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
...@@ -2766,6 +2784,9 @@ msgstr "Clé IBAN" ...@@ -2766,6 +2784,9 @@ msgstr "Clé IBAN"
msgid "ID" msgid "ID"
msgstr "" msgstr ""
msgid "ID Card"
msgstr ""
msgid "ID of a page template or form which defines the rendering layout for contents" msgid "ID of a page template or form which defines the rendering layout for contents"
msgstr "" msgstr ""
...@@ -3123,6 +3144,9 @@ msgstr "Déconnexion" ...@@ -3123,6 +3144,9 @@ msgstr "Déconnexion"
msgid "Long Title" msgid "Long Title"
msgstr "" msgstr ""
msgid "M0 Form"
msgstr ""
msgid "MIME Type" msgid "MIME Type"
msgstr "" msgstr ""
...@@ -3144,6 +3168,9 @@ msgstr "" ...@@ -3144,6 +3168,9 @@ msgstr ""
msgid "Manage Business Templates" msgid "Manage Business Templates"
msgstr "" msgstr ""
msgid "Mandate Form"
msgstr ""
msgid "Mandate Form Module" msgid "Mandate Form Module"
msgstr "" msgstr ""
...@@ -3456,6 +3483,9 @@ msgstr "Seulement les document de type" ...@@ -3456,6 +3483,9 @@ msgstr "Seulement les document de type"
msgid "Only document whith this actor" msgid "Only document whith this actor"
msgstr "" msgstr ""
msgid "Only document with this actor"
msgstr ""
msgid "Open" msgid "Open"
msgstr "Ouvert" msgstr "Ouvert"
...@@ -4695,6 +4725,9 @@ msgstr "Tout Montrer" ...@@ -4695,6 +4725,9 @@ msgstr "Tout Montrer"
msgid "Si vous n'êtes pas un citoyen sénégalais, vous devez joindre votre carte d'identité" msgid "Si vous n'êtes pas un citoyen sénégalais, vous devez joindre votre carte d'identité"
msgstr "" msgstr ""
msgid "Sign"
msgstr ""
msgid "Signature Preview" msgid "Signature Preview"
msgstr "Aperçu de la signature" msgstr "Aperçu de la signature"
...@@ -6057,6 +6090,12 @@ msgstr "Vous avez été déconnecté. Merci d'avoir utilisé ce site web." ...@@ -6057,6 +6090,12 @@ msgstr "Vous avez été déconnecté. Merci d'avoir utilisé ce site web."
msgid "You have no documents." msgid "You have no documents."
msgstr "" msgstr ""
msgid "You have to join the boss of the company identity card"
msgstr ""
msgid "You have to provide a M0 form copy"
msgstr ""
msgid "You may now logout or go home and proceed to other applications:" msgid "You may now logout or go home and proceed to other applications:"
msgstr "Vous pouvez maintenant vous déconnecter ou retourner à l'accueil pour effectuer d'autres demandes :" msgstr "Vous pouvez maintenant vous déconnecter ou retourner à l'accueil pour effectuer d'autres demandes :"
...@@ -6072,6 +6111,9 @@ msgstr "Vous trouverez ci-dessous la liste des pièces jointe qui doivent ou peu ...@@ -6072,6 +6111,9 @@ msgstr "Vous trouverez ci-dessous la liste des pièces jointe qui doivent ou peu
msgid "Your application has been submitted successfully" msgid "Your application has been submitted successfully"
msgstr "Votre demande à bien été prise en compte" msgstr "Votre demande à bien été prise en compte"
msgid "Your application has been submitted successfully under the reference"
msgstr ""
msgid "Your request has been submitted successfully" msgid "Your request has been submitted successfully"
msgstr "Votre demande à bien été prise en compte" msgstr "Votre demande à bien été prise en compte"
...@@ -6153,6 +6195,9 @@ msgstr "" ...@@ -6153,6 +6195,9 @@ msgstr ""
msgid "cash_status" msgid "cash_status"
msgstr "Etat de valeur" msgstr "Etat de valeur"
msgid "clean"
msgstr ""
msgid "closed" msgid "closed"
msgstr "" msgstr ""
......
...@@ -86,7 +86,7 @@ if context.portal_membership.isAnonymousUser():\n ...@@ -86,7 +86,7 @@ if context.portal_membership.isAnonymousUser():\n
\n \n
next_url_dict = {\n next_url_dict = {\n
\'DeclarationTVA_view\' : \'DeclarationTVA_viewAttachmentList\',\n \'DeclarationTVA_view\' : \'DeclarationTVA_viewAttachmentList\',\n
\'DeclarationTVA_viewAttachmentList\' : \'PDFDocument_viewLoginInformation\'\n \'SubscriptionForm_view\': \'SubscriptionForm_viewAttachmentList\',\n
}\n }\n
\n \n
# edit the document with the entered data before to change of state\n # edit the document with the entered data before to change of state\n
...@@ -101,15 +101,7 @@ context.Base_edit(form_id=form_id, \n ...@@ -101,15 +101,7 @@ context.Base_edit(form_id=form_id, \n
\n \n
if not next_url_dict.has_key(form_id):\n if not next_url_dict.has_key(form_id):\n
next_url = \'PDFDocument_viewLoginInformation\'\n next_url = \'PDFDocument_viewLoginInformation\'\n
context.submit()\n # if the next url is PDFDocument_viewLoginInformation, submit the application\n
else:\n
next_url = next_url_dict[form_id]\n
\n
successful_edit_redirect_url = \'%s/%s\' % (context.absolute_url(), next_url)\n
\n
# if the current step is DeclarationTVA_viewAttachmentList, the document must\n
# be submitted\n
if form_id == \'DeclarationTVA_viewAttachmentList\':\n
try : \n try : \n
context.portal_workflow.doActionFor(context,\n context.portal_workflow.doActionFor(context,\n
\'submit_action\')\n \'submit_action\')\n
...@@ -117,6 +109,11 @@ if form_id == \'DeclarationTVA_viewAttachmentList\':\n ...@@ -117,6 +109,11 @@ if form_id == \'DeclarationTVA_viewAttachmentList\':\n
return request[\'RESPONSE\'].redirect(\n return request[\'RESPONSE\'].redirect(\n
"%s/%s?portal_status_message=%s" %\n "%s/%s?portal_status_message=%s" %\n
(context.absolute_url(), form_id, message))\n (context.absolute_url(), form_id, message))\n
#context.submit()\n
else:\n
next_url = next_url_dict[form_id]\n
\n
successful_edit_redirect_url = \'%s/%s\' % (context.absolute_url(), next_url)\n
\n \n
result = request[\'RESPONSE\'].redirect(successful_edit_redirect_url) \n result = request[\'RESPONSE\'].redirect(successful_edit_redirect_url) \n
return result\n return result\n
......
...@@ -65,34 +65,22 @@ ...@@ -65,34 +65,22 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>\'\'\'This script check that all required files have been uploaded\'\'\'\n <value> <string>\'\'\'\n
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n Return a list of user documents corresponding to the title\n
portal = context.getPortalObject()\n \'\'\'\n
N_ = portal.Base_translateString\n
\n \n
document = state_change[\'object\']\n
portal_type = document.getPortalType()\n
\n \n
# dict of required documents\n user_corresponding_document_list = []\n
attachement_type_dict = {\'Carte ID\':\'Required\',\n
\'Tableau des d\xc3\xa9penses\':\'Optional\',\n
\'D\xc3\xa9tail des \xc3\xa9xon\xc3\xa9ratations\':\'Required\',\n
\'Application Certificate\':\'Optional\',\n
}\n
\n \n
document_title_list = [x.getTitle() for x in document.contentValues(portal_type=\'File\')]\n # here we must search in the user digital safe documents that have the given title\n
#XXX to be done\n
\n \n
required_title_list = [x for x,y in attachement_type_dict.items() if y == \'Required\']\n if not len(user_corresponding_document_list):\n
user_corresponding_document_list.append(\'Your digital safe contains no relevant document\')\n
else:\n
user_corresponding_document_list.append(\'Other\')\n
\n \n
message = \'The following documents are missing to submit the request :\'\n return user_corresponding_document_list\n
missing_document_list = []\n
for required_title in required_title_list:\n
if required_title not in document_title_list:\n
missing_document_list.append(\'%s\' % required_title)\n
\n
if len(missing_document_list):\n
message = N_(message)\n
raise ValidationFailed, "%s %s" % (message, \', \'.join(missing_document_list))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -107,9 +95,15 @@ if len(missing_document_list):\n ...@@ -107,9 +95,15 @@ if len(missing_document_list):\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>state_change</string> </value> <value> <string>title=None</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -135,28 +129,10 @@ if len(missing_document_list):\n ...@@ -135,28 +129,10 @@ if len(missing_document_list):\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>title</string>
<string>Products.DCWorkflow.DCWorkflow</string> <string>user_corresponding_document_list</string>
<string>ValidationFailed</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>N_</string>
<string>_getitem_</string>
<string>document</string>
<string>portal_type</string>
<string>attachement_type_dict</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>x</string>
<string>document_title_list</string>
<string>y</string>
<string>required_title_list</string>
<string>message</string>
<string>missing_document_list</string>
<string>required_title</string>
<string>len</string> <string>len</string>
<string>_getattr_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -168,12 +144,14 @@ if len(missing_document_list):\n ...@@ -168,12 +144,14 @@ if len(missing_document_list):\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>PDFDocument_validateFormDataBeforeSubmission</string> </value> <value> <string>EGov_getAttachmentListFromDigitalSafe</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<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_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<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>_body</string> </key>
<value> <string>params = context.portal_selections.getSelectionParamsFor(\'attachment_selection\',\n
REQUEST=context.REQUEST)\n
\n
return params[\'attachment_list\']\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>*args,**kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>args</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>params</string>
<string>_getitem_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>EGov_getAttachmentListFromReportSelection</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
This diff is collapsed.
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <none/>
</value> </value>
</item> </item>
<item> <item>
...@@ -64,26 +64,4 @@ ...@@ -64,26 +64,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Owner</string>
<string>Assignor</string>
<string>Assignee</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
<value> <value>
<list> <list>
<string>Declaration TVA</string> <string>Declaration TVA</string>
<string>Subscription Form</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -67,28 +67,41 @@ ...@@ -67,28 +67,41 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>\'\'\'This script check that all required files have been uploaded\'\'\'\n <value> <string>\'\'\'This script check that all required files have been uploaded\'\'\'\n
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
portal = state_change.getPortalObject()\n document = state_change[\'object\']\n
portal = document.getPortalObject()\n
N_ = portal.Base_translateString\n N_ = portal.Base_translateString\n
\n \n
document = state_change[\'object\']\n
portal_type = document.getPortalType()\n portal_type = document.getPortalType()\n
\n \n
# dict of required documents\n # dict of required documents\n
attachement_type_dict = {\'Carte ID\':\'Required\',\n attachement_type_dict = { \'Declaration TVA\':\n
\'Tableau des d\xc3\xa9penses\':\'Optional\',\n {\n
\'D\xc3\xa9tail des \xc3\xa9xon\xc3\xa9ratations\':\'Required\',\n \'Carte ID\':\'Required\',\n
\'Application Certificate\':\'Optional\',\n \'Tableau des d\xc3\xa9penses\':\'Optional\',\n
\'D\xc3\xa9tail des \xc3\xa9xon\xc3\xa9ratations\':\'Required\',\n
\'Application Certificate\':\'Optional\',\n
},\n
\'Subscription Form\':\n
{\n
\'ID Card\':\'Required\',\n
\'M0 Form\':\'Required\',\n
}\n
}\n }\n
\n \n
# if the portal type is not mapped, no attached files are required\n
if not attachement_type_dict.has_key(portal_type):\n
return\n
\n
document_title_list = [x.getTitle() for x in document.contentValues(portal_type=\'File\')]\n document_title_list = [x.getTitle() for x in document.contentValues(portal_type=\'File\')]\n
\n \n
required_title_list = [x for x,y in attachement_type_dict.items() if y == \'Required\']\n # get only required documents\n
required_title_list = [x for x,y in attachement_type_dict[portal_type].items() if y == \'Required\']\n
\n \n
message = \'The following documents are missing to submit the request :\'\n message = \'The following documents are missing to submit the request :\'\n
missing_document_list = []\n missing_document_list = []\n
for required_title in required_title_list:\n for required_title in required_title_list:\n
if required_title not in document_title_list:\n if required_title not in document_title_list:\n
missing_document_list.append(\'%s\' % required_title)\n missing_document_list.append(N_(required_title))\n
\n \n
if len(missing_document_list):\n if len(missing_document_list):\n
message = N_(message)\n message = N_(message)\n
...@@ -138,11 +151,11 @@ if len(missing_document_list):\n ...@@ -138,11 +151,11 @@ if len(missing_document_list):\n
<string>state_change</string> <string>state_change</string>
<string>Products.DCWorkflow.DCWorkflow</string> <string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string> <string>ValidationFailed</string>
<string>_getitem_</string>
<string>document</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>portal</string> <string>portal</string>
<string>N_</string> <string>N_</string>
<string>_getitem_</string>
<string>document</string>
<string>portal_type</string> <string>portal_type</string>
<string>attachement_type_dict</string> <string>attachement_type_dict</string>
<string>append</string> <string>append</string>
......
2008-06-04 fabien
* enhance EGov_Base_editAndNextStep script, now it should be possible to not
have a modified Base_edit script
* moved here some script from safi_tva bt
2008-05-26 fabien 2008-05-26 fabien
bt refactoring : bt refactoring :
* change portal_types names * change portal_types names
......
116 125
\ No newline at end of file \ No newline at end of file
testEGovMixin
\ 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