Package gnue :: Package appserver :: Module geasInstance :: Class geasInstance
[show private | hide private]

Class geasInstance


Method Summary
  __init__(self, session, connection, record, classdef)
  __cmp__(self, other)
  __getitem__(self, key)
  call(self, proceduredef, params, namespace)
  get(self, propertylist)
  getClassname(self)
This function returns the fully qualified classname of the instance
  has_key(self, key)
  put(self, propertylist, valuelist)
  setSort(self, order)
Set a sequence of tuples used for comparing this instance with another one.
  state(self)
This function returns the current state of the instance.
  updateStamp(self, creation)
  validate(self)
This function checks all properties marked as 'not nullable' to have a value other than None.
  __convert(self, value, propertydef, exception)
  __getValue(self, propertyname)
  __putValue(self, propertyname, value, regular)

Method Details

__init__(self, session, connection, record, classdef)
(Constructor)

__cmp__(self, other)
(Comparison operator)

__getitem__(self, key)
(Indexing operator)

call(self, proceduredef, params, namespace=None)

get(self, propertylist)

getClassname(self)

This function returns the fully qualified classname of the instance
Returns:
fully qualified classname of the instance

has_key(self, key)

put(self, propertylist, valuelist)

setSort(self, order)

Set a sequence of tuples used for comparing this instance with another one.
Parameters:
order - sequence of tuples (value, descending), where data is the value to be compared and 'descending' specifies the sort-direction.

state(self)

This function returns the current state of the instance.
Returns:
state of the instance: 'initializing': new instance, OnInit still running 'initialized': new instance, OnInit finished, but no other modifications 'inserted': new instance, already modified 'changed': existing instance with modifications 'deleted': deleted instance 'clean': existing instance without any modifications

updateStamp(self, creation=False)

validate(self)

This function checks all properties marked as 'not nullable' to have a value other than None. If a none value is encountered a PropertyValueError is raised.

__convert(self, value, propertydef, exception)

__getValue(self, propertyname)

__putValue(self, propertyname, value, regular=True)



GNUe Home

Private API

Developer's Corner