[rum-discuss] 'MultiDenial' object has no attribute '_'

0 views
Skip to first unread message

dakila

unread,
Apr 29, 2010, 12:42:12 PM4/29/10
to rum-discuss
Hi,

Im getting the following error for rum_policy-0.0dev-py2.6.egg/
rumpolicy/__init__.py

AttributeError: 'MultiDenial' object has no attribute '_'

Seems the culprit is the self._ at the class below
tried adding

from rum.i18n import _

and removing 'self.' , so far it worked, but Im not sure if its the
right solution



class MultiDenial(Denial):
def __init__(self, denials):
self.denials = denials

def __unicode__(self):
return unicode(self._(' or ')).join(map(unicode,
self.denials))

--
You received this message because you are subscribed to the Google Groups "rum-discuss" group.
To post to this group, send email to rum-d...@googlegroups.com.
To unsubscribe from this group, send email to rum-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rum-discuss?hl=en.

Michael Brickenstein

unread,
Apr 29, 2010, 12:57:34 PM4/29/10
to rum-discuss
Hi!

I am working on a fix (still need to test it
and generate a regression test
). I will do it during the next hour.

Thanks for the bug report.

Cheers,
Michael

Michael Brickenstein

unread,
Apr 29, 2010, 1:13:00 PM4/29/10
to rum-discuss
Hi!
I fixed it and uploaded new packages to PYPI.
Indeed I tried to avoid any dependencies to the RUM core package and
my solution was
to use the "_" member of the policy object.
Cheers,
Michael
Reply all
Reply to author
Forward
0 new messages