[Moin-user] MoinMoin UserPreferences

Michael Oliver oliverm at matrix-media.com
Tue Jun 8 09:49:14 EDT 2004


I have installed MoinMoin on Windows XP using Apache 2.0.49, Python 2.3
and the Python win32 extensions.  I can see the FrontPage with all the
graphics and I can edit the page and save it and it shows ok.

 

However when I try to edit UserPreferences and add myself as a user, I
get nothing in the Apache error.log but I do get the following when
trying to "CreateProfile".

 

--> --> 


 
 
NameErrorglobal name 'UnpicklingError' is not defined

Please include this information in your bug reports!:
Python Python 2.3.4: C:\Python23\python.exe
Platform: win32 (nt)
MoinMoin Release 1.2.2 [Revision 1.185]
Tue Jun 08 09:43:20 2004

A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred. 


 C:\Python23\Lib\site-packages\MoinMoin\request.py
<file:///C:\Python23\Lib\site-packages\MoinMoin\request.py>  in
run(self=<MoinMoin.request.RequestCGI instance at 0x00651CB0>)


  454             else:


  455                 try:


  456                     cgitb.Hook(file=self).handle(saved_exc)


  457                     # was: cgitb.handler()


  458                 except:


cgitb = <module 'MoinMoin.support.cgitb' from
'C:\Python23\lib\site-packages\MoinMoin\support\cgitb.pyc'>, cgitb.Hook
= <class MoinMoin.support.cgitb.Hook at 0x00898930>, file undefined,
self = <MoinMoin.request.RequestCGI instance at 0x00651CB0>, ).handle
undefined, saved_exc = (<class exceptions.NameError at 0x005E4900>,
<exceptions.NameError instance at 0x00888648>, <traceback object at
0x00888C88>)

 


 C:\Python23\Lib\site-packages\MoinMoin\wikiaction.py
<file:///C:\Python23\Lib\site-packages\MoinMoin\wikiaction.py>  in
do_userform(pagename='UserPreferences',
request=<MoinMoin.request.RequestCGI instance at 0x00651CB0>)


  749 def do_userform(pagename, request):


  750     from MoinMoin import userform


  751     savemsg = userform.savedata(request)


  752     Page(pagename).send_page(request, msg=savemsg)


  753 


savemsg undefined, userform = <module 'MoinMoin.userform' from
'C:\Python23\lib\site-packages\MoinMoin\userform.pyc'>,
userform.savedata = <function savedata at 0x008838F0>, request =
<MoinMoin.request.RequestCGI instance at 0x00651CB0>

 


 C:\Python23\Lib\site-packages\MoinMoin\userform.py
<file:///C:\Python23\Lib\site-packages\MoinMoin\userform.py>  in
savedata(request=<MoinMoin.request.RequestCGI instance at 0x00651CB0>)


   27     Return error msg or None.  


   28     """


   29     return UserSettingsHandler(request).handleData()


   30 


   31 


global UserSettingsHandler = <class
MoinMoin.userform.UserSettingsHandler at 0x008873C0>, request =
<MoinMoin.request.RequestCGI instance at 0x00651CB0>, ).handleData
undefined

 


 C:\Python23\Lib\site-packages\MoinMoin\userform.py
<file:///C:\Python23\Lib\site-packages\MoinMoin\userform.py>  in
handleData(self=<MoinMoin.userform.UserSettingsHandler instance at
0x00880D50>)


  119             # Is this an existing user trying to change password,
or a new user?


  120             newuser = 1


  121             if user.getUserId(theuser.name):


  122                 if theuser.name != self.request.user.name:


  123                     return _("User name already exists!")


global user = <module 'MoinMoin.user' from
'C:\Python23\lib\site-packages\MoinMoin\user.pyc'>, user.getUserId =
<function getUserId at 0x00789CB0>, theuser = <MoinMoin.user.User
instance at 0x00888440>, theuser.name = 'MikeOliverAZ'

 


 C:\Python23\Lib\site-packages\MoinMoin\user.py
<file:///C:\Python23\Lib\site-packages\MoinMoin\user.py>  in
getUserId(searchName='MikeOliverAZ')


   47         try:


   48             _name2id = pickle.load(open(userdictpickle))


   49         except (UnpicklingError,IOError,EOFError,ValueError):


   50             _name2id = {}


   51     id = _name2id.get(searchName, None)


UnpicklingError undefined, IOError undefined, EOFError undefined,
ValueError undefined

NameError: global name 'UnpicklingError' is not defined 
      __doc__ = 'Name not found globally.' 
      __getitem__ = <bound method NameError.__getitem__ of
<exceptions.NameError instance at 0x00888648>> 
      __init__ = <bound method NameError.__init__ of
<exceptions.NameError instance at 0x00888648>> 
      __module__ = 'exceptions' 
      __str__ = <bound method NameError.__str__ of <exceptions.NameError
instance at 0x00888648>> 
      args = ("global name 'UnpicklingError' is not defined",) 

 

 

 

 

__________________________________________________________________
Michael Oliver

CTO

Matrix Intermedia Inc

3325 N. Nellis Blvd, #1

Las Vegas, NV 89115

Phone:+1 (702)643-7425

Fax +1 (520) 844-1036
ICQ#: 318986322


Current ICQ status:  



*   <http://wwp.icq.com/318986322> More ways to contact me 
__________________________________________________________________

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20040608/8c463685/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 182 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/moin-user/attachments/20040608/8c463685/attachment.gif>


More information about the Moin-user mailing list