- Timestamp:
- Dec 1, 2010 10:46:56 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 1f356d3
- Parents:
- dee164e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/access_to_abac.py
rdee164e rc324ad3 89 89 if user == '<same>': 90 90 if gu is not None: 91 project= gu91 user = gu 92 92 else: 93 93 raise parse_error("User cannot be decisively mapped: %s" % l) … … 95 95 # Create a semi-mnemonic name for the destination credential (the one 96 96 # that will be mapped to the local attributes 97 if project and user:98 a = 'project_%s_user_%s' % ( project, user)99 elif project:100 a = 'project_%s' % project101 elif user:102 a = 'user_%s' % user97 if gp and gu: 98 a = 'project_%s_user_%s' % (gp, gu) 99 elif gp: 100 a = 'project_%s' % gp 101 elif gu: 102 a = 'user_%s' % gu 103 103 else: 104 104 raise parse_error("No mapping for %s/%s!?" % (gp, gu)) … … 305 305 306 306 if opts.dir: 307 if not os.access(opts.dir, os.F_OK): 308 try: 309 os.mkdir(opts.dir, 0700) 310 except EnvironmentError, e: 311 sys.exit("Cannot create %s: %s" % (e.filename, e.strerror)) 307 312 if not os.path.isdir(opts.dir): 308 313 sys.exit('%s is not a directory' % opts.dir)
Note: See TracChangeset
for help on using the changeset viewer.