Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #374 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

Bug in identity fails to actually build tables

Reported by: doug@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: Identity Version:
Severity: major Keywords:
Cc:

Description

This seems to help though. Without this it just barfs at me.

Index: soprovider.py
===================================================================
--- soprovider.py       (revision 485)
+++ soprovider.py       (working copy)
@@ -89,11 +89,14 @@
                 raise identity.IdentityConfigurationException( "Missing Permission class: %s" % classname )
             self.permission_class= getattr( module, classname );

+       hub.begin()
         # create the database tables
         self.user_class.createTable(ifNotExists=True)
         self.group_class.createTable(ifNotExists=True)
         self.permission_class.createTable(ifNotExists=True)
         TG_VisitIdentity.createTable(ifNotExists=True)
+       hub.commit()
+       hub.end()

         # Default encryption algorithm is to use plain text passwords
         algorithm= get( "identity.soprovider.password_encryption", None )

Change History

comment:1 Changed 14 years ago by Jeff Watkins

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 0.9

It's funny, but I just added the exact same code moments before bringing up track...

I think this will be fixed in r487.

Note: See TracTickets for help on using tickets.