def get_by_id_req(to_id, request): return {'action': 'get_tariffication_objects', 'session_id': _get_session_id(request), 'filter_params': {'ids': [int(to_id)]}, 'paging_params':{}}
def get_user_req(request): return {'action': 'get_user_self', 'session_id': _get_session_id(request)}
def get_users_req(request, ids): return {'action': 'get_users', 'session_id': _get_session_id(request), 'filter_params': {'ids': ids}, 'paging_params': {}}
def get_active_groups_req(request): return {'action': 'get_groups', 'session_id': _get_session_id(request), 'filter_params': {'is_active': True}, 'paging_params': {}}
def get_services_req(request): return {'action': 'get_services', 'session_id': _get_session_id(request), 'filter_params': {}, 'paging_params': {}}
def __init__(self, *args, **kwargs): request = kwargs.pop('request') self.session_id = _get_session_id(request) super(HelixwebRequestForm, self).__init__(*args, error_class=ErrorFieldMaker, **kwargs) self.error_css_class = 'errormessage'