[Mailman-Users] Error trying to login to admin

Joel Shellman joel at knocean.com
Tue Dec 5 08:53:28 CET 2000


Thank you very much for the quick help. Apparently the patch didn't get
applied completely or something. The maketext calls were missing
self._full_path. Not only in Digester.py, but also in MailList.py (which I
discovered after fixing Digester.py).

Seems to be working now--thanks!

-joel

----- Original Message -----
From: "Dan Mick" <Dan.Mick at west.sun.com>
To: "Joel Shellman" <joel at knocean.com>; <mailman-users at python.org>
Sent: Monday, December 04, 2000 11:22 AM
Subject: Re: [Mailman-Users] Error trying to login to admin


> Another indentation problem or other syntax error
> from trying to apply the patch by hand?
>
> This is what GetConfigInfo should look like (in Digester.py):
>
>     def GetConfigInfo(self):
>         WIDTH = mm_cfg.TEXTFIELDWIDTH
>
>         return [
>             "Batched-delivery digest characteristics.",
>
>             ('digestable', mm_cfg.Toggle, ('No', 'Yes'), 1,
>              'Can list members choose to receive list traffic '
>              'bunched in digests?'),
>
>             ('digest_is_default', mm_cfg.Radio,
>              ('Regular', 'Digest'), 0,
>              'Which delivery mode is the default for new users?'),
>
>             ('mime_is_default_digest', mm_cfg.Radio,
>              ('Plain', 'Mime'), 0,
>              'When receiving digests, which format is default?'),
>
>             ('digest_size_threshhold', mm_cfg.Number, 3, 0,
>              'How big in Kb should a digest be before it gets sent out?'),
>             # Should offer a 'set to 0' for no size threshhold.
>
>             ('digest_send_periodic', mm_cfg.Radio, ('No', 'Yes'), 1,
>              'Should a digest be dispatched daily when the size threshold
'
>              "isn't reached?"),
>
>             ('digest_header', mm_cfg.Text, (4, WIDTH), 0,
>              'Header added to every digest',
>              "Text attached (as an initial message, before the table"
>              " of contents) to the top of digests. "
>              + Utils.maketext(self._full_path, 'headfoot.html', raw=1)),
>
>             ('digest_footer', mm_cfg.Text, (4, WIDTH), 0,
>              'Footer added to every digest',
>              "Text attached (as a final message) to the bottom of digests.
"
>              + Utils.maketext(self._full_path, 'headfoot.html', raw=1)),
>             ]
>
>
>
> Joel Shellman wrote:
> >
> > I installed the per-list custom templates patch and now when I try to
log
> > into adminstration page, I get the following error in the error log:
> >
> > Dec 04 05:35:12 2000 admin(17961):
> > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> > admin(17961): [----- Mailman Version: 2.0 -----]
> > admin(17961): [----- Traceback ------]
> > admin(17961): Traceback (innermost last):
> > admin(17961):   File "/home/mailman/scripts/driver", line 96, in
run_main
> > admin(17961):     main()
> > admin(17961):   File "/home/mailman/Mailman/Cgi/admin.py", line 135, in
main
> > admin(17961):     FormatConfiguration(doc, mlist, category,
category_suffix,
> > cgidata)
> > admin(17961):   File "/home/mailman/Mailman/Cgi/admin.py", line 284, in
> > FormatConfiguratio
> > n
> > admin(17961):     form.AddItem(FormatOptionsSection(category, mlist,
> > cgi_data))
> > admin(17961):   File "/home/mailman/Mailman/Cgi/admin.py", line 301, in
> > FormatOptionsSecti
> > on
> > admin(17961):     options = GetConfigOptions(mlist, category)
> > admin(17961):   File "/home/mailman/Mailman/Cgi/admin.py", line 928, in
> > GetConfigOptions
> > admin(17961):     return mlist.GetConfigInfo()[category]
> > admin(17961):   File "/home/mailman/Mailman/MailList.py", line 350, in
> > GetConfigInfo
> > admin(17961):     config_info['digest'] = Digester.GetConfigInfo(self)
> > admin(17961):   File "/home/mailman/Mailman/Digester.py", line 44, in
> > GetConfigInfo
> > admin(17961):     return [
> > admin(17961): TypeError: not enough arguments; expected 2, got 1
> > admin(17961): [----- Python Information -----]
> > admin(17961): sys.version    = 1.5.2 (#1, Feb  1 2000, 16:32:16)  [GCC
> > egcs-2.91.66 199903
> > 14/Linux (egcs-
> > admin(17961): sys.executable = /usr/bin/python
> >
> > Anyone know how to fix this?
> >
> > Thank you!
> >
> > -joel






More information about the Mailman-Users mailing list