Nella zmi nel 99% delle schermate, in alto a destra, c'e' il link all'help di zope che spesso viene sottovalutato. Lì trovi tantissime risposte alle questioni legate alla zmi... cerca property e ci troverai tutti i metodi e attributi per padroneggiare il propertysheet ;)
bye alessandro. 2010/5/7 Davide Moro <[email protected]>: > 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 > -- bye SauZheR ************************************ l'iterazione è umana... la ricorsione, Divina! ************************************ reply to: sauzher AT gmail DOT com _______________________________________________ Plone-IT mailing list [email protected] http://lists.plone.org/mailman/listinfo/plone-it http://www.nabble.com/Plone---Italy-f21728.html
