[Product-Developers] Re: manage_afterPUT for ATFolder

Takahashi, Mike MTakahashi at oid.ucla.edu
Tue Mar 11 22:19:09 UTC 2008


Thank you for all the help Raphael.

For some reason, after adding both PUT_factory and PUT as you have
implemented, the title is still not set...


Mike



> -----Original Message-----
> From: product-developers-bounces at lists.plone.org [mailto:product-
> developers-bounces at lists.plone.org] On Behalf Of Raphael Ritz
> Sent: Tuesday, March 11, 2008 8:35 AM
> To: product-developers at lists.plone.org
> Subject: [Product-Developers] Re: manage_afterPUT for ATFolder
> 
> Takahashi, Mike wrote:
> 
> [..]
> 
> > I've also tried that as well with no luck:
> >
> > def PUT_factory( self, name, typ, body ):
> > 	id = self.getId()
> >     	self.setTitle(id)
> >
> >
> > For some reason, the setTitle() function does not work on ATFolders.
> >
> 
>   :-(
> 
> Seems to work for me though but I noticed now that in
>
http://svn.plone.org/svn/collective/Products.CMFBibliographyAT/trunk/Pro
du
> cts/CMFBibliographyAT/content/folder.py
> I override PUT_factory *and* PUT where the title is
> set in PUT.
> 
> Maybe that helps?
> 
> Raphael
> 
> 
> 
> > Thanks,
> >
> >
> > Mike
> 
> 
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers




More information about the Product-Developers mailing list