Revision 5224c9bf lib/rapi/baserlib.py

b/lib/rapi/baserlib.py
406 406
                                 for (_, op_attr, _, _) in _OPCODE_ATTRS)))
407 407

  
408 408

  
409
def GetHandlerAccess(handler, method):
410
  """Returns the access rights for a method on a handler.
411

  
412
  @type handler: L{ResourceBase}
413
  @type method: string
414
  @rtype: string or None
415

  
416
  """
417
  return getattr(handler, "%s_ACCESS" % method, None)
418

  
419

  
409 420
class _MetaOpcodeResource(type):
410 421
  """Meta class for RAPI resources.
411 422

  

Also available in: Unified diff