mixcoatl/admin/user.py
def all(cls, keys_only=False, endpoint=None, **kwargs):
        """Return all users

        .. note::

            The keys used to make the request determine results visibility

        :param keys_only: Return :attr:`user_id` instead of :class:`User`
        :type keys_only: bool.
        :param detail: str. The level of detail to return - `basic` or `extended`
        :type detail: str.
        :returns: `list` of :class:`User` or :attr:`user_id`
        :raises: :class:`UserException`
        """
        r = Resource(cls.PATH, endpoint=endpoint)
        if 'detail' in kwargs:
            r.request_details = kwargs['detail']
        else:
            r.request_details = 'basic'

        x = r.get()
        if r.last_error is None:
            if keys_only is True:
                return [i[camelize(cls.PRIMARY_KEY)] for i in x[cls.COLLECTION_NAME]]
            else:
                return [type(cls.__name__, (object,), i) for i in uncamel_keys(x)[cls.COLLECTION_NAME]]
        else:
            raise UserException(r.last_error)
Return all users

        .. note::

            The keys used to make the request determine results visibility

        :param keys_only: Return :attr:`user_id` instead of :class:`User`
        :type keys_only: bool.
        :param detail: str. The level of detail to return - `basic` or `extended`
        :type detail: str.
        :returns: `list` of :class:`User` or :attr:`user_id`
        :raises: :class:`UserException`
        
Return all users
note:.

The keys used to make the request determine results visibility
Return all users note : . The keys used to make the request determine results visibility
def all(cls, keys_only=False, endpoint=None, **kwargs):
        r = Resource(cls.PATH, endpoint=endpoint)
        if 'detail' in kwargs:
            r.request_details = kwargs['detail']
        else:
            r.request_details = 'basic'
        x = r.get()
        if r.last_error is None:
            if keys_only is True:
                return [i[camelize(cls.PRIMARY_KEY)] for i in x[cls.COLLECTION_NAME]]
            else:
                return [type(cls.__name__, (object,), i) for i in uncamel_keys(x)[cls.COLLECTION_NAME]]
        else:
            raise UserException(r.last_error)
def all ( cls , keys_only = False , endpoint = None , ** kwargs ) : r = Resource ( cls . PATH , endpoint = endpoint ) if 'detail' in kwargs : r . request_details = kwargs [ 'detail' ] else : r . request_details = 'basic' x = r . get ( ) if r . last_error is None : if keys_only is True : return [ i [ camelize ( cls . PRIMARY_KEY ) ] for i in x [ cls . COLLECTION_NAME ] ] else : return [ type ( cls . __name__ , ( object , ) , i ) for i in uncamel_keys ( x ) [ cls . COLLECTION_NAME ] ] else : raise UserException ( r . last_error )
Return all users
.. note::
Return all users .. note ::
"""Return all users

        .. note::

            The keys used to make the request determine results visibility

        :param keys_only: Return :attr:`user_id` instead of :class:`User`
        :type keys_only: bool.
        :param detail: str. The level of detail to return - `basic` or `extended`
        :type detail: str.
        :returns: `list` of :class:`User` or :attr:`user_id`
        :raises: :class:`UserException`
        """
`list` of :class:`User` or :attr:`user_id`
` list ` of : class : ` User ` or : attr : ` user_id `
None
cls
keys_only
Return :attr:`user_id` instead of :class:`User`
Return : attr : ` user_id ` instead of : class : ` User `
endpoint
detail
str. The level of detail to return - `basic` or `extended`
str . The level of detail to return - ` basic ` or ` extended `