Package crm :: Package controllers :: Module itemctrl :: Class Itemctrl
[hide private]
[frames] | no frames]

Class Itemctrl

source code


Instance Methods [hide private]
 
remote_saveItem(self, item)
Saves the given item to database
source code
 
remote_deleteItem(self, item)
Deletes the given item
source code
 
remote_getItem(self, itemID)
Returns the item with id itemID
source code
 
remote_getItems(self)
Returns all the items
source code
 
remote_getItemsTable(self, start, end)
Returns all the items starting from start item and ending at end item
source code
 
remote_updateItem(self, item)
Updates the item in the backend database
source code
Method Details [hide private]

remote_saveItem(self, item)

source code 

Saves the given item to database

Parameters:
  • item (Item) - Item to be saved
Decorators:
  • @defer.inlineCallbacks

remote_deleteItem(self, item)

source code 

Deletes the given item

Parameters:
  • item (Item) - Deletes the given item
Decorators:
  • @defer.inlineCallbacks

remote_getItem(self, itemID)

source code 

Returns the item with id itemID

Parameters:
  • itemID (int) - Id of item

remote_getItemsTable(self, start, end)

source code 

Returns all the items starting from start item and ending at end item

Parameters:
  • start (int) - Start index of returned items
  • end (int) - End index of returned items
Decorators:
  • @defer.inlineCallbacks

remote_updateItem(self, item)

source code 

Updates the item in the backend database

Parameters:
  • item (Item) - Item