[Moin-user] Python error when attempting to create a page while logged in

Altaf Kassam kassaal at yahoo.com
Tue Oct 7 10:09:07 EDT 2003


I'm having bizarre behavior when I attempt to create
new or edit existing pages while logged into Moin
Moin.  I get the following descriptive error page,
however, this does not happen when I am not logged in.
 The installation is on Win2K Server with IIS5 using
the stable CVS tarball downloaded Monday (Oct 6th).  I
have run version 1.0 without a problem.  Here is the
error:

>  
 
ValueError: (22, 'Invalid argument') Python 2.3
C:\Python\python.exe 

A problem occurred while running a Python script. Here
is the sequence of function calls leading up to the
error, with the most recent (innermost) call first.
The exception attributes are:
      __doc__ = 'Inappropriate argument value (of
correct type).' 
      __getitem__ = <bound method
ValueError.__getitem__ of <exceptions.ValueError
instance at 0x0074D3F0>> 
      __init__ = <bound method ValueError.__init__ of
<exceptions.ValueError instance at 0x0074D3F0>> 
      __module__ = 'exceptions' 
      __str__ = <bound method ValueError.__str__ of
<exceptions.ValueError instance at 0x0074D3F0>> 
      args = (22, 'Invalid argument')

C:\Moin\Lib\site-packages\MoinMoin\util\datetime.py in
tmtuple(tmsecs=-68400) 
   16 
   17         This is currently an alias for gmtime(),
but allows later tweaking.
   18     """
   19     return time.gmtime(tmsecs or time.time())
 
       global time = <module 'time' (built-in)>,
global gmtime = undefined, tmsecs = -68400
   20 


C:\Moin\Lib\site-packages\MoinMoin\user.py in
getTime(self=<MoinMoin.user.User instance at
0x0064B238>, tm=0) 
  246     def getTime(self, tm):
  247         """Get time in user's timezone"""
  248         return datetime.tmtuple(tm +
self.tz_offset)
 
       global datetime = <module
'MoinMoin.util.datetime' from
'C:\Moin\Lib\site-packages\MoinMoin\util\datetime.pyc'>,
global tmtuple = undefined, tm = 0, self =
<MoinMoin.user.User instance at 0x0064B238>, global
tz_offset = undefined
  249 
  250 


C:\Moin\Lib\site-packages\MoinMoin\user.py in
getFormattedDateTime(self=<MoinMoin.user.User instance
at 0x0064B238>, tm=0) 
  256     def getFormattedDateTime(self, tm):
  257         datetime_fmt = self.datetime_fmt or
config.datetime_fmt
  258         return time.strftime(datetime_fmt,
self.getTime(tm))
 
       global time = <module 'time' (built-in)>,
global strftime = undefined, datetime_fmt = '%Y-%m-%d
%H:%M:%S', self = <MoinMoin.user.User instance at
0x0064B238>, global getTime = undefined, tm = 0
  259 
  260 


C:\Moin\Lib\site-packages\MoinMoin\PageEditor.py in
aquire(self=<MoinMoin.PageEditor.PageLock instance at
0x00734B98>) 
  682         self._readLockFile()
  683         bumptime =
self.request.user.getFormattedDateTime(self.now +
self.timeout)
  684         timestamp =
self.request.user.getFormattedDateTime(self.timestamp)
 
       timestamp = undefined, self =
<MoinMoin.PageEditor.PageLock instance at 0x00734B98>,
global request = undefined, global user = <module
'MoinMoin.user' from
'C:\Moin\Lib\site-packages\MoinMoin\user.pyc'>, global
getFormattedDateTime = undefined
  685         owner = self.owner_html
  686         secs_valid = self.timestamp +
self.timeout - self.now


C:\Moin\Lib\site-packages\MoinMoin\PageEditor.py in
sendEditor(self=<MoinMoin.PageEditor.PageEditor
instance at 0x007342B0>, **kw={}) 
  128         else:
  129             # try to aquire edit lock
  130             ok, edit_lock_message =
self.lock.aquire()
 
       ok = undefined, edit_lock_message = None, self
= <MoinMoin.PageEditor.PageEditor instance at
0x007342B0>, global lock = undefined, global aquire =
undefined
  131             if not ok:
  132                 # failed to get the lock


C:\Moin\Lib\site-packages\MoinMoin\wikiaction.py in
do_edit(pagename='202A ReservationSchedule',
request=<MoinMoin.request.Request instance at
0x00643FA8>) 
  488 def do_edit(pagename, request):
  489     from MoinMoin.PageEditor import PageEditor
  490     PageEditor(pagename, request).sendEditor()
 
       PageEditor = <class
MoinMoin.PageEditor.PageEditor at 0x00745900>,
pagename = '202A ReservationSchedule', request =
<MoinMoin.request.Request instance at 0x00643FA8>,
global sendEditor = undefined
  491 
  492 


C:\Moin\Lib\site-packages\MoinMoin\cgimain.py in
run(properties={}) 
  199         else:
  200             try:
  201                 cgitb.handler()
 
       cgitb = <module 'MoinMoin.support.cgitb' from
'C:\Moin\Lib\site-packages\MoinMoin\support\cgitb.pyc'>,
handler = <function do_edit at 0x00733130>
  202             except:
  203                 cgi.print_exception(*saved_exc)


 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com




More information about the Moin-user mailing list