Pierre-Julien Grizel wrote:
> I looked at the __call__ method (and read the 'isDocTemp' thread ;-)  )
> and, if I must, I can replace m1 and m2 with a __call__ method taking
> another parameter specifying what kind of action it has to do.

Well, there's another little gem which got covered in a later bit of
that thread. Try defining your method like:

    def m1(self,ignored,md):
        # Your method here 

Also, check out the code in:

which is really helpful in this area. In fact, a FunctionTemplate may be
exactly what you're looking for...



Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to