Here is the traceback:
Traceback (most recent call last):
File "update_feeds.py", line 171, in process_feed
process_entry(entry, fpf, feed, postdict)
File "update_feeds.py", line 119, in process_entry
feed.tags))
File "/srv/django/common/tagging/managers.py", line 39, in
update_tags
tag = self.create(name = tag_name, slug = tag_slug)
File "/usr/local/lib/python2.5/site-packages/django/db/models/
manager.py", line 75, in create
return self.get_query_set().create(**kwargs)
File "/usr/local/lib/python2.5/site-packages/django/db/models/
query.py", line 273, in create
obj.save()
File "/srv/django/common/tagging/models.py", line 35, in save
super(Tag, self).save()
File "/usr/local/lib/python2.5/site-packages/django/db/models/
base.py", line 271, in save
instance=self, created=(not record_exists))
File "/usr/local/lib/python2.5/site-packages/django/dispatch/
dispatcher.py", line 360, in send
**named
File "/usr/local/lib/python2.5/site-packages/django/dispatch/
robustapply.py", line 47, in robustApply
return receiver(*arguments, **named)
File "/srv/django/sites/haberrobotu/aggregator/models.py", line 199,
in mail_new_tag
msg = t.render(c)
File "/usr/local/lib/python2.5/site-packages/django/template/
__init__.py", line 174, in render
return self.nodelist.render(context)
File "/usr/local/lib/python2.5/site-packages/django/template/
__init__.py", line 795, in render
return ''.join([force_unicode(b) for b in bits])
File "/usr/local/lib/python2.5/site-packages/django/utils/
encoding.py", line 38, in force_unicode
s = unicode(s)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position
3: ordinal not in range(128)
"repr(sbj)"= str: u'new tag: Arkada\u015flar\u0131n'
isinstance(instance.name, unicode), isinstance(str, unicode) and
isinstance(msg, unicode) all return True.
Thanks...
On 3 Kasım, 14:04, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2007-11-03 at 07:01 -0500, James Bennett wrote:
> > On 11/3/07, omat <[EMAIL PROTECTED]> wrote:
> > > sbj = u'new tag: %s' % (instance.name)
>
> > You might want to read this:
>
> >http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsT...
>
> > There's a warning about using this style of string interpolation under
> > Python 2.3 which may be relevant to your situation.
>
> That shouldn't be an issue here. The instance.name attribute will
> (should, at least) be a normal Python unicode string.
>
> Malcolm
>
> --
> Remember that you are unique. Just like everyone
> else.http://www.pointy-stick.com/blog/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---