Package orm2 :: Package ui :: Package xist :: Module result_table :: Class query_param
[hide private]
[frames] | no frames]

Class query_param

source code

Known Subclasses:
page_param

A param for an sql query to the result_table.

Instance Methods [hide private]
  __init__(self, name, default_value, available_values=())
  get(self, request)
Get the value of this param from REQUEST, validate it.
  validate(self, value)
Check if VALUE allowed for this param.

Method Details [hide private]

__init__(self, name, default_value, available_values=())
(Constructor)

source code 
Parameters:
  • name - Name of the param in the url
  • default_value - Just that.
  • available_values - A list of values that are allowed for this param

get(self, request)

source code 
Get the value of this param from REQUEST, validate it.

validate(self, value)

source code 
Check if VALUE allowed for this param.