[Grok-dev] Re: XMLRPC bug

Martijn Faassen faassen at startifact.com
Wed Dec 13 07:19:10 EST 2006


Christian Theune wrote:
[snip]
>> It's interesting that the views don't seem to get exposed in the 
>> browser. It does appear from the code that no special care is taken to 
>> skip __foo__ functions, so views seem to be registered for them.
> 
> Right. Reason: The examples you gave are either slots or attributes.
> I've gotta try it with e.g. __reduce__ because that seems to be a method.
> 
> I wonder how to find out what names where defined in the class and
> aren't derived from the superclass.

Doing that wouldn't really be right, I think? You want to be able to 
define your own superclasses with methods that can be inherited. We just 
don't want the magic ones to be exposed. Perhaps the simplest approach 
would simply be to skip any method starting with an underscore..

Regards,

Martijn



More information about the Grok-dev mailing list