Differences between revisions 1 and 2
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
[[Include(HelpOnSlideShows/000 Introduction)]] <<Include(HelpOnSlideShows/000 Introduction)>>
Line 11: Line 11:
[[Include(HelpOnSlideShows/100 Creating the slides)]] <<Include(HelpOnSlideShows/100 Creating the slides)>>
Line 13: Line 13:
[[Include(HelpOnSlideShows/900 Last but not least: Running your presentation.)]] <<Include(HelpOnSlideShows/900 Last but not least: Running your presentation.)>>

(!) Print this page in PRINT mode (action=print) to get handouts.

--> -->

TypeError

'dict' object is not callable

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. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.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 execute>
    • self = <MoinMoin.request.request_cgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'SlideShowHandOutTemplate'
  2. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/action/diff.py in execute (pagename=u'SlideShowHandOutTemplate', request=<MoinMoin.request.request_cgi.Request object>)

    1. 184 from MoinMoin.util import diff_html
    2. 185 request.write(f.rawHTML(diff_html.diff(request, oldpage.get_raw_body(), newpage.get_raw_body())))
    3. 186 newpage.send_page(count_hit=0, content_only=1, content_id="content-below-diff")
    4. 187 else:
    5. 188 from MoinMoin.util import diff_text
    • newpage = <MoinMoin.Page.Page object>
    • newpage.send_page = <bound method Page.send_page of <MoinMoin.Page.Page object>>
    • count_hit undefined
    • content_only undefined
    • content_id undefined
  3. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, **keywords={'content_id': 'content-below-diff', 'content_only': 1, 'count_hit': 0})

    1. 1199 format_args=pi['formatargs'],
    2. 1200 do_cache=do_cache,
    3. 1201 start_line=pi['lines'])
    4. 1202
    5. 1203 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 3}
  4. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, body=u'\n(!) Print this page in PRINT mode (action=print...ast but not least: Running your presentation.)>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 3})

    1. 1283
    2. 1284 if not (do_cache and self.canUseCache(Parser)):
    3. 1285 self.format(parser)
    4. 1286 else:
    5. 1287 try:
    • self = <MoinMoin.Page.Page object>
    • self.format = <bound method Page.format of <MoinMoin.Page.Page object>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
  5. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)

    1. 1304 def format(self, parser):
    2. 1305 """ Format and write page content without caching """
    3. 1306 parser.format(self.formatter)
    4. 1307
    5. 1308 def execute(self, request, parser, code):
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • self = <MoinMoin.Page.Page object>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance>
  6. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_html.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">'
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • line = u'<<Include(HelpOnSlideShows/000 Introduction)>> '
    • inhibit_p = False
  7. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'<<Include(HelpOnSlideShows/000 Introduction)>> ', 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
  8. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/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'HelpOnSlideShows/000 Introduction'
    • match = <_sre.SRE_Match object>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object>
  9. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'HelpOnSlideShows/000 Introduction', 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_html.Formatter instance>
    • self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_html.Formatter instance>>
    • self.macro = <MoinMoin.macro.Macro instance>
    • macro_name = u'Include'
    • macro_args = u'HelpOnSlideShows/000 Introduction'
    • 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>
  10. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, name=u'Include', args=u'HelpOnSlideShows/000 Introduction', markup=u'<<Include(HelpOnSlideShows/000 Introduction)>>')

    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'Include'
    • args = u'HelpOnSlideShows/000 Introduction'
  11. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance>, macro_name=u'Include', args=u'HelpOnSlideShows/000 Introduction')

    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'HelpOnSlideShows/000 Introduction'
  12. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/macro/Include.py in execute (macro=<MoinMoin.macro.Macro instance>, text=u'HelpOnSlideShows/000 Introduction', args_re=<_sre.SRE_Pattern object>, title_re=<_sre.SRE_Pattern object>)

    1. 207 inc_page.send_page(content_only=True,
    2. 208 omit_footnotes=True,
    3. 209 count_hit=False)
    4. 210 result.append(strfile.getvalue())
    5. 211 finally:
    • count_hit undefined
    • builtin False = False
  13. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, **keywords={'content_only': True, 'count_hit': False, 'omit_footnotes': True})

    1. 1199 format_args=pi['formatargs'],
    2. 1200 do_cache=do_cache,
    3. 1201 start_line=pi['lines'])
    4. 1202
    5. 1203 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': u'wiki', 'formatargs': u'', 'language': u'en', 'lines': 8}
  14. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, body=u'= Introduction =\n\nYou can use all wiki markup fo... will be hardly visible.\n\n<<Navigation(slides)>>\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 8})

    1. 1287 try:
    2. 1288 code = self.loadCache(request)
    3. 1289 self.execute(request, parser, code)
    4. 1290 except Exception, e:
    5. 1291 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_cgi.Request object>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • code = <code object <module> at 0x2f67d59d3b0, file "HelpOnSlideShows/000 Introduction", line 2>
  15. /home/gdinwiddie/moin-1.8.7-installed/lib/python2.4/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>, code=<code object <module> at 0x2f67d59d3b0, file "HelpOnSlideShows/000 Introduction", line 2>)

    1. 1318 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1319 try:
    3. 1320 exec code
    4. 1321 except "CacheNeedsUpdate": # convert the exception
    5. 1322 raise Exception("CacheNeedsUpdate")
    • code = <code object <module> at 0x2f67d59d3b0, file "HelpOnSlideShows/000 Introduction", line 2>
  16. /home/gdinwiddie/alberg30.org/public_html/HelpOnSlideShows/000 Introduction in ()

TypeError

'dict' object is not callable

  • args = ("'dict' object is not callable",)
  • message = "'dict' object is not callable"

System Details

  • Date: Mon, 23 Oct 2017 10:05:37 +0000
  • Platform: Linux dorena 3.2.61-grsec-modsign #1 SMP Tue Aug 12 09:58:26 UTC 2014 x86_64
  • Python: Python 2.7.6 (/usr/bin/python)
  • MoinMoin: Release 1.8.7 (release)