Modify

Opened 13 years ago

Closed 11 years ago

#9576 closed defect (fixed)

NameError: global name 'TagSystem' is not defined

Reported by: ramya.j Owned by: Radek Bartoň
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Steffen Hoffmann Trac Release: 0.11

Description

How to Reproduce

While doing a POST operation on /discussion, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'7b09533d1a52cec7315e0e23',
 'description': u'Disscuss all knowledge',
 'discussion_action': u'post-add',
 'group': u'0',
 'moderators': u'ravi.pr',
 'name': u'Opsone',
 'subject': u'Product Description',
 'submit': u'Submit',
 'subscribers': [u'arati.p', u'ramya.j'],
 'tags': u'Opsone',
 'unregistered_subscribers': u''}

User agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0

System Information

Trac 0.12.2
Agilo 0.9.5
Babel 0.9.6 (translations unavailable)
Genshi 0.6
mod_python 3.3.1
pysqlite 2.3.3
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)]
setuptools 0.6c8
SQLite 3.5.9
jQuery 1.4.2

Enabled Plugins

binary-agilo 1.3.5-PRO
TicketImport 0.8
TracAccountManager 0.2.1dev-r4679
TracDiscussion 0.8
TracPrivateTickets 2.0.2
TracSimpleTicket 2.0
TracTicketDelete 2.0.1

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/tracdiscussion/core.py", line 112, in process_request
    template, data = api.process_discussion(context)
  File "build/bdist.linux-i686/egg/tracdiscussion/api.py", line 259, in process_discussion
    self._do_actions(context, actions)
  File "build/bdist.linux-i686/egg/tracdiscussion/api.py", line 792, in _do_actions
    context.forum = self.get_forum_by_time(context, forum['time'])
  File "build/bdist.linux-i686/egg/tracdiscussion/api.py", line 1641, in get_forum_by_time
    tag_system = TagSystem(self.env)
NameError: global name 'TagSystem' is not defined

Attachments (0)

Change History (5)

comment:1 Changed 13 years ago by Ryan J Ollos

Component: SELECT A HACKDiscussionPlugin
Owner: changed from anonymous to Radek Bartoň

comment:2 Changed 13 years ago by Ryan J Ollos

Cc: Steffen Hoffmann added; anonymous removed

I'm not sure what the requirements of the DiscussionPlugin are, but you can probably resolve this (at least temporarily, until the plugin author follows up with more info) by installing the TagsPlugin.

Last edited 11 years ago by Steffen Hoffmann (previous) (diff)

comment:3 Changed 12 years ago by Ryan J Ollos

The plugin is checking whether tracdiscussion.tags.DiscussionTags is enabled, but not whether tagsplugin is enabled, which may be the problem here.

comment:4 Changed 12 years ago by Ryan J Ollos

Some work was done in #8832 and #10461 to resolve these issues, but this ticket will be left open for the refactor/redesign of the TagsPlugin API implementation.

comment:5 in reply to:  4 Changed 11 years ago by Steffen Hoffmann

Resolution: fixed
Status: newclosed

Replying to rjollos:

Some work was done in #8832 and #10461 to resolve these issues, but this ticket will be left open for the refactor/redesign of the TagsPlugin API implementation.

This has been taken care for by [12141] indeed. Let's go on tracking of details to #6783.

Modify Ticket

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