Modify

Opened 9 years ago

Closed 9 years ago

#365 closed enhancement (fixed)

email2trac doesn't work with discussionplugin 0.9

Reported by: anonymous Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 2.8.4
Keywords: Cc:

Description

trying to use email2trac v2.8.8 with discussionplugin v0.9dev. I think the discussionplugin API must have changed and there is an incompatibility

2015-05-09 16:46:03,957 email2trac wol: Traceback (most recent call last):

2015-05-09 16:46:03,957 email2trac wol: File "/usr/local/bin/email2trac", line 2915, in <module>

tktparser.parse(sys.stdin)

2015-05-09 16:46:03,957 email2trac wol: File "/usr/local/bin/email2trac", line 1823, in parse

self.parse_subject_field(m, subject, spam_msg)

2015-05-09 16:46:03,957 email2trac wol: File "/usr/local/bin/email2trac", line 1938, in parse_subject_field

self.discussion_topic_reply(m, subject[result.end('topic'):])

2015-05-09 16:46:03,957 email2trac wol: File "/usr/local/bin/email2trac", line 1589, in discussion_topic_reply

topic = api.get_topic(context, self.id)

2015-05-09 16:46:03,957 email2trac wol: File "build/bdist.linux-x86_64/egg/tracdiscussion/api.py", line 1699, in get_topic

(id,))

2015-05-09 16:46:03,957 email2trac wol: File "build/bdist.linux-x86_64/egg/tracdiscussion/model.py", line 54, in _get_item

cursor = context.db.cursor()

2015-05-09 16:46:03,958 email2trac wol: AttributeError?: 'RenderingContext?' object has no attribute 'db'

Attachments (1)

email2trac.patch (4.0 KB) - added by anonymous 9 years ago.
patch for email2trac v2.8.8

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by anonymous

patch for email2trac v2.8.8

comment:1 Changed 9 years ago by anonymous

Added a patch which works for me, using Trac 1.0.5 and tracdiscussion 0.9

comment:2 Changed 9 years ago by bas

In 668:

suppoer discussionplugin 0.9dev, older versions are noi supported anymore, see #365

comment:3 follow-up: Changed 9 years ago by bas

  • Status changed from new to assigned

Thanks for the patch. Can i have your name. Then I can give you the credits.

comment:4 Changed 9 years ago by bas

  • Type changed from defect to enhancement

comment:5 in reply to: ↑ 3 Changed 9 years ago by anonymous

Replying to bas:

Thanks for the patch. Can i have your name. Then I can give you the credits.

Thank-you. Paul Emberson

comment:6 Changed 9 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

Updated changelog

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.