mixcoatl/admin/role.py
def create(self):
        """Creates a new role. Status is hard-coded to ACTIVE for now. """

        parms = [{'status': "ACTIVE",
                  'name': self.name,
                  'description': self.description}]

        payload = {'addRole': camel_keys(parms)}

        response = self.post(data=json.dumps(payload))
        if self.last_error is None:
            self.load()
            return response
        else:
            raise RoleCreationException(self.last_error)
Creates a new role. Status is hard-coded to ACTIVE for now. 
Creates a new role. Status is hard-coded to ACTIVE for now.
Creates a new role . Status is hard - coded to ACTIVE for now .
def create(self):
        parms = [{'status': "ACTIVE",
                  'name': self.name,
                  'description': self.description}]
        payload = {'addRole': camel_keys(parms)}
        response = self.post(data=json.dumps(payload))
        if self.last_error is None:
            self.load()
            return response
        else:
            raise RoleCreationException(self.last_error)
def create ( self ) : parms = [ { 'status' : "ACTIVE" , 'name' : self . name , 'description' : self . description } ] payload = { 'addRole' : camel_keys ( parms ) } response = self . post ( data = json . dumps ( payload ) ) if self . last_error is None : self . load ( ) return response else : raise RoleCreationException ( self . last_error )
Creates a new role.
Creates a new role .
"""Creates a new role. Status is hard-coded to ACTIVE for now. """
self