[Zope3-Users] Override a browser class
Johan Carlsson
johanc at easypublisher.com
Mon Oct 3 04:09:45 EDT 2005
Hi all,
I want to replace the pasteable in
zope.app.container.browser.contents.Contents
for all content types.
I've created a sub class to Contents which override
the pasteable but I'm not sure how to configure it
to override the default class (if possible)?
Best Regards,
Johan
PS. The reason I want to change pasteable is that it
raises an exception if the paste action is unknown.
I'm implementing a clone action as an extra variation
of copy and it works in my classes but if I point
to a stock object (with anything I want to clone in
the clipbook) I get an error due to the raise.
My override returns False if the paste action is unknown.
Any core developer that has any opinion on this?
Can it be changed in the core or is there a specific
reason for the raise?
Regards,
Johan
--
Johan Carlsson Tel: + 46 8 31 24 94
Colliberty Mob: + 46 70 558 25 24
Torsgatan 72 Email: johanc at easypublisher.com
SE-113 37 STOCKHOLM
More information about the Zope3-users
mailing list