Man Corn Wiki   AiutoSuMacro UserPreferences
 
HelpContents FindPage Diffs Info Edit Subscribe XML Print View

  1. Macro
    1. Macro di ricerca
    2. Navigazione
    3. Informazioni di sistema
    4. Altre
  2. Esempio

Macro

Le macro consentono di inserire nuove funzionalità nelle normali pagine wiki; l'unica cosa che rende speciali quelle pagine è che contengono delle macro. Se modifichi pagine tipo ModificheRecenti o SystemInfo, potrai vedere che cosa questo significhi.

Per ulteriori informazioni sulle possibili formattazioni, vedi AiutoSuFormattazione.

Macro di ricerca

MacroDescrizioneEsempio
[[TitleSearch]] cerca tra i titoli delle pagine Vedi CercaPagina
[[FullSearch]] cerca nel contenuto delle pagine Vedi CercaPagina
[[FullSearch()]] cerca il titolo corrente in tutte le pagine (come cliccando sul titolo della pagina) Vedi la pagina CategoryCategory
[[FullSearch('testo')]] cerca "testo" in tutte le pagine Cerca FullSearch:
  1. AiutoSuMacro . . . . 6 matches
  2. HelpOnMacros . . . . 6 matches
  3. HilfeZuMakros . . . . 6 matches
  4. HjälpMedMakron . . . . 6 matches
  5. AiutoSuAzioni . . . . 3 matches
  6. HelpOnActions . . . . 3 matches
  7. HilfeZuAktionen . . . . 3 matches
  8. HjälpMedÅtgärder . . . . 3 matches
  9. CategoryCategory . . . . 1 match
  10. CercaPagina . . . . 1 match
  11. FindPage . . . . 1 match
  12. FindSide . . . . 1 match
  13. KategoriKategori . . . . 1 match
  14. KategorieHomepage . . . . 1 match
  15. KategorieKategorie . . . . 1 match
  16. NavigaIlSito . . . . 1 match
  17. NavigationSite . . . . 1 match
  18. PlatsNavigering . . . . 1 match
  19. SiteNavigation . . . . 1 match
  20. SiteNavigering . . . . 1 match
  21. SökSida . . . . 1 match
  22. TrouvePage . . . . 1 match
  23. WegWeiser . . . . 1 match
[[GoTo]] vai direttamente alla pagina che indichi Vedi CercaPagina
[[PageList(regex)]] elenca le pagine il cui titolo corrisponde alla regex Vedi AiutoIndice

Navigazione

>
MacroDescrizioneEsempio
[[RecentChanges]] elenca le pagine modificate di recente Vedi ModificheRecenti
[[TitleIndex]] genera un indice di tutti i titoli delle pagine Vedi IndiceDeiTitoli
[[WordIndex]] genera un indice di tutte le parole nei titoli delle pagine Vedi IndicePerParola
[[WantedPages]] elenca i riferimenti a pagine non esistenti Vedi PagineAssenti
[[OrphanedPages]] elenca le pagine che non sono referenziate da altre pagine Vedi PagineOrfane
[[AbandonedPages]] elenca le pagine che non sono state modificate da lungo tempo Vedi PagineAbbandonate
 
 
: 'NoneType' object is not callable
Please include this information in your bug reports!:
Python 2.6.2 (r262:71600, Aug 4 2010, 12:39:10) [GCC 4.2.1 20070719 [FreeBSD]] - /usr/local/bin/python
FreeBSD ekinek.pair.com 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #0: Wed Sep 28 09:50:42 EDT 2011 erik5@yodh.pair.com:/usr/obj/usr/src/sys/73PAIRb i386
MoinMoin Release 1.1 [Revision 1.178]

A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call first. The exception attributes are:

/usr/home/ianjones/moin/lib/python2.3/site-packages/MoinMoin/wikimacro.py in execute_external_macro(macro_name='RandomPage', function='execute', args=(<MoinMoin.wikimacro.Macro instance at 0x2879be0c>, None))
   69     if macro_name in macro.extension_macros:
   70         execute = pysupport.importName("MoinMoin.macro." + macro_name, function)
   71         return execute(*args)
       execute = None, args = (<MoinMoin.wikimacro.Macro instance at 0x2879be0c>, None)
   72 
   73     # try plugin dir

