Richard Barrett | 1 May 01:14 2003
Picon
Picon

Re: Changes to archive pages

At 23:55 30/04/2003, Paul H Byerly wrote:
>Richard Barrett wrote:
>>Articles being archived by the code running under mailmanctl are probably
>>still using a cached copy of the old version of the article template.
>>
>>When you amend any templates you should probably use mailmanctl restart so
>>that the new version will be reloaded and used for future archiving.
>
>      That did it, thank you so much.  Apparently there is no way to do a 
> per list change, but I think I can make it work with relative URLs.  Now 
> I just have to hack the cookies.

I believe you can have list-specific templates by putting them in the 
directory  $prefix/lists/≤listname>/<language>/

The same issue applies regarding running mailmanctl restart after 
creating/changing templates in such directories.

><>< Paul, learning more than he planned to

Paul H Byerly | 1 May 05:16 2003

Re: Changes to archive pages

Richard Barrett  wrote:
>>Paul H Byerly wrote:
>>      That did it, thank you so much.  Apparently there is no way to do a 
>> per list change, but I think I can make it work with relative URLs.  Now 
>> I just have to hack the cookies.
>
>I believe you can have list-specific templates by putting them in the 
>directory  $prefix/lists/≤listname>/<language>/
>
>The same issue applies regarding running mailmanctl restart after 
>creating/changing templates in such directories.

      That is my understanding, but it does not seem to work for this 
file.  I copied it there and made changes earlier, but when I ran the 
restart it was the changes in the template file, not the changes in the 
local file that I saw.  It's in the same location as 'listinfo.html' and 
'options.html' so I'm sure I got it right.
      Since the archives are stored in a separate place than the lists I 
also tried putting the file in 
$prefix/archives/private/≤listname>/<language>/ but that did not work 
either (even after a restart).  Any other ideas on where to put it?

<>< Paul 

Jon Carnes | 1 May 09:22 2003
Picon

Re: qrunner dying (Somewhat long)

On Wed, 2003-04-30 at 17:35, Kysh wrote:
> > >Thanks for your reply! See below--
> > 
> > Well, the absence of any output to the error log and the fact that each 
> > qrunner process started by mailmanctl is returning an exit status of 1 is 
> > interesting.
> > The qrunner process appear to do nothing before exiting.
> > getting into the error log I' m wondering if the attempt by the child to 
> > run the qrunner fails
> > What is the value assigned to the variable PYTHON in 
> > $prefix/Mailman/Defaults.py, is this the path to your python executable, 
> > and does it match the path in the #! in line 1 of the $prefix/bin/qrunner 
> > and $prefix/bin/mailmanctl files?
> 
> /usr/bin/python, which is the correct python and they're all identical.
> 
> -Kysh

You might want to try and isolate the problem using strace...

  su mailman
  cd ~mailman
  bin/qrunner -ovr All

Now lets do it with strace:
  strace bin/qrunner -ovr All

Kysh | 1 May 09:39 2003

Re: qrunner dying (Somewhat long)

On Thu, May 01, 2003 at 03:22:01AM -0400, Jon Carnes wrote:
>   su mailman
>   cd ~mailman
>   bin/qrunner -ovr All
> 
> Now lets do it with strace:
>   strace bin/qrunner -ovr All

qrunner -r All has always worked fine, but the mailmanctl invokation was 
failing. 

I went ahead and copied the $prefix/lists directory aside, obliterated all 
traces of Mailman on my system, and upgraded to python 2.3 and a later package
of 2.2, and now it works.

Thanks for all your responses, guys-- I gave up trying to debug it and just 
punted.

-Kysh
--

