def register_webapi_capabilities(capabilities_id, caps):
 if (not capabilities_id):
  raise ValueError(u'The capabilities_id attribute must not be None')
 if (capabilities_id in _registered_capabilities):
  raise KeyError((u'"%s" is already a registered set of capabilities' % capabilities_id))
 if (capabilities_id in _capabilities_defaults):
  raise KeyError((u'"%s" is reserved for the default set of capabilities' % capabilities_id))
 _registered_capabilities[capabilities_id] = caps

def register_webapi_capabilities ( capabilities_id , caps ) : if ( not capabilities_id ) : raise ValueError ( u'The capabilities_id attribute must not be None' ) if ( capabilities_id in _registered_capabilities ) : raise KeyError ( ( u'"%s" is already a registered set of capabilities' % capabilities_id ) ) if ( capabilities_id in _capabilities_defaults ) : raise KeyError ( ( u'"%s" is reserved for the default set of capabilities' % capabilities_id ) ) _registered_capabilities [ capabilities_id ] = caps
registers a set of web api capabilities .