[Zope-CMF] Product properties: set and get ?
D2
borelan@wanadoo.fr
Thu, 15 May 2003 11:48:13 -0400
Jean-Francois.Doyon@CCRS.NRCan.gc.ca a écrit:
> And once they are set, how do I get to them? (i.e. how do i get the product
> as an object?)
#to get a product
product=getattr(self, 'Control_Panel').Products.your_product
#to get the product's properties list ...
props=[]
for property in product._properties:
props.append(property['id'])
#... sorted
props.sort()
>
> Thanks in advance for the help!
>
> Jean-François Doyon
> Internet Service Development and Systems Support / Soutien de systèmes et
> developement de services Internet
> GeoAccess Division / Division GéoAccès
> Canada Center for Remote Sensing / Centre canadien de télédétection
> Natural Resources Canada / Ressources naturelles Canada
> Phone / Téléphone: (613) 992-4902
> Fax / Télécopieur: (613) 947-2410
> http://atlas.gc.ca
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>