[Erp5-report] r38798 fx.algrain - /experimental/bt5/erp5_credential/SkinTemplateItem/portal...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 30 14:00:11 CEST 2010
Author: fx.algrain
Date: Thu Sep 30 14:00:11 2010
New Revision: 38798
URL: http://svn.erp5.org?rev=38798&view=rev
Log:
Allow to call "context.CredentialRequest_checkLoginAvailability('ref',None)"
=> Use check login from an other script
Modified:
experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_checkLoginAvailability.xml
Modified: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_checkLoginAvailability.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_checkLoginAvailability.xml?rev=38798&r1=38797&r2=38798&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_checkLoginAvailability.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_checkLoginAvailability.xml [utf8] Thu Sep 30 14:00:11 2010
@@ -58,6 +58,8 @@ value -- field value (string)\n
RESQEST -- standard REQUEST variable"""\n
\n
def getRealContext():\n
+ if not REQUEST:\n
+ return context\n
object_path = REQUEST.get("object_path")\n
portal = context.getPortalObject()\n
return portal.restrictedTraverse(object_path)\n
@@ -69,7 +71,6 @@ if member is not None \\\n
and value != "Anonymous User":\n
return True\n
\n
-\n
context = getRealContext()\n
#Allow reference for person in relation with the credential request\n
if context.getPortalType() == "Credential Request":\n
More information about the Erp5-report
mailing list