Description

I was creating a Wiki page. I noticed that my edit lock had failed, but I kept writing -- the data was "mine" and I didn't expect anyone else would attempt to write/edit my new page.

When I tried to write the data, I got an error; traceback is below...

Steps to reproduce

Frankly, I don't have the *time* to do this; I'm only reporting it out of ordinary good will; if you don't want the problem-report, please feel free to toss it in the bitbucket.

Example

Details

Sorry, only took the plaintext...

Traceback

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

/usr/lib/python2.3/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestModPy object>)

 1019                      from MoinMoin.wikiaction import getHandler

 1020                      handler = getHandler(self, action)

 1021                      handler(self.page.page_name, self)

 1022  

 1023              # 5. Or redirect to another page


handler = <function do_savepage> self = <MoinMoin.request.RequestModPy object> self.page = <MoinMoin.Page.Page instance> self.page.page_name = u'GeneralAndersen' 
/usr/lib/python2.3/site-packages/MoinMoin/wikiaction.py in do_savepage (pagename=u'GeneralAndersen', request=<MoinMoin.request.RequestModPy object>)

  636              # msg contain a unicode string

  637              savemsg = unicode(msg)

  638  

  639          # Send new page after save or after unsuccessful conflict merge.

  640          request.reset()


request = <MoinMoin.request.RequestModPy object> request.reset = <bound method RequestModPy.reset of <MoinMoin.request.RequestModPy object>> 
/usr/lib/python2.3/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.PageEditor.PageEditor instance>, request=<MoinMoin.request.RequestModPy object>, msg=u'Thank you for your changes. Your attention to detail is appreciated.', **keywords={})

 1152                      request.write(''.join(pi_formtext))

 1153  

 1154          # Load the parser, or default to plain text parser that will

 1155          # just show the page raw source.

 1156          # TODO: do we need this magic? any effect on debugging?


/usr/lib/python2.3/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.PageEditor.PageEditor instance>, request=<MoinMoin.request.RequestModPy object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'General Carson "Careful" Andersen was thought, b...armed except under the most dire of extremeties.\n', needsupdate=1, format_args='', do_cache=1)

 1312              raise 'CacheNeedsUpdate'

 1313  

 1314      def makeCache(self, request, parser):

 1315          """ Format content into code, update cache and return code """

 1316          import marshal        


makeCache undefined self = <MoinMoin.PageEditor.PageEditor instance> request = <MoinMoin.request.RequestModPy object> parser = <MoinMoin.parser.wiki.Parser instance> 
/GeneralAndersen in ? 

AttributeError
Config instance has no attribute 'cfg_mtime'

args = ("Config instance has no attribute 'cfg_mtime'",) 
System Details
Date: Tue, 08 Nov 2005 20:20:58 +0000 
Platform: Linux brahman 2.4.27-2-686-smp #1 SMP Fri Mar 25 11:40:11 JST 2005 i686 
Python: Python 2.3.5 (/usr/bin/python) 
MoinMoin: Release 1.3.5rc1 (patch-864) 

Tracebak PereMartinez 2005-11-17

AttributeError

Config instance has no attribute 'cfg_mtime'
Traceback

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

/usr/lib/python2.3/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestStandAlone object>)

  834  

  835      def _setup_args_from_cgi_form(self, form=None):

  836          """ Return args dict from a FieldStorage

  837          

  838          Create the args from a standard cgi.FieldStorage or from given

/usr/lib/python2.3/site-packages/MoinMoin/wikiaction.py in do_userform (pagename=u'Saldos', request=<MoinMoin.request.RequestStandAlone object>)

  686          msg = _('You have been subscribed to this page.') + u' ' + \

  687                _('To unsubscribe, go to your profile and delete this page from the subscription list.')

  688  

  689      Page(request, pagename).send_page(request, msg=msg)

  690  
global Page = <class MoinMoin.Page.Page>, request = <MoinMoin.request.RequestStandAlone object>, pagename = u'Saldos', ).send_page undefined , msg undefined , 

/usr/lib/python2.3/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestStandAlone object>, msg='', **keywords={})

 1152                      request.write(''.join(pi_formtext))

 1153  

 1154          # Load the parser, or default to plain text parser that will

 1155          # just show the page raw source.

 1156          # TODO: do we need this magic? any effect on debugging?

/usr/lib/python2.3/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestStandAlone object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u" [[TableOfContents]]\n\n== Tresoreria ==\n\n [[Sal...\n== Compte d'Explotaci\xf3 ==\n\n [[Saldos(6% 7%)]]\n", needsupdate=0, format_args='', do_cache=1)

 1312              raise 'CacheNeedsUpdate'

 1313  

 1314      def makeCache(self, request, parser):

 1315          """ Format content into code, update cache and return code """

 1316          import marshal        
makeCache undefined , self = <MoinMoin.Page.Page instance>, request = <MoinMoin.request.RequestStandAlone object>, parser = <MoinMoin.parser.wiki.Parser instance>, 

/win/home/wikis/pere/Saldos in ? 
AttributeError

Config instance has no attribute 'cfg_mtime'
args = ("Config instance has no attribute 'cfg_mtime'",)
System Details
Date: Thu, 17 Nov 2005 09:46:31 +0000
Platform: Linux asus 2.6.14-kanotix-3 #1 PREEMPT Fri Nov 11 21:41:07 CET 2005 i686
Python: Python 2.3.5 (/usr/bin/python)

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

Workaround

Discussion

Please reproduce, save the HTML of the traceback page and attach it to this page here. Those plaintext copies aren't very useful.

We think this is caused by page cache files not matching the installed moin version, so running MoinMoin/scripts/cachecleaner.py should help. This is recommended on up/downgrades anyway.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/ConfigInstanceHasNoAttribute-cfg_mtime (last edited 2007-10-29 19:06:00 by localhost)