Modify

Opened 4 years ago

Closed 4 years ago

#13997 closed defect (fixed)

Exception in Timeline with tags search terms

Reported by: Cinc-th Owned by: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.4

Description

The timeline can't be shown when using terms in matching tags input field:

 Trac hat einen internen Fehler festgestellt:

AttributeError: 'FullBlogTagSystem' object has no attribute 'resource_tags'
Datei "/Users/cinc/projects/venvs/Trac-1.5/lib/python3.8/site-packages/trac/web/main.py", Zeile 609, in dispatch_request          
  dispatcher.dispatch(req)
Datei "/Users/cinc/projects/venvs/Trac-1.5/lib/python3.8/site-packages/trac/web/main.py", Zeile 301, in dispatch          
  raise e
Datei "/Users/cinc/projects/venvs/Trac-1.5/lib/python3.8/site-packages/trac/web/main.py", Zeile 251, in dispatch          
  self._post_process_request(req, *resp)
Datei "/Users/cinc/projects/venvs/Trac-1.5/lib/python3.8/site-packages/trac/web/main.py", Zeile 469, in _post_process_request          
  resp = f.post_process_request(req, *resp)
Datei "/Users/cinc/projects/tagsplugin/trunk/tractags/web_ui.py", Zeile 336, in post_process_request          
  tags = tag_system.get_tags(None, resource)
Datei "/Users/cinc/projects/tagsplugin/trunk/tractags/api.py", Zeile 330, in get_tags          
  return set(self._get_provider(resource.realm) \

Reason is that FullBlogTagSystem doesn't implement the method resource_tags() as defined by ITagProvider.

How to see

  • Enter a search term into the matching tags field
  • Click update

The exception happens due to some internal processing with the match terms causing the faulty code path (see sources of TagsPlugin).

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by Cinc-th

Resolution: fixed
Status: newclosed

In 18204:

FullBlogPlugin: added missing methods of ITagProvider, namely resource_tags() and reparent_resource_tags()

  • added classifiers to setup.py
  • bumped version from 0.2 to 0.3.0
  • considered to be production ready thus removed dev from egg.

closes #13997

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
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.