Modify

Opened 5 years ago

Closed 4 years ago

Last modified 6 months ago

#6465 closed defect (wontfix)

Creating forum with 0.11 gives "TypeError: 'module' object is not callable". working OK on >= 0.11.1

Reported by: farialima Owned by: Blackhex
Priority: lowest Component: DiscussionPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

This is working correctly with 0.11.1 and later versions - so I suppose it shouldn't be fixed, but since I had the problem, I report it

Creating a forum failed with this error:

  NotifyEmail.notify(self, id, subject)
File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/notification.py", line 241, in notify
  Notify.notify(self, resid)
File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/notification.py", line 130, in notify
  self.send(torcpts, ccrcpts)
File "/home/francoisg/discussionplugin/0.11/tracdiscussion/notification.py", line 131, in send
  header['Message-ID'] = self.get_forum_email_id(self.forum['id'])
File "/home/francoisg/discussionplugin/0.11/tracdiscussion/notification.py", line 165, in get_forum_email_id
  digest = md5(s).hexdigest()

Workaround was to edit tracdiscussion/notification.py
and add on line 19 the following code:

try:
    md5()
except TypeError:
    md5 = md5.new

Of course, I should upgrade :)...

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by Blackhex

  • Status changed from new to assigned

Thanks for reporting.

comment:2 Changed 4 years ago by Blackhex

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Blackhex. Next status will be 'closed'.
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.