How do I construct a method of an object, so that whenever that method
is called, the current namespace is passed with it?
I.e.:
class myclass:
[...]
def myfunc(self, context):
if context['sequence-index'] == 10:
raise 'sequence-index is %s
Morten W. Petersen writes:
> How do I construct a method of an object, so that whenever that method
> is called, the current namespace is passed with it?
This was discussed recently in the Zope-dev/Zope lists.
Chris has opened the question, Jim answered (among others).
Search the archive.
Die