Hello, i want to know how i can convert a ComputedAttribute Object to a String. I have exactly the problem explain here: http://www.zope.org/Collectors/Ape/19 but i want to have a string in state of a ComputedAttribute Object. Any Ideas?? Sandra
Sandrine Meyantchop schrieb:
Hello, i want to know how i can convert a ComputedAttribute Object to a String. I have exactly the problem explain here: http://www.zope.org/Collectors/Ape/19 but i want to have a string in state of a ComputedAttribute Object. Any Ideas?? Sandra
------------------------------------------------------------------------
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) str(object) ??
i have only try with str, but the problem is that i want to have for example the title but str(self.title) return ComputedAttribute object at 0xb7cdb8a0. --- En date de : Lun 27.4.09, robert rottermann <robert@redcor.ch> a écrit : De: robert rottermann <robert@redcor.ch> Objet: Re: [Zope-dev] ComputedAttribute Object À: elsandram@yahoo.fr Cc: Zope-Dev@zope.org Date: Lundi 27 Avril 2009, 8h40 Sandrine Meyantchop schrieb:
Hello, i want to know how i can convert a ComputedAttribute Object to a String. I have exactly the problem explain here: http://www.zope.org/Collectors/Ape/19 but i want to have a string in state of a ComputedAttribute Object. Any Ideas?? Sandra
------------------------------------------------------------------------
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) str(object) ??
Sandrine Meyantchop schrieb:
i have only try with str, but the problem is that i want to have for example the title but str(self.title) return ComputedAttribute object at 0xb7cdb8a0. self.title() ??
--- En date de : *Lun 27.4.09, robert rottermann /<robert@redcor.ch>/* a écrit :
De: robert rottermann <robert@redcor.ch> Objet: Re: [Zope-dev] ComputedAttribute Object À: elsandram@yahoo.fr Cc: Zope-Dev@zope.org Date: Lundi 27 Avril 2009, 8h40
Sandrine Meyantchop schrieb: > Hello, > i want to know how i can convert a ComputedAttribute Object to a String. > I have exactly the problem explain here: > http://www.zope.org/Collectors/Ape/19 > but i want to have a string in state of a ComputedAttribute Object. > Any Ideas?? > Sandra > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://mail.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope ) str(object) ??
------------------------------------------------------------------------
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
sorry but self.title() don't work also --- En date de : Lun 27.4.09, robert rottermann <robert@redcor.ch> a écrit : De: robert rottermann <robert@redcor.ch> Objet: Re: [Zope-dev] ComputedAttribute Object À: elsandram@yahoo.fr Cc: Zope-Dev@zope.org Date: Lundi 27 Avril 2009, 9h23 Sandrine Meyantchop schrieb:
i have only try with str, but the problem is that i want to have for example the title but str(self.title) return ComputedAttribute object at 0xb7cdb8a0. self.title() ??
--- En date de : *Lun 27.4.09, robert rottermann
/<robert@redcor.ch>/* a
écrit :
De: robert rottermann <robert@redcor.ch> Objet: Re: [Zope-dev] ComputedAttribute Object À: elsandram@yahoo.fr Cc: Zope-Dev@zope.org Date: Lundi 27 Avril 2009, 8h40
Sandrine Meyantchop schrieb: > Hello, > i want to know how i can convert a ComputedAttribute Object to a String. > I have exactly the problem explain here: > http://www.zope.org/Collectors/Ape/19 > but i want to have a string in state of a ComputedAttribute Object. > Any Ideas?? > Sandra > > > >
> > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://mail.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope ) str(object) ??
------------------------------------------------------------------------
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Am Montag 27 April 2009 10:59:21 schrieb Sandrine Meyantchop:
sorry but self.title() don't work also
I personally get along in such situations by displaying something like "self.__dict__" or "dir(self)" in a log file and handling from object to object if necessary. Best Regards, Hermann -- hermann@qwer.tk GPG key ID: 299893C7 (on keyservers) FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
participants (3)
-
Hermann Himmelbauer -
robert rottermann -
Sandrine Meyantchop