Re: improving 'BaseObject._renameAfterCreation'
Rocky Burt <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Martin Aspeli wrote: > -0.5 on more magic hooks in AT (until we have an events system or such, > yeah, I know, heard it before). ... I was thinking it'd be nifty to simple use z3 events (via five) to watch your content type IObjectModified events and then use the subscriber to fix the id accordingly. But then it occurred to me that since this is done out-of-thread, the 'edit' screen for the content type after having been just submitted may or may not be finished in time to send the browser to the renamed id. In other words, it wouldn't be reliable and couldn't be depended on. Anyone have a thought on how this could be made to work? Perhaps I'm overlooking something simple? - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com ServerZen Hosting -- http://www.serverzenhosting.net News About The Server -- http://www.serverzen.net ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click