From bd7ff9c2037fd3a5ed3b80dddb2cccb74a606920 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 25 May 2006 23:24:33 +0000
Subject: [PATCH] Update documentation for asPredicate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7502 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Predicate.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/Document/Predicate.py b/product/ERP5/Document/Predicate.py
index 77284df556..6540f471c9 100644
--- a/product/ERP5/Document/Predicate.py
+++ b/product/ERP5/Document/Predicate.py
@@ -437,11 +437,13 @@ class Predicate(Folder):
     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:
-- 
2.30.9