Kaip rašyti?

--> -->

AttributeError

'Request' object has no attribute 'makeUniqueID'

If you want to report a bug, please save this page and attach it to your bug report.

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.

  1. /usr/lib/python2.6/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show>
    • self = <MoinMoin.request.request_wsgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'Bandymas'
  2. /usr/lib/python2.6/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'Bandymas', request=<MoinMoin.request.request_wsgi.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1198 format_args=pi['formatargs'],
    2. 1199 do_cache=do_cache,
    3. 1200 start_line=pi['lines'])
    4. 1201
    5. 1202 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': 'wiki', 'formatargs': '', 'language': 'lt', 'lines': 0}
  4. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_wsgi.Request object>, body=u'<<NewPage(naujienosRuosinys, Ra\u0161yti naujien\u0105,nau...$",sort=descending,items=10,editlink,tabulate)>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1292 try:
    2. 1293 code = self.loadCache(request)
    3. 1294 self.execute(request, parser, code)
    4. 1295 except Exception, e:
    5. 1296 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page object>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page object>>
    • request = <MoinMoin.request.request_wsgi.Request object>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • code = <code object <module> at 0xb841c7b8, file "Bandymas", line 2>
  5. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_wsgi.Request object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>, code=<code object <module> at 0xb841c7b8, file "Bandymas", line 2>)

    1. 1323 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1324 try:
    3. 1325 exec code
    4. 1326 except "CacheNeedsUpdate": # convert the exception
    5. 1327 raise Exception("CacheNeedsUpdate")
    • code = <code object <module> at 0xb841c7b8, file "Bandymas", line 2>
  6. /Bandymas in ()

  7. /usr/lib/python2.6/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, name=u'Include2', args=u'^naujienos/.*,,to="^----$",sort=descending,items=10,editlink,tabulate', markup=u'<<Include2(^naujienos/.*,,to="^----$",sort=descending,items=10,editlink,tabulate)>>')

    1. 308 # call the macro
    2. 309 try:
    3. 310 return macro_obj.execute(name, args)
    4. 311 except ImportError, err:
    5. 312 errmsg = unicode(err)
    • macro_obj = <MoinMoin.macro.Macro instance>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance>>
    • name = u'Include2'
    • args = u'^naujienos/.*,,to="^----$",sort=descending,items=10,editlink,tabulate'
  8. /usr/lib/python2.6/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance>, macro_name=u'Include2', args=u'^naujienos/.*,,to="^----$",sort=descending,items=10,editlink,tabulate')

    1. 127 else:
    2. 128 raise ImportError("Cannot load macro %s" % macro_name)
    3. 129 return execute(self, args)
    4. 130
    5. 131 def _m_lang(self, text):
    • execute = <function execute>
    • self = <MoinMoin.macro.Macro instance>
    • args = u'^naujienos/.*,,to="^----$",sort=descending,items=10,editlink,tabulate'
  9. /var/web/atviras.lt/moinmoin-1.7.1/data/plugin/macro/Include2.py in execute (macro=<MoinMoin.macro.Macro instance>, text=u'^naujienos/.*,,to="^----$",sort=descending,items=10,editlink,tabulate', args_re=<_sre.SRE_Pattern object>, title_re=<_sre.SRE_Pattern object>, called_by_toc=0)

    1. 273 request.redirect(strfile)
    2. 274 try:
    3. 275 cid = request.makeUniqueID("Include_%s" % wikiutil.quoteWikinameFS(inc_page.page_name))
    4. 276 inc_page.send_page(request, content_only=1, content_id=cid)
    5. 277 result.append(strfile.getvalue())
    • cid undefined
    • request = <MoinMoin.request.request_wsgi.Request object>
    • request.makeUniqueID undefined
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.6/site-packages/MoinMoin/wikiutil.py'>
    • wikiutil.quoteWikinameFS = <function quoteWikinameFS>
    • inc_page = <MoinMoin.Page.Page object>
    • inc_page.page_name = u'naujienos/2011-12-18/Slackware - Pirmieji \u017dingsniai'

AttributeError

'Request' object has no attribute 'makeUniqueID'

  • args = ("'Request' object has no attribute 'makeUniqueID'",)
  • message = "'Request' object has no attribute 'makeUniqueID'"

System Details

  • Date: Sun, 05 Feb 2012 03:05:11 +0000
  • Platform: Linux takezo 2.6.37.6-takezo #6 Mon Jan 2 22:46:55 EET 2012 i686
  • Python: Python 2.6.6 (/usr/bin/python)
  • MoinMoin: Release 1.8.8 (release)