Changeset 5097195
- Timestamp:
- Sep 15, 2011 5:30:57 PM (13 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- 6031c9d
- Parents:
- b5aa64a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/authorizer.py
rb5aa64a r5097195 200 200 201 201 clean_attr_re = re.compile('[^A-Za-z0-9_]+') 202 clean_prefix_attr_re = re.compile('^_+') 202 203 cred_file_re = re.compile('.*\.der$') 203 204 bad_name = authorizer_base.bad_name … … 270 271 @staticmethod 271 272 def clean_attr(attr): 272 return abac_authorizer.clean_attr_re.sub('_', attr) 273 a = abac_authorizer.clean_attr_re.sub('_', attr) 274 return abac_authorizer.clean_prefix_attr_re.sub('', a) 273 275 274 276
Note: See TracChangeset
for help on using the changeset viewer.