Ticket #9576 (new defect)

Opened 1 year ago

Last modified 7 months ago

NameError: global name 'TagSystem' is not defined

Reported by: ramya.j Assigned to: Blackhex
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: hasienda 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

Change History

12/04/11 00:35:15 changed by rjollos

  • owner set to Blackhex.
  • component changed from SELECT A HACK to DiscussionPlugin.

12/04/11 00:36:42 changed by rjollos

  • cc set to hasienda.

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), but installing the TagsPlugin.

09/26/12 02:44:29 changed by rjollos

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

10/10/12 21:25:46 changed by 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.


Add/Change #9576 (NameError: global name 'TagSystem' is not defined)




Change Properties
Action