Modify

Opened 18 years ago

Closed 18 years ago

#484 closed defect (wontfix)

AttributeError: href in clearsilver.py during wiki view with LotusNotesPlugin

Reported by: uwe.belde@… Owned by: BryanTsai
Priority: normal Component: LotusNotesParserMacro
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

I've got following tracebacl during wiki view:

Python Traceback

Traceback (most recent call last):
  File "c:\python23\Lib\site-packages\trac\web\main.py", line 314, in dispatch_request
    dispatcher.dispatch(req)
  File "c:\python23\Lib\site-packages\trac\web\main.py", line 199, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\tractags\web_ui.py", line 63, in process_request
  File "c:\python23\Lib\site-packages\trac\wiki\web_ui.py", line 133, in process_request
    self._render_view(req, db, page)
  File "c:\python23\Lib\site-packages\trac\wiki\web_ui.py", line 445, in _render_view
    req.hdf['wiki'] = {
  File "c:\python23\Lib\site-packages\trac\wiki\formatter.py", line 987, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "c:\python23\Lib\site-packages\trac\wiki\formatter.py", line 784, in format
    self.handle_code_block(line)
  File "c:\python23\Lib\site-packages\trac\wiki\formatter.py", line 723, in handle_code_block
    self.out.write(to_unicode(self.code_processor.process(
  File "c:\python23\Lib\site-packages\trac\wiki\formatter.py", line 112, in process
    text = self.processor(req, text)
  File "c:\python23\Lib\site-packages\trac\wiki\formatter.py", line 100, in _macro_processor
    return self.macro_provider.render_macro(req, self.name, text)
  File "c:\python23\Lib\site-packages\trac\wiki\macros.py", line 481, in render_macro
    return module.execute(req and req.hdf, content, self.env)
  File "c:\python23\share\trac\wiki-macros\notes.py", line 13, in execute
    return parse(hdf, txt, env)
  File "c:\python23\share\trac\wiki-macros\notes.py", line 37, in parse
    return wiki_to_html(txt, env, hdf, env.get_db_cnx(), escape_newlines=True)
  File "c:\python23\Lib\site-packages\trac\wiki\formatter.py", line 987, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "c:\python23\Lib\site-packages\trac\wiki\formatter.py", line 232, in __init__
    self.href = absurls and (req or env).abs_href or (req or env).href
  File "c:\python23\Lib\site-packages\trac\web\clearsilver.py", line 140, in __getattr__
    return getattr(self.hdf, name)
AttributeError: href

Attachments (0)

Change History (3)

comment:1 Changed 18 years ago by BryanTsai

Status: newassigned

This error probably does not related to my code, but clearsilver. Could you provide the source text you're using?

comment:2 Changed 18 years ago by anonymous

Hi, this error reproduceable with any kind of text in braces, but this is ok:

{{{
#!notes
}}}

Perhaps it is an issue with a modified prepocessor/mimeviewer in 0.10?
PS.: with version 0.10dev of april this year it was running ok.

comment:3 Changed 18 years ago by BryanTsai

Resolution: wontfix
Status: assignedclosed

I guess it is working for 0.10 release now.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain BryanTsai.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.