Changeset 5097195 for fedd/federation


Ignore:
Timestamp:
Sep 15, 2011 5:30:57 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
6031c9d
Parents:
b5aa64a
Message:

Make sure that the file access attributes do not begin with an
underscore. (Unsure why this wasn't needed before).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/authorizer.py

    rb5aa64a r5097195  
    200200
    201201    clean_attr_re = re.compile('[^A-Za-z0-9_]+')
     202    clean_prefix_attr_re = re.compile('^_+')
    202203    cred_file_re = re.compile('.*\.der$')
    203204    bad_name = authorizer_base.bad_name
     
    270271    @staticmethod
    271272    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)
    273275
    274276
Note: See TracChangeset for help on using the changeset viewer.