Ignore:
Timestamp:
Jul 7, 2012 10:25:21 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
2c36179
Parents:
bcc6fd6
Message:

Allow : in projects (grouper)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/access_to_abac.py

    rbcc6fd6 rb931822  
    2121    Encapculate a principal/attribute/link tuple.
    2222    '''
    23     bad_attr = re.compile('[^a-zA-Z0-9_]+')
     23    bad_attr = re.compile('[^a-zA-Z0-9:_]+')
    2424    def __init__(self, p, a, l=None):
    2525        self.principal = p
     
    4242    an intersection/conjunction.
    4343    '''
    44     bad_attr = re.compile('[^a-zA-Z0-9_]+')
     44    bad_attr = re.compile('[^a-zA-Z0-9:_]+')
    4545    def __init__(self, p, a, req):
    4646        self.principal = p
     
    217217            f.close()
    218218            raise parse_error('Error on line %d of %s: %s' % \
    219                     (i, fn, e.message))
     219                    (i, fn, e))
    220220    f.close()
    221221
     
    330330fedid_str = 'fedid:([0-9a-fA-F]{40})'
    331331id_str = '[a-zA-Z][\w_-]*'
    332 proj_str = '[a-zA-Z][\w_/-]*'
     332proj_str = '[a-zA-Z][\w_:/-]*'
    333333path_str = '[a-zA-Z0-9_/\.-]+'
    334334id_any_str = '(%s|<any>)' % id_str
Note: See TracChangeset for help on using the changeset viewer.