Re: [Zope-dev] Passing namespace to method

2000-11-02 Thread Dieter Maurer
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.

[Zope-dev] Passing namespace to method

2000-11-01 Thread Morten W. Petersen
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