![](https://secure.gravatar.com/avatar/0f6659cffae7268f27fe318a4f1a42d0.jpg?s=120&d=mm&r=g)
I installed the most recent snapshot on my test machine, and all s seems to be working fine, except newlist suddenly died...
% ~mailman/bin/newlist testlist jarrell@vt.edu pass Traceback (innermost last): File "/home/mailman/bin/newlist", line 146, in ? raise SystemExit(main(sys.argv)) File "/home/mailman/bin/newlist", line 85, in main newlist = MailList.MailList() File "/home/mailman/Mailman/MailList.py", line 59, in __init__ self.InitTempVars(name, lock) File "/home/mailman/Mailman/MailList.py", line 263, in InitTempVars self.__lock = LockFile.LockFile( File "/usr/local/lib/python1.5/posixpath.py", line 43, in join if b[:1] == '/': AttributeError: __getslice__
![](https://secure.gravatar.com/avatar/4d3db29aff882aac9e3253d28162fbc5.jpg?s=120&d=mm&r=g)
On Thu, Sep 02, 1999 at 02:45:50AM -0400, Ron Jarrell wrote:
I installed the most recent snapshot on my test machine, and all s seems to be working fine, except newlist suddenly died...
The problem is that MailList.MailList() isn't being passed any arguments, and so the name argument is defaulting to None. Either newlist:85 needs to pass a name, or (perhaps better yet) MailList.MailList.InitTempVars() needs to Do The Right Thing (tm) (like come up with some default name) when name == None.
I don't fully understand what this name is supposed to be, so bwarsaw will need to be consulted on this. However, my guess would be to change line 85 of bin/newlist from:
newlist = MailList.MailList()
to:
newlist = MailList.MailList(list_name)
Sean
"Engineering Tablets? Does that mean if I swallow one, I'll be an engineer?" -- Evelyn Mitchell Sean Reifschneider, Inimitably Superfluous <jafo@tummy.com> URL: <http://www.tummy.com/xvscan> HP-UX/Linux/FreeBSD/BSDOS scanning software.
![](https://secure.gravatar.com/avatar/ab1c33fc0fd591a0ea174155233a6a51.jpg?s=120&d=mm&r=g)
"SR" == Sean Reifschneider <jafo@tummy.com> writes:
SR> The problem is that MailList.MailList() isn't being passed any
SR> arguments, and so the name argument is defaulting to None.
SR> Either newlist:85 needs to pass a name, or (perhaps better
SR> yet) MailList.MailList.InitTempVars() needs to Do The Right
SR> Thing (tm) (like come up with some default name) when name ==
SR> None.
You're analysis is correct. Here's the patch I just checked in.
-Barry
-------------------- snip snip -------------------- Index: MailList.py
RCS file: /projects/cvsroot/mailman/Mailman/MailList.py,v retrieving revision 1.134 retrieving revision 1.135 diff -c -r1.134 -r1.135 *** MailList.py 1999/08/23 16:15:48 1.134 --- MailList.py 1999/09/02 15:04:14 1.135
*** 261,267 **** """Set transient variables of this and inherited classes.""" self.__createlock_p = lock self.__lock = LockFile.LockFile( ! os.path.join(mm_cfg.LOCK_DIR, name) + '.lock', # TBD: is this a good choice of lifetime? lifetime = 60) self._internal_name = name --- 261,267 ---- """Set transient variables of this and inherited classes.""" self.__createlock_p = lock self.__lock = LockFile.LockFile( ! os.path.join(mm_cfg.LOCK_DIR, name or '<site>') + '.lock', # TBD: is this a good choice of lifetime? lifetime = 60) self._internal_name = name
participants (3)
-
Barry A. Warsaw
-
Ron Jarrell
-
Sean Reifschneider