Il giorno ven, 07/05/2010 alle 11.51 +0200, Yuri ha scritto: > Il 07/05/2010 11:38, Yuri ha scritto: > > da un template zpt, come posso accedere alle proprietà (property_sheet > > da ZMI) di un'oggetto? Mi manca il nome :P > > _______________________________________________ > > Plone-IT mailing list > > [email protected] > > http://lists.plone.org/mailman/listinfo/plone-it > > http://www.nabble.com/Plone---Italy-f21728.html > > > # Example code: > > # Import a standard function, and get the HTML request and response objects. > from Products.PythonScripts.standard import html_quote > request = container.REQUEST > RESPONSE = request.RESPONSE > print getattr(context, 'logo', None) > return printed > > fatto :P
Ciao Yuri, se ho capito bene la domanda ti basta un getProperty senza scomodare il getattr. davide -- Davide Moro Redomino S.r.l. Largo Valgioie 14, 10146 Torino Italy Tel: +39 0117499875 http://redomino.com _______________________________________________ Plone-IT mailing list [email protected] http://lists.plone.org/mailman/listinfo/plone-it http://www.nabble.com/Plone---Italy-f21728.html
