Changeset 4566 for TI12-security/trunk/python
- Timestamp:
- 09/12/08 08:56:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.common/ndg/security/common/SQLObject.py
r4404 r4566 12 12 __contact__ = "Philip.Kershaw@stfc.ac.uk" 13 13 __revision__ = '$Id$' 14 warnings.warn("sqlobject based implementation to be replaced with SQLAlchemy " 15 "equivalent in a future release", 16 DeprecationWarning, stacklevel=2) 14 17 15 18 # SQLObject Database interface … … 29 32 30 33 31 #_____________________________________________________________________________32 34 class CredentialRepository(CredentialRepositoryBase): 33 35 """Interface to Credential Repository Database 34 36 35 Nb. inherits from CredentialWallet.CredentialRepository to ensure correct interface36 to the wallet"""37 Nb. inherits from CredentialWallet.CredentialRepository to ensure correct 38 interface to the wallet""" 37 39 38 40 # valid configuration property keywords … … 40 42 41 43 42 #_________________________________________________________________________43 44 def __init__(self, propFilePath=None, dbPPhrase=None, **prop): 44 45 """Initialise Credentials Repository Database object. … … 52 53 Nb. propFilePath setting overrides input dbURI 53 54 """ 55 warnings.warn("sqlobject based implementation to be replaced with " 56 "SQLAlchemy equivalent in a future release", 57 DeprecationWarning, stacklevel=2) 54 58 55 59 self.__con = None … … 66 70 self.setProperties(dbPPhrase=dbPPhrase, **prop) 67 71 68 69 #_________________________________________________________________________70 72 def __setConnection(self, 71 73 dbType=None, … … 139 141 140 142 141 #_________________________________________________________________________142 143 def setProperties(self, dbPPhrase=None, **prop): 143 144 """Update existing properties from an input dictionary … … 156 157 157 158 158 #_________________________________________________________________________159 159 def readProperties(self, 160 160 propFilePath=None, … … 204 204 205 205 206 #_________________________________________________________________________207 206 def addUser(self, userName, dn): 208 207 """A new user to Credentials Repository""" … … 214 213 (userName, e) 215 214 216 217 #_________________________________________________________________________218 215 def auditCredentials(self, dn=None, **attCertValidKeys): 219 216 """Check the attribute certificates held in the repository and delete … … 263 260 264 261 265 #_________________________________________________________________________266 262 def getCredentials(self, dn): 267 263 """Get the list of credentials for a given user's DN""" … … 274 270 275 271 276 #_________________________________________________________________________277 272 def addCredentials(self, dn, attCertList): 278 273 """Add new attribute certificates for a user. The user must have
Note: See TracChangeset
for help on using the changeset viewer.