def itws_get_table_namespace(self, resource, context, items): namespace = Feed_View.get_table_namespace(self, resource, context, items) # Sort by widget = SelectWidget('sort_by', datatype=SortBy_Enumerate, value=context.query['sort_by'], has_empty_option=False) namespace['sort_by'] = widget.render() widget = SelectWidget('reverse', datatype=Reverse_Enumerate, value=str(int(context.query['reverse'])), has_empty_option=False) namespace['reverse'] = widget.render() for key in ['target', 'target_id', 'mode']: namespace[key] = context.get_form_value(key) # If target is no defined in the query (when we open the popup) # Get the target value from attributes if namespace['target'] is None: popup_root_abspath = self.popup_root.get_abspath() target = popup_root_abspath.get_pathto(self.target.get_abspath()) namespace['target'] = target return namespace