/usr/home/ianjones/moin/lib/python2.3/site-packages/MoinMoin/wikimacro.py in execute(self=<MoinMoin.wikimacro.Macro instance at 0x2879be0c>, macro_name='RandomPage', args=None)
  109             return ''
  110 
  111         return execute_external_macro(macro_name, "execute", (self, args))
       global execute_external_macro = <function execute_external_macro at 0x288af294>, macro_name = 'RandomPage', self = <MoinMoin.wikimacro.Macro instance at 0x2879be0c>, args = None
  112 
  113     def _macro_TitleSearch(self, args):

/usr/home/ianjones/moin/lib/python2.3/site-packages/MoinMoin/parser/wiki.py in _macro_repl(self=<MoinMoin.parser.wiki.Parser instance at 0x2889f8cc>, word='[[RandomPage]]')
  702 
  703         # call the macro
  704         return self.macro.execute(macro_name, args)
       self = <MoinMoin.parser.wiki.Parser instance at 0x2889f8cc>, global macro = undefined, global execute = undefined, macro_name = 'RandomPage', args = None
  705 
  706 

/usr/home/ianjones/moin/lib/python2.3/site-packages/MoinMoin/parser/wiki.py in replace(self=<MoinMoin.parser.wiki.Parser instance at 0x2889f8cc>, match=<_sre.SRE_Match object at 0x283b70a0>)
  813                     return self.highlight_text(hit)
  814                 else:
  815                     return getattr(self, '_' + type + '_repl')(hit)
       global getattr = undefined, self = <MoinMoin.parser.wiki.Parser instance at 0x2889f8cc>, type = 'macro', hit = '[[RandomPage]]'
  816         else:
  817             import pprint

/usr/local/lib/python2.6/re.py in subn(pattern=<_sre.SRE_Pattern object at 0x283f4000>, repl=<bound method Parser.replace of <MoinMoin.parser.wiki.Parser instance at 0x2889f8cc>>, string='||{{{[[RandomPage]]}}} || genera un link a una pagina a caso || [[RandomPage]] || ', count=0)
  160     If it is a callable, it's passed the match object and must
  161     return a replacement string to be used."""
  162     return _compile(pattern, 0).subn(repl, string, count)
       global _compile = <function _compile at 0x284aae9c>, pattern = <_sre.SRE_Pattern object at 0x283f4000>, global subn = <function subn at 0x284aacdc>, repl = <bound method Parser.replace of <MoinMoin.parser.wiki.Parser instance at 0x2889f8cc>>, string = '||{{{[[RandomPage]]}}} || genera un link a una pagina a caso || [[RandomPage]] || ', count = 0
  163 
  164 def split(pattern, string, maxsplit=0):

/usr/home/ianjones/moin/lib/python2.3/site-packages/MoinMoin/parser/wiki.py in format(self=<MoinMoin.parser.wiki.Parser instance at 0x2889f8cc>, formatter=<MoinMoin.formatter.text_html.Formatter instance at 0x288a342c>)
  937                 self.request.write(self.highlight_scan(scan_re, line))
  938             else:
  939                 line, count = re.subn(scan_re, self.replace, line)
       line = '||{{{[[RandomPage]]}}} || genera un link a una pagina a caso || [[RandomPage]] || ', count = 6, global re = <module 're' from '/usr/local/lib/python2.6/re.pyc'>, global subn = undefined, scan_re = <_sre.SRE_Pattern object at 0x283f4000>, self = <MoinMoin.parser.wiki.Parser instance at 0x2889f8cc>, global replace = undefined
  940                 ##if not count: self._check_p()
  941                 self._check_p()

/usr/home/ianjones/moin/lib/python2.3/site-packages/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page instance at 0x2888a56c>, request=<MoinMoin.request.Request instance at 0x2873676c>, msg='', **keywords={'count_hit': 1})
  477         else:
  478             # parse the text and send the page content
  479             Parser(body, request).format(self.formatter)
       Parser = <class MoinMoin.parser.wiki.Parser at 0x288abe9c>, body = '\n[[TableOfContents]]\n\n== Macro ==\n\nLe macr...cro\n{{{[[SystemInfo]]}}}:\n\n [[SystemInfo]]\n', request = <MoinMoin.request.Request instance at 0x2873676c>, global format = undefined, self = <MoinMoin.Page.Page instance at 0x2888a56c>, global formatter = undefined
  480 
  481             # check for pending footnotes

/usr/home/ianjones/moin/lib/python2.3/site-packages/MoinMoin/cgimain.py in run(properties={})
  210         else:
  211             try:
  212                 cgitb.handler()
       cgitb = <module 'MoinMoin.support.cgitb' from '/usr/home...thon2.3/site-packages/MoinMoin/support/cgitb.py'>, handler = undefined
  213             except:
  214                 cgi.print_exception(*saved_exc)