parameters: (self, field, REQUEST)
return_statement: return extra_argument_dict
docstring: Build argument Dict
docstring_summary: Build argument Dict
docstring_tokens: Build argument Dict
function: def getArgumentDict(self, field, REQUEST):
      """ Build argument Dict """
      def stringBoolean(value):
        return str(bool(value)).lower()
      form = field.aq_parent
      listbox_form_id = field.get_value('listbox_form_id')
      if listbox_form_id in ('', None):
        listbox_form_id = form.getId()
      listbox_id = field.get_value('listbox_id')
      if listbox_id in ('', None):
        listbox_id = 'listbox'
      render_prefix = REQUEST.get('render_prefix')
      extra_argument_dict = dict(
        render_prefix = render_prefix,
        chart_form_id = listbox_form_id,
        chart_field_id = listbox_id,
        chart_title = field.get_value('title'),
        chart_type = field.get_value('chart_type'),
        colour_column_list = field.get_value('colour_column_list'),
        user_column_id_list = field.get_value('user_column_id_list'),
        user_data_title= field.get_value('user_data_title'),
        chart_position = field.get_value('chart_position'),
        chart_legend = stringBoolean(field.get_value('chart_legend')),
        chart_title_or_no = stringBoolean(field.get_value('chart_title_or_no')),
        x_axis_property_dict = dict(field.get_value('x_axis_property_list')),
        y_axis_property_dict = dict(field.get_value('y_axis_property_list')),
        grid_graph = stringBoolean(field.get_value('grid_graph')),
        grid_size=field.get_value('grid_size'),
        chart_three_dimensional = stringBoolean(field.get_value('chart_three_dimensional')),
        deep = stringBoolean(field.get_value('deep')),
        chart_stacked = stringBoolean(field.get_value('chart_stacked')),
        sector_pie_offset = field.get_value('sector_pie_offset'),
        interpolation = field.get_value('interpolation'),
        symbol_type = field.get_value('symbol_type'),
        lines_used = field.get_value('lines_used'),
        connect_bars = stringBoolean(field.get_value('connect_bars')),
        series_source = field.get_value('series_source'),
        regression_type = field.get_value('regression_type'),
        data_label_number = field.get_value('data_label_number'),
        data_label_text = stringBoolean(field.get_value('data_label_text')),
        data_label_symbol = stringBoolean(field.get_value('data_label_symbol')),
        position_legend=field.get_value('position_legend'),
      )
  
      for k, v in extra_argument_dict.items():
        if REQUEST.get(k) is None:
          REQUEST.form[k] = v
      return extra_argument_dict
function_tokens: def getArgumentDict ( self , field , REQUEST ) : def stringBoolean ( value ) : return str ( bool ( value ) ) . lower ( ) form = field . aq_parent listbox_form_id = field . get_value ( 'listbox_form_id' ) if listbox_form_id in ( '' , None ) : listbox_form_id = form . getId ( ) listbox_id = field . get_value ( 'listbox_id' ) if listbox_id in ( '' , None ) : listbox_id = 'listbox' render_prefix = REQUEST . get ( 'render_prefix' ) extra_argument_dict = dict ( render_prefix = render_prefix , chart_form_id = listbox_form_id , chart_field_id = listbox_id , chart_title = field . get_value ( 'title' ) , chart_type = field . get_value ( 'chart_type' ) , colour_column_list = field . get_value ( 'colour_column_list' ) , user_column_id_list = field . get_value ( 'user_column_id_list' ) , user_data_title = field . get_value ( 'user_data_title' ) , chart_position = field . get_value ( 'chart_position' ) , chart_legend = stringBoolean ( field . get_value ( 'chart_legend' ) ) , chart_title_or_no = stringBoolean ( field . get_value ( 'chart_title_or_no' ) ) , x_axis_property_dict = dict ( field . get_value ( 'x_axis_property_list' ) ) , y_axis_property_dict = dict ( field . get_value ( 'y_axis_property_list' ) ) , grid_graph = stringBoolean ( field . get_value ( 'grid_graph' ) ) , grid_size = field . get_value ( 'grid_size' ) , chart_three_dimensional = stringBoolean ( field . get_value ( 'chart_three_dimensional' ) ) , deep = stringBoolean ( field . get_value ( 'deep' ) ) , chart_stacked = stringBoolean ( field . get_value ( 'chart_stacked' ) ) , sector_pie_offset = field . get_value ( 'sector_pie_offset' ) , interpolation = field . get_value ( 'interpolation' ) , symbol_type = field . get_value ( 'symbol_type' ) , lines_used = field . get_value ( 'lines_used' ) , connect_bars = stringBoolean ( field . get_value ( 'connect_bars' ) ) , series_source = field . get_value ( 'series_source' ) , regression_type = field . get_value ( 'regression_type' ) , data_label_number = field . get_value ( 'data_label_number' ) , data_label_text = stringBoolean ( field . get_value ( 'data_label_text' ) ) , data_label_symbol = stringBoolean ( field . get_value ( 'data_label_symbol' ) ) , position_legend = field . get_value ( 'position_legend' ) , ) for k , v in extra_argument_dict . items ( ) : if REQUEST . get ( k ) is None : REQUEST . form [ k ] = v return extra_argument_dict