Modify

Opened 3 years ago

Last modified 3 years ago

#8637 assigned defect

Context object changes breaks email2trac compatibility

Reported by: keith@… Owned by: Blackhex
Priority: high Component: DiscussionPlugin
Severity: major Keywords: email2trac
Cc: Trac Release: 0.11

Description

email2trac trac:   File "/usr/local/bin/email2trac", line 1643, in parse
    self.discussion_topic_reply(m, subject[result.end('topic'):])

email2trac trac:   File "/usr/local/bin/email2trac", line 1350, in discussion_topic_reply
    topic = api.get_topic(context, self.id)

email2trac trac:   File "build/bdist.freebsd-7.2-STABLE-i386/egg/tracdiscussion/api.py", line 1544, in get_topic
    if subscriber not in context.users:

email2trac trac: AttributeError: 'Context' object has no attribute 'users'

I'm running trac 0.12.1 and the latest svn of discussion plugin and email2trac.

I think changeset 9770 might have something to do with this: http://trac-hacks.org/changeset/9770/discussionplugin/0.11/tracdiscussion/api.py

I opened a ticket w/ the email2trac devs as well, I don't know enough about trac hacking to figure out if the context object needs to be changed in email2trac or if something in discussion plugin needs to be changed. Please let me know if I can provide more information or test patches. Thanks

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by Blackhex

  • Priority changed from normal to high
  • Severity changed from normal to major
  • Status changed from new to assigned

This is caused by unfinished implementation of TracTags support. I'll will finish it as soon as my free time allows. Please meanwhile use older revision if you don't need tag support.

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.