[AG-DEV] Problems with AddRole

Michael Miller mimiller at ncsa.uiuc.edu
Tue Sep 6 12:27:01 CDT 2005


Hello,

So here's my code:
self.am = AuthorizationManagerIW(venueAuthUrl)
SomeUsersrole=Role('SomeUsers',participant.GetSubject())
            try:
                self.am.AddRole(SomeUsersrole)
             except:
                print "error adding role"
And here's the errors:
On the VenueManagement side:

<Fault SOAP-ENV:Server: Method Failed: 
Venues:000001060cf687a3008d008e00de001138
6:Authorization:AddRole>
error adding role

On the Server side:
************************************************************************
*** Method 
Venues:000001060cf687a3008d008e00de0011386:Authorization:AddRole exce
ption
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\SOAPpy\Server.py", line 408, in 
do_POST
    fr = apply(f, ordered_args, named_args)
  File 
"C:\Python23\Lib\site-packages\AccessGrid\Security\AuthorizationManager.p
y", line 657, in AddRole
    r = Role.CreateRole(role)
  File "C:\Python23\Lib\site-packages\AccessGrid\Security\Role.py", line 
95, in
CreateRole
    n = role.name
AttributeError: 'str' object has no attribute 'name'


Looking at the AuthorizationManagerIW and related code, I see that when 
the role object is passed, it is used in a Role.CreateRole call each 
step of the way.  Is there a reason for this? Does the role object 
change as it is passed from one function to another? or is there some 
intermediate step I am missing?

Any ideas?

-- 
Thanx,

Michael Miller
System Engineer
Video Technology Services
Persistent Infrastructure Directorate
National Center for Supercomputing Applications
University of Illinois - UC
217-649-0747

"If you're clear in your vision and trust the people in your team with clear objectives, they will invariably do their best to achieve everything desired, and usually deliver everything you could have hoped for and even more." -Paul Debevec




More information about the ag-dev mailing list