equal
deleted
inserted
replaced
562 params: a dict with params for this View |
562 params: a dict with params for this View |
563 """ |
563 """ |
564 |
564 |
565 get_dict = request.GET |
565 get_dict = request.GET |
566 |
566 |
567 # scope_path is not required |
567 data = self._logic.getForFields(filter=get_dict, limit=1000) |
568 scope_path = get_dict.get('scope_path', None) |
|
569 return_url = get_dict['continue'] |
|
570 field = get_dict['field'] |
|
571 |
|
572 filter = {} |
|
573 |
|
574 if scope_path: |
|
575 filter['scope_path'] = scope_path |
|
576 |
|
577 data = self._logic.getForFields(filter=filter, limit=1000) |
|
578 |
568 |
579 data = [i.toDict() for i in data] |
569 data = [i.toDict() for i in data] |
580 |
570 |
581 to_json = { |
571 to_json = { |
582 'data': data, |
572 'data': data, |
583 'return_url': return_url, |
|
584 'field': field, |
|
585 } |
573 } |
586 |
574 |
587 json = simplejson.dumps(to_json) |
575 json = simplejson.dumps(to_json) |
588 |
576 |
589 context = {'json': json} |
577 context = {'json': json} |