-- 
.+------------------------------------------------------------+.
|  'Life begins at 120kias' - http://www.lapdragon.org/flying  |
|  CBR-F4 streetbike -        http://www.lapdragon.org/cbr     |
|  1968 Mustang fastback -    http://www.lapdragon.org/mustang | 
|  Got 'nix? -                http://www.infrastructure.org/   |
|  KG6FOB -		      http://www.lapdragon.org/ham     | 
|  Give blood: Play Hockey!   http://www.unixdragon.com/       |
`+------------------------------------------------------------+'

(Continue reading)

billy | 1 May 11:55 2003

(no subject)

I want to set up my list to approve all posts by members or non-members automatically, without having to go
through the authorization process.

-billy 

Rick Pasotto | 1 May 12:02 2003
Picon

monthly notification error

I'm running debian/testing and just upgraded mailman to the version
in unstable (2.1.1-5). Last night the cron job to send out the monthly
password reminders failed with this error:

Traceback (most recent call last):
  File "/usr/lib/mailman/cron/mailpasswds", line 218, in ?
    main()
  File "/usr/lib/mailman/cron/mailpasswds", line 145, in main
    password = mlist.getMemberPassword(member)
  File "/var/lib/mailman/Mailman/OldStyleMemberships.py", line 102, in
getMemberPassword
    raise Errors.NotAMemberError, member
Mailman.Errors.NotAMemberError: rick <at> niof.net

Is there some upgrade configuring I need to do? I did create the
'mailman' mailing list. Do I need to add myself as a subscriber?
Should I send a bugreport to the debian maintainer?

Separate question about the upgrade. After the upgrade the site password
no longer worked for maillist admin. I had to change the password with
mmsitepass.

--

-- 
"No one can make you feel inferior without your consent."
		-- Eleanor Roosevelt
    Rick Pasotto    rick <at> niof.net    http://www.niof.net

Todd | 1 May 14:51 2003
Picon

Re: Changes to archive pages


Paul H Byerly wrote:
> Richard Barrett  wrote:
[...]
>> I believe you can have list-specific templates by putting them in the 
>> directory  $prefix/lists/≤listname>/<language>/
>>
>> The same issue applies regarding running mailmanctl restart after 
>> creating/changing templates in such directories.
>
>     That is my understanding, but it does not seem to work for this 
> file.  I copied it there and made changes earlier, but when I ran the 
> restart it was the changes in the template file, not the changes in the 
> local file that I saw.  It's in the same location as 'listinfo.html' and 
> 'options.html' so I'm sure I got it right.

This got me curious so I looked at the code to see if I could figure out why
it wasn't working.  The archive code in question is located in
Mailman/Archiver/HyperArch.py.  The function used is quick_maketext().  This
basically calls Utils.maketext() to do the templating.  However,
quick_maketext() sets mlist to None.  When mlist is None, Utils.maketext
doesn't look in any of the list directories for template files.  It only
checks templates/site/≤lang> and templates/<lang>.  So the best you can so
is modify the template in 'site' like you have done.

Maybe someone more familiar with the mailman code (hi Barry :) can explain
why this is so.  It might be a performance thing.  There could be discussion
of it in the developers list archive, I haven't checked there.

--

-- 
(Continue reading)

jbrouhard | 1 May 15:03 2003
Picon

RE: Mailman CGI error

you should be setting cgi to work with apache or whatever web browser you're
using:

--with-cgi-gid=apache

It'l repair it, as Apache cannot run stuff from the web as 'nobody' to my
knowledge.

---
Joe Brouhard, MCP, A+
Computer Support Technician
City of St Joseph
jbrouhard <at> ci.st-joseph.mo.us
http://www.ci.st-joseph.mo.us

-----Original Message-----
From: Toby Reiter [mailto:toby <at> breezing.com]
Sent: Wednesday, April 30, 2003 5:43 PM
To: mailman-users <at> python.org
Subject: [Mailman-Users] Mailman CGI error

So I've been working on getting Mailman working on my system -- I'm 
currently working on getting the web portion to work well.

Apache is up and running, I've made the necessary changes in the 
httpd.conf file, but when I go to the admin, create, etc. pages, I 
receive the following error:

---
Mailman CGI error!!!
(Continue reading)

Todd | 1 May 15:15 2003
Picon

Re: Changes to archive pages


I wrote:
> This got me curious so I looked at the code to see if I could figure out why
> it wasn't working.  The archive code in question is located in
> Mailman/Archiver/HyperArch.py.  The function used is quick_maketext().  This
> basically calls Utils.maketext() to do the templating.  However,
> quick_maketext() sets mlist to None.

I should really learn that 9AM is too early to properly read code
(especially in languages I don't really know :).

Looking at it again, the call to quick_maketext() for the article.html
template does try to set mlist (to self._mlist, which is defined earlier in
the Article class).  In the class initialization, mlist is set to None
again, so perhaps that's the value that ends up in self._mlist.

But of course, it's still early so I may just still be too stupid to follow
the code (not that I need an excuse to be stupid).

--

-- 
Todd              OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
============================================================================
Learn from the mistakes of others--you can never live long enough to make
them all yourself."
    -- John Luther

Richard Barrett | 1 May 15:31 2003
Picon

Re: Changes to archive pages

At 04:16 01/05/2003, Paul H Byerly wrote:
>Richard Barrett  wrote:
>>>Paul H Byerly wrote:
>>>      That did it, thank you so much.  Apparently there is no way to do 
>>> a per list change, but I think I can make it work with relative 
>>> URLs.  Now I just have to hack the cookies.
>>
>>I believe you can have list-specific templates by putting them in the 
>>directory  $prefix/lists/≤listname>/<language>/
>>
>>The same issue applies regarding running mailmanctl restart after 
>>creating/changing templates in such directories.
>
>      That is my understanding, but it does not seem to work for this 
> file.  I copied it there and made changes earlier, but when I ran the 
> restart it was the changes in the template file, not the changes in the 
> local file that I saw.  It's in the same location as 'listinfo.html' and 
> 'options.html' so I'm sure I got it right.
>      Since the archives are stored in a separate place than the lists I 
> also tried putting the file in 
> $prefix/archives/private/≤listname>/<language>/ but that did not work 
> either (even after a restart).  Any other ideas on where to put it?
>
>
><>< Paul

Paul

In the light of your experience I took a more comprehensive look at the 
source code and tried using the alternative template locations on my MM 
(Continue reading)


Gmane