[ZPatterns] Why is class_default_for_ method unbound?

Phillip J. Eby pje@telecommunity.com
Wed, 22 Aug 2001 08:01:31 -0500


At 09:36 AM 8/22/01 +1000, Itai Tavor wrote:
>It bothers me that nobody else ever hit this problem. So nobody ever had 
>the need to use class_default_ for web-callable methods.

No, just web-callable methods placed in the Python class.


>>class MyClass(DataSkin):
>>
>>     def class_default_for_method1(self, REQUEST):
>>         ...
>>
>>     class_default_for_method1 = Method(class_default_for_method1)
>>
>>
>>This should turn the Python function into a Zope "method" object with the 
>>right magic.  Sorry about the difficulty, I'll take a look and see if 
>>there's a way to fix DynPersist.c to do the right thing with "unbound 
>>method" objects.
>
>Doesn't work, unfortunately. Returns same error.

Really?  How odd.  Guess I'll need to investigate more deeply.