Ticket #364 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

UmitDB doesn't uses hashlib correctly

Reported by: rcarvalho Owned by: boltrix
Priority: medium Milestone:
Component: Umit Version: current svn
Keywords: Cc: luis

Description

When I try to use umit.core.UmitDB, it tries to use hashlib (on python 2.5), but the class hashlib.md5 does not a method 'new'. I've attached a patch that fix the problem.

Attachments

umitdb_patch.diff (1.5 kB) - added by rcarvalho 4 years ago.

Change History

Changed 4 years ago by luis

Which version are you using? Last svn?

I have fixed it some weeks ago. Check by yourself: http://trac.umitproject.org/browser/trunk/umit/core/UmitDB.py

is it okay, right?

Changed 4 years ago by rcarvalho

Changed 4 years ago by rcarvalho

I've attached an updated version of the patch, that simplifies a bit the process of hashing / digesting, without the need of creating a new class.

Changed 4 years ago by luis

Tested under python2.6

I believe that it is the right way to do it, indeed. It should be work in other versions also, as we discussed.

Changed 3 years ago by ignotus

  • cc luis added

So, are we ready to apply the patch?

Changed 3 years ago by luis

yep

Changed 3 years ago by luis

Rodolfo, can you apply the patch?

Changed 3 years ago by rcarvalho

  • status changed from new to closed
  • resolution set to fixed

This patch was already applied in trunk, the issue is resolved.

Changed 3 years ago by ignotus

No idea in which revision?

Changed 3 years ago by ignotus

It seems that was r5440.

Note: See TracTickets for help on using tickets.