예제 #1
0
 def getAll():
     try:
         users = CaliopeUser.index.search('username:*')
         users_list = []
         for user in users:
             users_list.append(UsersManager.get_user_node_data(user))
         return users_list
     except DoesNotExist as e:
         raise JSONRPCInvalidRequestError(e)
예제 #2
0
 def getPredio(sector):
     try:
         rec = RegistroPredioCatastroTipoII.index.get(sector=sector)
         if rec:
             data = {}
             for k, v in rec._get_node_data().items():
                 if not isinstance(v, unicode):
                     v = unicode(v)
                 data[k] = v
             return {'value': data}
         return {'record': False}
     except DoesNotExist as e:
         raise JSONRPCInvalidRequestError(e)
예제 #3
0
 def getGroups():
     raise JSONRPCInvalidRequestError('Unimplemented')
예제 #4
0
 def addGroup(groupname):
     raise JSONRPCInvalidRequestError('Unimplemented')
예제 #5
0
 def addUser(username, password, group=None):
     raise JSONRPCInvalidRequestError('Unimplemented')
예제 #6
0
 def getFilteredByGroup(proyect_id):
     raise JSONRPCInvalidRequestError('Unimplemented')