[CMF-checkins] CVS: CMF - Criterion.py:1.3
Jeffrey Shell
jeffrey@digicool.com
Wed, 11 Apr 2001 14:39:34 -0400 (EDT)
Update of /cvs-repository/CMF/CMFTopic/interfaces
In directory korak:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFTopic/interfaces
Modified Files:
Criterion.py
Log Message:
Dealing with CMF Topic issue (248), a lot of work done to move usage of REQUEST out of Topic.py and into Python Scripts in the default Topic skins.
--- Updated File Criterion.py in package CMF --
--- Criterion.py 2001/03/01 16:59:05 1.2
+++ Criterion.py 2001/04/11 18:39:32 1.3
@@ -124,6 +124,16 @@
Editforms should be specific to their type of criteria.
"""
+ def apply(self, command):
+ """\
+ To make it easier to apply values from the rather dynamic
+ Criterion edit form using Python Scripts, apply takes a
+ mapping object as a default and applies itself to self.edit.
+
+ It's basically a nice and protected wrapper around
+ apply(self.edit, (), command).
+ """
+
def edit(self, **kw):
"""\
The signature of this method should be specific to the