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.
/usr/lib64/python2.7/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 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'
/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)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/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})
- 1198 format_args=pi['formatargs'],
- 1199 do_cache=do_cache,
- 1200 start_line=pi['lines'])
- 1201
- 1202 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': u'wiki', 'formatargs': u'', 'language': u'en', 'lines': 6}
/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})
- 1297 raise
- 1298 try:
- 1299 code = self.makeCache(request, parser)
- 1300 self.execute(request, parser, code)
- 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>
/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>)
- 1357 saved_current_lang = request.current_lang
- 1358 try:
- 1359 text = request.redirectedOutput(parser.format, formatter)
- 1360 finally:
- 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>
/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={})
- 846 self.redirect(buf)
- 847 try:
- 848 function(*args, **kw)
- 849 finally:
- 850 self.redirect()
- function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
- args = (<MoinMoin.formatter.text_python.Formatter instance>,)
- kw = {}
/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)
- 1545
- 1546 # Scan line, format and write
- 1547 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1548 self.request.write(formatted_line)
- 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
/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)
- 1359 self.in_table or self.in_list):
- 1360 result.append(self.formatter.paragraph(1, css_class="line867"))
- 1361 result.append(self.replace(match, inhibit_p))
- 1362 end = match.end()
- 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
/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)
- 1403 # Get replace method and replace hit
- 1404 replace_func = getattr(self, '_%s_repl' % type)
- 1405 result.append(replace_func(hit, match.groupdict()))
- 1406 return ''.join(result)
- 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>
/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, ...})
- 1326 if self.macro is None:
- 1327 self.macro = macro.Macro(self)
- 1328 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
- 1329 _macro_name_repl = _macro_repl
- 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>
/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)>>')
- 190 # XXX: why is this necessary??
- 191 macro_obj.formatter = self
- 192 return macro_obj.execute(name, args)
- 193 else:
- 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'
/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')
- 127 else:
- 128 raise ImportError("Cannot load macro %s" % macro_name)
- 129 return execute(self, args)
- 130
- 131 def _m_lang(self, text):
- execute = <function execute>
- self = <MoinMoin.macro.Macro instance>
- args = u'category:[attachment:PMV03.SAV'
/usr/lib64/python2.7/site-packages/MoinMoin/macro/FullSearch.py in execute (macro=<MoinMoin.macro.Macro instance>, needle=u'category:[attachment:PMV03.SAV')
- 104
- 105 # Search the pages and return the results
- 106 results = search.searchPages(request, needle, sort='page_name')
- 107
- 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
/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={})
- 32 """
- 33 if isinstance(query, str) or isinstance(query, unicode):
- 34 query = QueryParser(**kw).parse_query(query)
- 35 return Search(request, query, sort, mtime=mtime,
- 36 historysearch=historysearch).run()
- query = u'category:[attachment:PMV03.SAV'
- global QueryParser = <class MoinMoin.search.queryparser.QueryParser>
- kw = {}
- ).parse_query undefined
/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')
- 1065 raise QueryError(str(err))
- 1066 logging.debug("parse_quoted_separated items: %r" % items)
- 1067 query = self._analyse_items(items)
- 1068 logging.debug("analyse_items query: %r" % query)
- 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')]
/usr/lib64/python2.7/site-packages/MoinMoin/search/queryparser.py in _analyse_items (self=<MoinMoin.search.queryparser.QueryParser instance>, items=[])
- 1022 domain = True
- 1023 else:
- 1024 raise QueryError("Invalid search prefix")
- 1025 item = item[1:]
- 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)