Commit bd7ff9c2 authored by Jérome Perrin's avatar Jérome Perrin

Update documentation for asPredicate


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7502 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c07d7df5
...@@ -437,11 +437,13 @@ class Predicate(Folder): ...@@ -437,11 +437,13 @@ class Predicate(Folder):
return new_self return new_self
# Predicate handling # Predicate handling
security.declareProtected(Permissions.AccessContentsInformation, 'asPredicate') security.declareProtected(Permissions.AccessContentsInformation,
def asPredicate(self,script_id=None): 'asPredicate')
def asPredicate(self, script_id=None):
""" """
This method tries to convert the current Document into a predicate 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) script = self._getTypeBasedMethod('asPredicate', script_id=script_id)
if script is not None: if script is not None:
......
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