Changeset 1314
- Timestamp:
- 25/07/06 16:25:37 (15 years ago)
- Location:
- TI12-security/trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/NDG/AttAuthority.py
r1312 r1314 575 575 if mapConfigFilePath is not None: 576 576 if not isinstance(mapConfigFilePath, basestring): 577 raise AttAuthorityError ("Input Map Configuration file path "+\578 "must be a valid string.")577 raise AttAuthorityError, \ 578 "Input Map Configuration file path must be a valid string." 579 579 580 580 self.__prop['mapConfigFile'] = mapConfigFilePath 581 581 582 583 tree = ElementTree.parse(self.__prop['mapConfigFile']) 584 rootElem = tree.getroot() 585 582 583 try: 584 tree = ElementTree.parse(self.__prop['mapConfigFile']) 585 rootElem = tree.getroot() 586 587 except IOError, e: 588 raise AttAuthorityError, \ 589 "Error parsing properties file \"%s\": %s" % \ 590 (e.filename, e.strerror) 591 592 except Exception, e: 593 raise AttAuthorityError, \ 594 "Error parsing Map Configuration file: \"%s\": %s" % \ 595 (self.__prop['mapConfigFile'], e) 596 597 586 598 trustedElem = rootElem.findall('trusted') 599 if not trustedElem: 600 raise AttAuthorityError, \ 601 "\"trusted\" tag not found in Map Configuration file \"%s\"" % \ 602 self.__prop['mapConfigFile'] 587 603 588 604 # Dictionaries:
Note: See TracChangeset
for help on using the changeset viewer.