app/soc/views/models/base.py
changeset 1801 747b0d1115ea
parent 1796 5cd78a7aacdd
child 1805 7204ec5ead23
equal deleted inserted replaced
1800:32f5379c4242 1801:747b0d1115ea
   623       model: the model that is being queried
   623       model: the model that is being queried
   624       filter: the filters that apply
   624       filter: the filters that apply
   625       logic: the logic that will be used for the query
   625       logic: the logic that will be used for the query
   626     """
   626     """
   627 
   627 
   628     query = logic.getQueryForFields(filter=filter)
   628     entities = logic.getForFields(filter=filter, limit=1000)
   629     entities = logic.getAll(query)
       
   630     return entities
   629     return entities
   631 
   630 
   632   @decorators.merge_params
   631   @decorators.merge_params
   633   @decorators.check_access
   632   @decorators.check_access
   634   def pick(self, request, acces_type, page_name=None, params=None):
   633   def pick(self, request, acces_type, page_name=None, params=None):