equal
deleted
inserted
replaced
572 # scope_path is not required |
572 # scope_path is not required |
573 scope_path = get_dict.get('scope_path', None) |
573 scope_path = get_dict.get('scope_path', None) |
574 return_url = get_dict['continue'] |
574 return_url = get_dict['continue'] |
575 field = get_dict['field'] |
575 field = get_dict['field'] |
576 |
576 |
|
577 filter = {} |
|
578 |
577 if scope_path: |
579 if scope_path: |
578 filter = {} |
|
579 filter['scope_path'] = scope_path |
580 filter['scope_path'] = scope_path |
580 data = data = self._logic.getForFields(filter) |
581 |
581 else: |
582 data = self._logic.getForFields(filter=filter, limit=1000) |
582 data = self._logic.getForLimitAndOffset(1000) |
|
583 |
583 |
584 data = [i.toDict() for i in data] |
584 data = [i.toDict() for i in data] |
585 |
585 |
586 to_json = { |
586 to_json = { |
587 'data': data, |
587 'data': data, |