On Wed, Sep 16, 2009 at 3:32 PM, Karen Tracey wrote:
> repr needs to return a string, you are returning unicode. The automatic
> unicode-to-string conversion done by Python will use the ascii codec, which
> has no way of representing 'ã'. You should probably be returning the repr of
> the unicod
On Wed, Sep 16, 2009 at 1:50 PM, Gabriel . wrote:
>
> Hello,
>
> I have this method defined in a model:
>
>def __repr__(self):
>return ugettext_lazy("%(file)s (Component: %(component)s -
> Release: %(release)s)") % {
>'file': self.filename,
>'component': self.c
On Wed, Sep 16, 2009 at 3:02 PM, Daniel Roseman wrote:
>>
>> def __repr__(self):
>> return ugettext_lazy("%(file)s (Component: %(component)s -
>> Release: %(release)s)") % {
>> 'file': self.filename,
>> 'component': self.component.name,
>> 'release'
On Sep 16, 6:50 pm, "Gabriel ." wrote:
> Hello,
>
> I have this method defined in a model:
>
> def __repr__(self):
> return ugettext_lazy("%(file)s (Component: %(component)s -
> Release: %(release)s)") % {
> 'file': self.filename,
> 'component': self.component.
Hello,
I have this method defined in a model:
def __repr__(self):
return ugettext_lazy("%(file)s (Component: %(component)s -
Release: %(release)s)") % {
'file': self.filename,
'component': self.component.name,
'release': self.release.name,}
(I tri
5 matches
Mail list logo