[Zope] Modifying __bases__
Chris Withers
chris at simplistix.co.uk
Wed May 25 09:20:47 EDT 2005
Dan Pozmanter wrote:
>>>What I aim to do is have the User Object inherit from a custom class
>
>>>(AlienUser).
>>
>>You can do that in two ways off the top of my head:
>>
>>1) the good way: write a custom UserFolder.
>>You could probably get away with just inheriting from UserFolder and
>>overriding _doAddUser().
>>
>>2) the hacky way: monkeypatch User.py to replace SimpleUser with your
>>class.
2 IS evil, and WILL bite you later ;-)
1 is easy: use SimpleUserFolder...
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list