[Erp5-report] r38530 fx.algrain - in /experimental/bt5/erp5_credential: SkinTemplateItem/po...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 21 17:47:37 CEST 2010


Author: fx.algrain
Date: Tue Sep 21 17:47:36 2010
New Revision: 38530

URL: http://svn.erp5.org?rev=38530&view=rev
Log:
Set the docstring.
Remove default value of propety_name. There is no sense to call this script without a value for this parameter

Modified:
    experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberPersonValue.xml
    experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberSubordinationValue.xml
    experimental/bt5/erp5_credential/bt/revision

Modified: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberPersonValue.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberPersonValue.xml?rev=38530&r1=38529&r2=38530&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberPersonValue.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberPersonValue.xml [utf8] Tue Sep 21 17:47:36 2010
@@ -50,8 +50,11 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
-if person is not None and property_name is not None:\n
+            <value> <string>"""Get property on Person of current user\n
+Parameter:\n
+property_name -- property to get, Mandatory (String, Example: "title")"""\n
+person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
+if person is not None:\n
   return person.getProperty(property_name, None)\n
 return None\n
 </string> </value>
@@ -64,7 +67,7 @@ return None\n
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>property_name=None</string> </value>
+            <value> <string>property_name</string> </value>
         </item>
         <item>
             <key> <string>_proxy_roles</string> </key>
@@ -112,9 +115,7 @@ return None\n
         <item>
             <key> <string>func_defaults</string> </key>
             <value>
-              <tuple>
-                <none/>
-              </tuple>
+              <none/>
             </value>
         </item>
         <item>

Modified: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberSubordinationValue.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberSubordinationValue.xml?rev=38530&r1=38529&r2=38530&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberSubordinationValue.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getPropertyFromAuthenticatedMemberSubordinationValue.xml [utf8] Tue Sep 21 17:47:36 2010
@@ -50,8 +50,11 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
-if person is not None and property_name is not None:\n
+            <value> <string>"""Get property on the Organisation of current user\n
+Parameter:\n
+property_name -- property to get, Mandatory (String, Example: "title")"""\n
+person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
+if person is not None:\n
   organisation = person.getDefaultCareerSubordinationValue()\n
   if organisation is not None:\n
     return organisation.getProperty(property_name, None)\n
@@ -66,7 +69,7 @@ return None\n
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>property_name=None</string> </value>
+            <value> <string>property_name</string> </value>
         </item>
         <item>
             <key> <string>_proxy_roles</string> </key>
@@ -115,9 +118,7 @@ return None\n
         <item>
             <key> <string>func_defaults</string> </key>
             <value>
-              <tuple>
-                <none/>
-              </tuple>
+              <none/>
             </value>
         </item>
         <item>

Modified: experimental/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/revision?rev=38530&r1=38529&r2=38530&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/revision [utf8] Tue Sep 21 17:47:36 2010
@@ -1 +1 @@
-173
\ No newline at end of file
+177
\ No newline at end of file




More information about the Erp5-report mailing list