--> -->

QueryError

Invalid search prefix

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/lib64/python2.7/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'[attachment:PMV03.SAV'
  2. /usr/lib64/python2.7/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'[attachment:PMV03.SAV', 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/lib64/python2.7/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': u'wiki', 'formatargs': u'', 'language': u'en', 'lines': 6}
  4. /usr/lib64/python2.7/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_wsgi.Request object>, body=u'\nDescribe the pages in this category... \n\nTo add...:[attachment:PMV03.SAV)>>\n\n----\nCategoryCategory\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 6})

    1. 1297 raise
    2. 1298 try:
    3. 1299 code = self.makeCache(request, parser)
    4. 1300 self.execute(request, parser, code)
    5. 1301 except Exception, e:
    • code undefined
    • self = <MoinMoin.Page.Page object>
    • self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object>>
    • request = <MoinMoin.request.request_wsgi.Request object>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
  5. /usr/lib64/python2.7/site-packages/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_wsgi.Request object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)

    1. 1357 saved_current_lang = request.current_lang
    2. 1358 try:
    3. 1359 text = request.redirectedOutput(parser.format, formatter)
    4. 1360 finally:
    5. 1361 request.current_lang = saved_current_lang
    • text undefined
    • request = <MoinMoin.request.request_wsgi.Request object>
    • request.redirectedOutput = <bound method Request.redirectedOutput of <MoinMoin.request.request_wsgi.Request object>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • formatter = <MoinMoin.formatter.text_python.Formatter instance>
  6. /usr/lib64/python2.7/site-packages/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_wsgi.Request object>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>, *args=(<MoinMoin.formatter.text_python.Formatter instance>,), **kw={})

    1. 846 self.redirect(buf)
    2. 847 try:
    3. 848 function(*args, **kw)
    4. 849 finally:
    5. 850 self.redirect()
    • function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • args = (<MoinMoin.formatter.text_python.Formatter instance>,)
    • kw = {}
  7. /usr/lib64/python2.7/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_python.Formatter instance>, inhibit_p=False)

    1. 1545
    2. 1546 # Scan line, format and write
    3. 1547 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1548 self.request.write(formatted_line)
    5. 1549
    • formatted_line = u'<p class="line867"><strong>List of pages in this category:</strong> '
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • line = u'<<FullSearchCached(category:[attachment:PMV03.SAV)>> '
    • inhibit_p = False
  8. /usr/lib64/python2.7/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'<<FullSearchCached(category:[attachment:PMV03.SAV)>> ', inhibit_p=False)

    1. 1359 self.in_table or self.in_list):
    2. 1360 result.append(self.formatter.paragraph(1, css_class="line867"))
    3. 1361 result.append(self.replace(match, inhibit_p))
    4. 1362 end = match.end()
    5. 1363 lastpos = end
    • result = ['<p class="line867">']
    • result.append = <built-in method append of list object>
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • match = <_sre.SRE_Match object>
    • inhibit_p = False
  9. /usr/lib64/python2.7/site-packages/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, match=<_sre.SRE_Match object>, inhibit_p=False)

    1. 1403 # Get replace method and replace hit
    2. 1404 replace_func = getattr(self, '_%s_repl' % type)
    3. 1405 result.append(replace_func(hit, match.groupdict()))
    4. 1406 return ''.join(result)
    5. 1407 else:
    • result = []
    • result.append = <built-in method append of list object>
    • replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • hit = u'category:[attachment:PMV03.SAV'
    • match = <_sre.SRE_Match object>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object>
  10. /usr/lib64/python2.7/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'category:[attachment:PMV03.SAV', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})

    1. 1326 if self.macro is None:
    2. 1327 self.macro = macro.Macro(self)
    3. 1328 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1329 _macro_name_repl = _macro_repl
    5. 1330 _macro_args_repl = _macro_repl
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.formatter = <MoinMoin.formatter.text_python.Formatter instance>
    • self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_python.Formatter instance>>
    • self.macro = <MoinMoin.macro.Macro instance>
    • macro_name = u'FullSearchCached'
    • macro_args = u'category:[attachment:PMV03.SAV'
    • markup undefined
    • groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
    • groups.get = <built-in method get of dict object>
  11. /usr/lib64/python2.7/site-packages/MoinMoin/formatter/text_python.py in macro (self=<MoinMoin.formatter.text_python.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, name=u'FullSearchCached', args=u'category:[attachment:PMV03.SAV', markup=u'<<FullSearchCached(category:[attachment:PMV03.SAV)>>')

    1. 190 # XXX: why is this necessary??
    2. 191 macro_obj.formatter = self
    3. 192 return macro_obj.execute(name, args)
    4. 193 else:
    5. 194 return self.__insert_code(
    • macro_obj = <MoinMoin.macro.Macro instance>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance>>
    • name = u'FullSearchCached'
    • args = u'category:[attachment:PMV03.SAV'
  12. /usr/lib64/python2.7/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance>, macro_name=u'FullSearchCached', args=u'category:[attachment:PMV03.SAV')

    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'category:[attachment:PMV03.SAV'
  13. /usr/lib64/python2.7/site-packages/MoinMoin/macro/FullSearch.py in execute (macro=<MoinMoin.macro.Macro instance>, needle=u'category:[attachment:PMV03.SAV')

    1. 104
    2. 105 # Search the pages and return the results
    3. 106 results = search.searchPages(request, needle, sort='page_name')
    4. 107
    5. 108 return results.pageList(request, macro.formatter, paging=False)
    • results undefined
    • global search = <module 'MoinMoin.search' from '/usr/lib64/python2.7/site-packages/MoinMoin/search/__init__.pyc'>
    • search.searchPages = <function searchPages>
    • request = <MoinMoin.request.request_wsgi.Request object>
    • needle = u'category:[attachment:PMV03.SAV'
    • sort undefined
  14. /usr/lib64/python2.7/site-packages/MoinMoin/search/__init__.py in searchPages (request=<MoinMoin.request.request_wsgi.Request object>, query=u'category:[attachment:PMV03.SAV', sort='page_name', mtime=None, historysearch=None, **kw={})

    1. 32 """
    2. 33 if isinstance(query, str) or isinstance(query, unicode):
    3. 34 query = QueryParser(**kw).parse_query(query)
    4. 35 return Search(request, query, sort, mtime=mtime,
    5. 36 historysearch=historysearch).run()
    • query = u'category:[attachment:PMV03.SAV'
    • global QueryParser = <class MoinMoin.search.queryparser.QueryParser>
    • kw = {}
    • ).parse_query undefined
  15. /usr/lib64/python2.7/site-packages/MoinMoin/search/queryparser.py in parse_query (self=<MoinMoin.search.queryparser.QueryParser instance>, query=u'category:[attachment:PMV03.SAV')

    1. 1065 raise QueryError(str(err))
    2. 1066 logging.debug("parse_quoted_separated items: %r" % items)
    3. 1067 query = self._analyse_items(items)
    4. 1068 logging.debug("analyse_items query: %r" % query)
    5. 1069 return query
    • query = u'category:[attachment:PMV03.SAV'
    • self = <MoinMoin.search.queryparser.QueryParser instance>
    • self._analyse_items = <bound method QueryParser._analyse_items of <MoinMoin.search.queryparser.QueryParser instance>>
    • items = [(u'category', u'[attachment', u'PMV03.SAV')]
  16. /usr/lib64/python2.7/site-packages/MoinMoin/search/queryparser.py in _analyse_items (self=<MoinMoin.search.queryparser.QueryParser instance>, items=[])

    1. 1022 domain = True
    2. 1023 else:
    3. 1024 raise QueryError("Invalid search prefix")
    4. 1025 item = item[1:]
    5. 1026
    • global QueryError = <class 'MoinMoin.search.queryparser.QueryError'>

QueryError

Invalid search prefix

  • args = ('Invalid search prefix',)
  • message = 'Invalid search prefix'

System Details

  • Date: Sat, 19 May 2012 18:43:15 +0000
  • Platform: Linux 51G 3.2.1-gentoo-r2 #11 SMP Wed Apr 11 14:34:56 CST 2012 x86_64
  • Python: Python 2.7.2 (/usr/bin/python)
  • MoinMoin: Release 1.8.8 (release)