[Mailman-Users] Uncaught runner exception: int argument required
Mark Sapiro
mark at msapiro.net
Wed Oct 15 17:23:59 CEST 2008
Charles Marcus wrote:
>
>And here's the customized block in Hold.py:
>
>(Hmmm... did something weird happen when I copy/pasted after the last
>update? Are there supposed to be dbl underscores (__) there?)
Yes, the __ are correct.
>Beginning at line 93:
>class MessageTooBig(Errors.HoldMessage):
> def __init__(self, msgsize, limit):
> self.__msgsize = msgsize
> self.__limit = limit
>
> def reason_notice(self):
> size = self.__msgsize
> limit = self.__limit
> return _('''Your message (or the attachment) is too big.
>
>This list has a size limit of %(limit)d KB. Messages larger than this will
>require moderator intervention before it will be forwarded to our Sales
>Staff.''')
>
> def rejection_notice(self, mlist):
> kb = self.__limit
> return _('''Your message was too big; please trim it to less than
>%(limit)d KB in size.''')
I din't know why you changed the above line, but the problem is where
you have
%(limit)d KB in size.''')
it needs to be
%(kb)d KB in size.''')
as it was in the original.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list