| /ImageLink /Include /MailTo /MonthCalendar |
Macros
Macros allow the insertion of system features into normal wiki pages; the only thing that makes those pages special is that they contain macros. If you edit pages like RecentChanges or SystemInfo, you'll see what that means.
For more information on the possible markup, see HelpOnEditing.
Search macros
MoinMoin now uses a new search engine, that lets your make sophisticated searches using both the interactive search box or any of the search macros. For more help, see HelpOnSearching.
Macro |
Description |
Example |
[[TitleSearch]] |
||
create a search box on the page, which search the page titles |
See FindPage |
|
[[FullSearch]] |
||
create a search box on the page, which search the page contents |
See FindPage |
|
[[FullSearch()]] |
||
print a list of pages whose content matches the current page title (like clicking on the page title) |
See the CategoryCategory page |
|
[[FullSearch(text)]] |
||
print a list of pages whose content matches the search term |
Search for powered: --> --> | |
IOError
[Errno 20] Not a directory: 'data/pages/Accao(2d)2008021/revisions/99999999'
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/lib/python2.3/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)
- 1149 from MoinMoin.wikiaction import getHandler
- 1150 handler = getHandler(self, action)
- 1151 handler(self.page.page_name, self)
- 1152
- 1153 # generate page footer (actions that do not want this footer use
- handler = <function do_show>
- self = <MoinMoin.request.RequestCGI object>
- self.page = <MoinMoin.Page.Page instance>
- self.page.page_name = u'HelpOnMacros'
/usr/lib/python2.3/site-packages/MoinMoin/wikiaction.py in do_show (pagename=u'HelpOnMacros', request=<MoinMoin.request.RequestCGI object>)
- 466 else:
- 467 request.cacheable = 1
- 468 Page(request, pagename).send_page(request, count_hit=1)
- 469
- 470
- global Page = <class MoinMoin.Page.Page>
- request = <MoinMoin.request.RequestCGI object>
- pagename = u'HelpOnMacros'
- ).send_page undefined
- count_hit undefined
/usr/lib/python2.3/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg='', **keywords={'count_hit': 1})
- 1251 format_args=pi_formatargs,
- 1252 do_cache=do_cache,
- 1253 start_line=pi_lines)
- 1254
- 1255 # check for pending footnotes
- start_line undefined
- pi_lines = 7
/usr/lib/python2.3/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'\n[[Navigation(children)]]\n[[TableOfContents]]\n\n=...for values which may be suitable. \n\n[[FootNote]]\n', format_args=u'', do_cache=1, **kw={'start_line': 7})
- 1342 try:
- 1343 code = self.loadCache(request)
- 1344 self.execute(request, parser, code)
- 1345 except Exception, e:
- 1346 if not is_cache_exception(e):
- self = <MoinMoin.Page.Page instance>
- self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
- request = <MoinMoin.request.RequestCGI object>
- parser = <MoinMoin.parser.wiki.Parser instance>
- code = <code object ? at 0xf729e820, file "HelpOnMacros", line 2>
/usr/lib/python2.3/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0xf729e820, file "HelpOnMacros", line 2>)
- 1371 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1372 try:
- 1373 exec code
- 1374 except 'CacheNeedsUpdate':
- 1375 raise Exception('CacheNeedsUpdate')
- code = <code object ? at 0xf729e820, file "HelpOnMacros", line 2>
/srv/www/drm_ansol_org/wiki/HelpOnMacros in ?
/usr/lib/python2.3/site-packages/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'FullSearch', args=u'powered')
- 288 def macro(self, macro_obj, name, args):
- 289 # call the macro
- 290 return macro_obj.execute(name, args)
- 291
- 292 def _get_bang_args(self, line):
- macro_obj = <MoinMoin.wikimacro.Macro instance>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>
- name = u'FullSearch'
- args = u'powered'
/usr/lib/python2.3/site-packages/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'FullSearch', args=u'powered')
- 118 else:
- 119 raise ImportError("Cannot load macro %s" % macro_name)
- 120 return execute(self, args)
- 121
- 122 def _m_lang(self, text):
- execute = <function execute>
- self = <MoinMoin.wikimacro.Macro instance>
- args = u'powered'
/usr/lib/python2.3/site-packages/MoinMoin/macro/FullSearch.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, needle=u'powered')
- 56 # Search the pages and return the results
- 57 query = search.QueryParser().parse_query(needle)
- 58 results = search.searchPages(request, query)
- 59 results.sortByPagename()
- 60
- results undefined
- global search = <module 'MoinMoin.search' from '/usr/lib/python2.3/site-packages/MoinMoin/search.py'>
- search.searchPages = <function searchPages>
- request = <MoinMoin.request.RequestCGI object>
- query = <MoinMoin.search.TextSearch instance>
/usr/lib/python2.3/site-packages/MoinMoin/search.py in searchPages (request=<MoinMoin.request.RequestCGI object>, query=<MoinMoin.search.TextSearch instance>, **kw={})
- 1265 @rtype: SearchResults instance
- 1266 @return: search results
- 1267 """
- 1268 return Search(request, query).run()
- 1269
- global Search = <class MoinMoin.search.Search>
- request = <MoinMoin.request.RequestCGI object>
- query = <MoinMoin.search.TextSearch instance>
- ).run undefined
/usr/lib/python2.3/site-packages/MoinMoin/search.py in run (self=<MoinMoin.search.Search instance>)
- 1166 hits = self._lupySearch()
- 1167 else:
- 1168 hits = self._moinSearch()
- 1169
- 1170 # important - filter deleted pages or pages the user may not read!
- hits undefined
- self = <MoinMoin.search.Search instance>
- self._moinSearch = <bound method Search._moinSearch of <MoinMoin.search.Search instance>>
/usr/lib/python2.3/site-packages/MoinMoin/search.py in _moinSearch (self=<MoinMoin.search.Search instance>, pages=[(u'HelpOnProcessors', ''), (u'FAQ', ''), (u'WikiCourse/BasicIntroduction/110 Headlines and Paragraphs', ''), (u'WikiCourse/BasicIntroductionHandOut', ''), (u'Spotify', ''), (u'HelpOnUserHandling', ''), (u'HelpContents', ''), (u'HelpOnInstalling/MinimalWiki', ''), (u'HelpOnHeadlines', ''), (u'35Dias35ProdutosComDRM', ''), (u'iTunes', ''), (u'!eve+Guide+-+Skill+Trees(1)', ''), (u'HelpOnAccessControlLists', ''), (u'HelpOnSkins', ''), (u'DRM', ''), (u'HelpOnXmlPages', ''), (u'HelpOnPageDeletion', ''), (u'WikiCourse', ''), (u'UserPreferences', ''), (u'WikiCourse/BasicIntroduction/195 Actions', ''), ...])
- 1227 hits.append((page, attachment, None))
- 1228 else:
- 1229 match = self.query.search(page)
- 1230 if match:
- 1231 hits.append((page, attachment, match))
- match = None
- self = <MoinMoin.search.Search instance>
- self.query = <MoinMoin.search.TextSearch instance>
- self.query.search = <bound method TextSearch.search of <MoinMoin.search.TextSearch instance>>
- page = <MoinMoin.Page.Page instance>
/usr/lib/python2.3/site-packages/MoinMoin/search.py in search (self=<MoinMoin.search.TextSearch instance>, page=<MoinMoin.Page.Page instance>)
- 242
- 243 # Search in page body
- 244 body = page.get_raw_body()
- 245 for match in self.search_re.finditer(body):
- 246 matches.append(TextMatch(re_match=match))
- body undefined
- page = <MoinMoin.Page.Page instance>
- page.get_raw_body = <bound method Page.get_raw_body of <MoinMoin.Page.Page instance>>
/usr/lib/python2.3/site-packages/MoinMoin/Page.py in get_raw_body (self=<MoinMoin.Page.Page instance>)
- 781 # try to open file
- 782 try:
- 783 file = codecs.open(self._text_filename(), 'rb', config.charset)
- 784 except IOError, er:
- 785 import errno
- builtin file = <type 'file'>
- global codecs = <module 'codecs' from '/usr/lib/python2.3/codecs.pyc'>
- codecs.open = <function open>
- self = <MoinMoin.Page.Page instance>
- self._text_filename = <bound method Page._text_filename of <MoinMoin.Page.Page instance>>
- global config = <module 'MoinMoin.config' from '/usr/lib/python2.3/site-packages/MoinMoin/config.pyc'>
- config.charset = 'utf-8'
/usr/lib/python2.3/codecs.py in open (filename='data/pages/Accao(2d)2008021/revisions/99999999', mode='rb', encoding='utf-8', errors='strict', buffering=1)
- 564 # Force opening of the file in binary mode
- 565 mode = mode + 'b'
- 566 file = __builtin__.open(filename, mode, buffering)
- 567 if encoding is None:
- 568 return file
- builtin file = <type 'file'>
- global __builtin__ = <module '__builtin__' (built-in)>
- __builtin__.open = <type 'file'>
- filename = 'data/pages/Accao(2d)2008021/revisions/99999999'
- mode = 'rb'
- buffering = 1
IOError
[Errno 20] Not a directory: 'data/pages/Accao(2d)2008021/revisions/99999999'
- args = (20, 'Not a directory')
- errno = 20
- filename = 'data/pages/Accao(2d)2008021/revisions/99999999'
- strerror = 'Not a directory'
System Details
- Date: Fri, 18 May 2012 14:13:03 +0000
- Platform: Linux ansol.org 2.6.39.4-vs2.3.1-pre9.2 #1 SMP Fri Sep 23 02:22:56 WEST 2011 x86_64
- Python: Python 2.3.5 (/usr/bin/python)
- MoinMoin: Release 1.5.6 (release)
