[Zope] How to do...

Garito garito at sistes.net
Wed Oct 18 10:15:37 EDT 2006


Hi all!

How can I control the way an attribute of a product is readed? 
__getattr__? __getattribute__?

I try the __getattribute__ way but it modifies the property pages

Example:

I create an object instance of the product and like:

Property1 = 'Some text'
Property2 = 2006-10-18

I would like to call Property2 like

object.Property2 and retrieve the data with the current locale

For spanish locale I would like to retrieve 18-10-2006

But if I read the property pages of this object I would like to conserve 
the given data

Is this possible?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito




More information about the Zope mailing list