[Erp5-report] r38729 fabien - in /experimental/bt5/erp5_credential: SkinTemplateItem/portal...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 28 16:12:26 CEST 2010
Author: fabien
Date: Tue Sep 28 16:12:25 2010
New Revision: 38729
URL: http://svn.erp5.org?rev=38729&view=rev
Log:
add proxy_roles and make not possible to call from url
Modified:
experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setDefaultDestinationDecision.xml
experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setRegisteredInformationToPerson.xml
experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml
experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Credential_checkConsistency.xml
experimental/bt5/erp5_credential/bt/revision
Modified: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setDefaultDestinationDecision.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setDefaultDestinationDecision.xml?rev=38729&r1=38728&r2=38729&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setDefaultDestinationDecision.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setDefaultDestinationDecision.xml [utf8] Tue Sep 28 16:12:25 2010
@@ -51,7 +51,15 @@
<item>
<key> <string>_body</string> </key>
<value> <string>"""Create the related person and the related organisation\n
-Return related person and related organisation"""\n
+Return related person and related organisation\n
+Proxy:\n
+Auditor -- to be able to get destination_decision\n
+Author -- to be able to call newContent\n
+Assignee -- to be able to call setDestinationDecisionValueList"""\n
+\n
+# check the script is not called from a url\n
+if REQUEST is not None:\n
+ return None\n
\n
destination_list = context.getDestinationDecisionValueList()\n
update_destination_list = False\n
@@ -92,7 +100,17 @@ if update_destination_list:\n
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string>create_portal_type=["Person"]</string> </value>
+ <value> <string>create_portal_type=["Person"], REQUEST=None</string> </value>
+ </item>
+ <item>
+ <key> <string>_proxy_roles</string> </key>
+ <value>
+ <tuple>
+ <string>Assignee</string>
+ <string>Auditor</string>
+ <string>Author</string>
+ </tuple>
+ </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -112,13 +130,15 @@ if update_destination_list:\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>1</int> </value>
+ <value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>create_portal_type</string>
+ <string>REQUEST</string>
+ <string>None</string>
<string>_getattr_</string>
<string>context</string>
<string>destination_list</string>
@@ -152,6 +172,7 @@ if update_destination_list:\n
<list>
<string>Person</string>
</list>
+ <none/>
</tuple>
</value>
</item>
Modified: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setRegisteredInformationToPerson.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setRegisteredInformationToPerson.xml?rev=38729&r1=38728&r2=38729&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setRegisteredInformationToPerson.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_setRegisteredInformationToPerson.xml [utf8] Tue Sep 28 16:12:25 2010
@@ -50,7 +50,14 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>"""Copy subscription information to related person"""\n
+ <value> <string>"""Copy subscription information to related person\n
+Proxy:\n
+Assignee -- allow to modify the related person"""\n
+\n
+# check the script is not called from a url\n
+if REQUEST is not None:\n
+ return None\n
+\n
from Products.ERP5Type.Errors import UnsupportedWorkflowMethod\n
from Products.ERP5Type.Utils import sleep\n
\n
@@ -124,12 +131,14 @@ except UnsupportedWorkflowMethod, Attrib
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string></string> </value>
+ <value> <string>REQUEST=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
- <tuple/>
+ <tuple>
+ <string>Assignee</string>
+ </tuple>
</value>
</item>
<item>
@@ -150,12 +159,14 @@ except UnsupportedWorkflowMethod, Attrib
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>0</int> </value>
+ <value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
+ <string>REQUEST</string>
+ <string>None</string>
<string>Products.ERP5Type.Errors</string>
<string>UnsupportedWorkflowMethod</string>
<string>Products.ERP5Type.Utils</string>
@@ -164,7 +175,6 @@ except UnsupportedWorkflowMethod, Attrib
<string>context</string>
<string>person</string>
<string>getattr</string>
- <string>None</string>
<string>default_career</string>
<string>DateTime</string>
<string>person_mapping</string>
@@ -180,7 +190,9 @@ except UnsupportedWorkflowMethod, Attrib
<item>
<key> <string>func_defaults</string> </key>
<value>
- <none/>
+ <tuple>
+ <none/>
+ </tuple>
</value>
</item>
<item>
Modified: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml?rev=38729&r1=38728&r2=38729&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml [utf8] Tue Sep 28 16:12:25 2010
@@ -50,7 +50,12 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>"""Create an assingment for the person depending credential request configuration"""\n
+ <value> <string>"""Create an assingment for the person depending credential request configuration\n
+Proxy: Assignee -- allow to update the related assignement"""\n
+\n
+# check the script is not called from a url\n
+if REQUEST is not None:\n
+ return None\n
\n
person = context.getDestinationDecisionValue(portal_type="Person")\n
organisation = context.getDestinationDecisionValue(portal_type="Organisation")\n
@@ -108,12 +113,14 @@ for role,create_assingment in assignment
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string></string> </value>
+ <value> <string>REQUEST=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
- <tuple/>
+ <tuple>
+ <string>Assignee</string>
+ </tuple>
</value>
</item>
<item>
@@ -134,12 +141,14 @@ for role,create_assingment in assignment
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>0</int> </value>
+ <value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
+ <string>REQUEST</string>
+ <string>None</string>
<string>_getattr_</string>
<string>context</string>
<string>person</string>
@@ -158,7 +167,6 @@ for role,create_assingment in assignment
<string>DateTime</string>
<string>today</string>
<string>delay</string>
- <string>None</string>
<string>organisation_url</string>
<string>create_assingment</string>
<string>assignment_for_website</string>
@@ -175,7 +183,9 @@ for role,create_assingment in assignment
<item>
<key> <string>func_defaults</string> </key>
<value>
- <none/>
+ <tuple>
+ <none/>
+ </tuple>
</value>
</item>
<item>
Modified: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Credential_checkConsistency.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Credential_checkConsistency.xml?rev=38729&r1=38728&r2=38729&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Credential_checkConsistency.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Credential_checkConsistency.xml [utf8] Tue Sep 28 16:12:25 2010
@@ -53,7 +53,9 @@
<value> <string>"""Check credential consistency. Usefull before make some actions\n
By default, just a related person is required, please override this script if you want more.\n
Parameter: \n
-destination_decision_type - List of portal type required in destination decision value list"""\n
+destination_decision_type - List of portal type required in destination decision value list\n
+Proxy:\n
+Assignee -- allow to check credential informations"""\n
\n
for portal_type in destination_decision_type:\n
destination = context.getDestinationDecisionValue(portal_type=portal_type)\n
@@ -72,6 +74,14 @@ for portal_type in destination_decision_
<value> <string>destination_decision_type=[\'Person\']</string> </value>
</item>
<item>
+ <key> <string>_proxy_roles</string> </key>
+ <value>
+ <tuple>
+ <string>Assignee</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
<key> <string>errors</string> </key>
<value>
<tuple/>
Modified: experimental/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/revision?rev=38729&r1=38728&r2=38729&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/revision [utf8] Tue Sep 28 16:12:25 2010
@@ -1 +1 @@
-208
\ No newline at end of file
+209
\ No newline at end of file
More information about the Erp5-report
mailing list