[Erp5-report] r7502 - /erp5/trunk/products/ERP5/Document/Predicate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 26 01:24:38 CEST 2006


Author: jerome
Date: Fri May 26 01:24:33 2006
New Revision: 7502

URL: http://svn.erp5.org?rev=7502&view=rev
Log:
Update documentation for asPredicate

Modified:
    erp5/trunk/products/ERP5/Document/Predicate.py

Modified: erp5/trunk/products/ERP5/Document/Predicate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Predicate.py?rev=7502&r1=7501&r2=7502&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Predicate.py (original)
+++ erp5/trunk/products/ERP5/Document/Predicate.py Fri May 26 01:24:33 2006
@@ -437,11 +437,13 @@
     return new_self
 
   # Predicate handling
-  security.declareProtected(Permissions.AccessContentsInformation, 'asPredicate')
-  def asPredicate(self,script_id=None):
+  security.declareProtected(Permissions.AccessContentsInformation,
+                            'asPredicate')
+  def asPredicate(self, script_id=None):
     """
       This method tries to convert the current Document into a predicate
-      looking up methods named Class_asPredictae, MetaType_asPredicate, PortalType_asPredicate
+      looking up methods named ${PortalType}_asPredicate,
+      ${MetaType}_asPredicate, ${Class}_asPredicate     
     """
     script = self._getTypeBasedMethod('asPredicate', script_id=script_id)
     if script is not None:




More information about the Erp5-report mailing list