Changeset 1142 for TI12-security
- Timestamp:
- 08/06/06 13:32:29 (15 years ago)
- Location:
- TI12-security/trunk/python/NDG
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/NDG/AttAuthority.py
r1125 r1142 387 387 388 388 # Mark new Attribute Certificate as an original 389 attCert['provenance'] = 'original'389 attCert['provenance'] = AttCert.origProvenance 390 390 391 391 else: … … 465 465 466 466 # Mark new Attribute Certificate as mapped 467 attCert['provenance'] = 'mapped'467 attCert['provenance'] = AttCert.mappedProvenance 468 468 469 469 # End set mapped certificate block -
TI12-security/trunk/python/NDG/AttCert.py
r1131 r1142 52 52 # Provenance of certificate may be original or mapped from another 53 53 # certificate 54 __provenance = ('original', 'mapped') 54 mappedProvenance = 'mapped' 55 origProvenance = 'original' 56 __provenance = (origProvenance, mappedProvenance) 55 57 56 58 … … 359 361 def isOriginal(self): 360 362 """Check for original provenance.""" 361 return self.__dat['provenance'] == 'original'363 return self.__dat['provenance'] == self.__class__.origProvenance 362 364 363 365 364 366 def isMapped(self): 365 367 """Check for mapped provenance.""" 366 return self.__dat['provenance'] == 'mapped'368 return self.__dat['provenance'] == self.__class__.mappedProvenance 367 369 368 370 … … 604 606 self.__dtNotBefore = datetime.utcnow() 605 607 606 607 608 if notBeforeOffset is not None: 609 self.__dtNotBefore += timedelta(seconds=notBeforeOffset) 608 610 609 611
Note: See TracChangeset
for help on using the changeset viewer.