- Timestamp:
- Aug 1, 2008 2:58:53 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 4a6f04b
- Parents:
- 7aec37d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_proj.py
r7aec37d re5a8b44 303 303 project = None 304 304 user = None 305 rp = fedd_proj.access_project() 306 ru = None 307 305 308 306 309 principal_type = self.fedid_category.get(fid, self.fedid_default) … … 347 350 if found[0].name == "<same>": 348 351 if project != None: 349 found[0].name = project352 rp.name = project 350 353 else : 351 354 raise service_error(\ … … 353 356 "Project matched <same> when no project given") 354 357 elif found[0].name == "<dynamic>": 355 found[0].name = None358 rp.name = None 356 359 dyn_proj = True 360 else: 361 rp.name = found[0].name 362 rp.node_types = found[0].node_types; 357 363 358 364 if found[1] == "<same>": 359 365 if user_match == "<any>": 360 if user != None: found = (found[0], user[0])366 if user != None: ru = user[0] 361 367 else: raise service_error(\ 362 368 service_error.server_config, 363 369 "Matched <same> on anonymous request") 364 370 else: 365 found = (found[0], user_match)371 ru = user_match 366 372 elif found[1] == "<dynamic>": 367 found = (found[0], None)373 ru = None 368 374 dyn_user = True 369 375 370 return found, (dyn_user, dyn_proj)376 return (rp, ru), (dyn_user, dyn_proj) 371 377 372 378 def build_response(self, alloc_id, ap):
Note: See TracChangeset
for help on using the changeset viewer.