Re: Bug in Archetypes constructor
Martin Aspeli <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Max M wrote: > > Another thing... is there any way to overwrite the constructor in my > content type, so I can work around the bug? > This is probably not quite what you're looking for, but you may be able to set _at_rename_after_creation = True and then make your own _renameAfterCreation() method (see PoiIssue, for example) that sets the id. This will be called when the object is first saved, not when it's instantiated, but if you want to use portal_factory, this is a good thing - the factory implicitly relies on the id of the object it's holding being unique within the acquisition chain. Martin -- View this message in context: http://www.nabble.com/Bug-in-Archetypes-constructor-t1404998.html#a3781660 Sent from the Archetypes - devel forum at Nabble.com. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642