Changeset e982b92
- Timestamp:
- Sep 21, 2011 1:57:55 PM (13 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- ad3d8df
- Parents:
- de2ef5c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/authorizer.py
rde2ef5c re982b92 293 293 @staticmethod 294 294 def clean_attr(attr): 295 ''' 296 Convert anything not in A-Z_ into an _ and make sure that the string 297 begins with a non-_. Convert to s string to keep swig happy. 298 ''' 295 299 a = abac_authorizer.clean_attr_re.sub('_', attr) 296 return abac_authorizer.clean_prefix_attr_re.sub('', a)300 return str(abac_authorizer.clean_prefix_attr_re.sub('', a)) 297 301 298 302 … … 339 343 attrcert.bake() 340 344 except: 341 raise abac_authorize d_bad_cert_error(345 raise abac_authorizer.bad_cert_error( 342 346 "Cannot create attribute cert") 343 347 self.lock.acquire()
Note: See TracChangeset
for help on using the changeset viewer.