Il 09/05/2010 09:17, SauZheR ha scritto:
> 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 ;)
>    

  Dalle mie memorie di PropertySheet, dovevi sapere come si chiamava 
l'oggetto PS. E quindi fare:

  oggetto.<nome PS>.<metodo>

mi mancava <nome PS>. In Archetype, non serve e basta semplicemente fare 
oggetto.getProperty o equivalenti :)


> 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
>>
>>      
>
>
>    

_______________________________________________
Plone-IT mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html

Rispondere a