Package backend :: Package server :: Package rhnServer :: Module server_token :: Class ActivationTokens
[hide private]
[frames] | no frames]

Class ActivationTokens

source code


An aggregation of activation tokens, exposing important information like org_id, user_id etc in a unified manner.

Instance Methods [hide private]
 
__init__(self, tokens, user_id=None, org_id=None, kickstart_session_id=None, entitlements=[], deploy_configs=None) source code
 
__nonzero__(self) source code
 
__bool__(self) source code
 
get_server_id(self) source code
 
get_user_id(self) source code
 
get_org_id(self) source code
 
get_kickstart_session_id(self) source code
 
get_entitlements(self) source code
 
has_entitlement_label(self, entitlement) source code
 
get_deploy_configs(self) source code
 
get_names(self)
Returns a string of the entitlement names that the token grants.
source code
 
get_tokens(self) source code
 
entitle(self, server_id, history, virt_type=None)
Entitle a server according to the entitlements we have configured.
source code
Class Variables [hide private]
  is_rereg_token = 0
  forget_rereg_token = 0
Method Details [hide private]

get_names(self)

source code 

Returns a string of the entitlement names that the token grants. This function is poorly named.