Package twisted :: Package web :: Package woven :: Module input :: Class NewObject
[show private | hide private]
[frames | no frames]

Class NewObject

Collection --+                        
             |                        
   Constrained --+                    
                 |                    
  ConfigCollection --+                
                     |                
              Resource --+            
                         |            
                Controller --+        
                             |        
                  InputHandler --+    
                                 |    
                       SingleValue --+
                                     |
                                    NewObject


Check to see if the name the user entered is valid. If it is, create the object. If not, tell the user why.
Method Summary
  __init__(self, model, parent, name, check, commit, invalidErrorText, submodel, controllerStack)
(inherited from InputHandler)
  aggregateInvalid(self, request, inputhandler, data)
By default we just pass this method call all the way up to the root Controller. (inherited from InputHandler)
  aggregateValid(self, request, inputhandler, data)
By default we just pass the method calls all the way up to the root Controller. (inherited from InputHandler)
  check(self, request, name)
Check to see if the name the user typed is a valid object name.
  commit(self, request, node, data)
It has been determined that the input for the entire form is completely valid; it is now safe for all handlers to commit changes to the model. (inherited from InputHandler)
  delEntity(self, name)
Remove a static reference for 'name'. (inherited from Resource)
  dispatchCheckResult(self, success, request, data)
(inherited from InputHandler)
  domChanged(self, request, node)
(inherited from Controller)
  entityConstraint(self, entity)
A method that determines whether an entity may be added to me. (inherited from ConfigCollection)
  gatheredControllers(self, v, d, request)
(inherited from Controller)
  getChild(self, name, request)
Look for a factory method to create the object to handle the next segment of the URL. (inherited from Controller)
  getChildForRequest(self, request)
(internal) Get a child of mine dependant on a particular request. (inherited from Resource)
  getChildWithDefault(self, path, request)
(internal) Retrieve a static or dynamically generated child resource from me. (inherited from Resource)
  getDynamicEntity(self, name, request)
Subclass this to generate an entity on demand. (inherited from Resource)
  getEntity(self, name, request)
Retrieve an entity from me. (inherited from Collection)
  getEntityType(self)
(inherited from ConfigCollection)
  getInput(self, request)
Return the data associated with this handler from the request, if any. (inherited from SingleValue)
  getNameType(self)
(inherited from ConfigCollection)
  getStaticEntity(self, name)
Get an entity that was added to me using putEntity. (inherited from Resource)
  getSubcontroller(self, request, node, model, controllerName)
(inherited from Controller)
  handle(self, request)
By default, we don't do anything (inherited from InputHandler)
  handleInvalid(self, request, name)
The user has entered an invalid project name.
  handleValid(self, request, name)
The user has entered a valid project name and chosen to create the project.
  importControllerLibrary(self, namespace)
(inherited from Controller)
  initialize(self)
(inherited from InputHandler)
  listDynamicEntities(self, request)
A list of all name, entity that I can generate on demand. (inherited from Resource)
  listDynamicNames(self)
Retrieve a list of the names of entities that I store references to. (inherited from Resource)
  listEntities(self)
Retrieve a list of all name, entity pairs that I store references to. (inherited from Resource)
  listNames(self)
Retrieve a list of the names of entities that I store references to. (inherited from Resource)
  listStaticEntities(self)
Retrieve a list of all name, entity pairs that I store references to. (inherited from Resource)
  listStaticNames(self)
Retrieve a list of the names of entities that I store references to. (inherited from Resource)
  nameConstraint(self, name)
A method that determines whether an entity may be added to me with a given name. (inherited from Constrained)
  process(self, request, **kwargs)
(inherited from Controller)
  putChild(self, path, child)
Register a child with me. (inherited from Resource)
  putEntity(self, name, entity)
Store an entity if it meets both constraints. (inherited from Constrained)
  reallyPutEntity(self, name, entity)
(inherited from Resource)
  removeEntity(self, name, request)
Remove an entity for 'name', based on the content of 'request'. (inherited from Collection)
  render(self, request)
Trigger any inputhandlers that were passed in to this Page, then delegate to the View for traversing the DOM. (inherited from Controller)
  renderView(self, request)
(inherited from Controller)
  setSubcontrollerFactory(self, name, factory, setup)
(inherited from Controller)
  setSubmodel(self, submodel)
(inherited from Controller)
  setUp(self, request, *args)
(inherited from Controller)
  setupControllerStack(self)
(inherited from Controller)
  setView(self, view)
(inherited from Controller)
  storeEntity(self, name, request)
Store an entity for 'name', based on the content of 'request'. (inherited from Collection)

Class Variable Summary
NoneType classToCreate

Method Details

check(self, request, name)

Check to see if the name the user typed is a valid object name.
Overrides:
twisted.web.woven.input.InputHandler.check

handleInvalid(self, request, name)

The user has entered an invalid project name.
Overrides:
twisted.web.woven.input.InputHandler.handleInvalid

handleValid(self, request, name)

The user has entered a valid project name and chosen to create the project. Get a reference to the parent folder, create a new Project instance, and pickle it.
Overrides:
twisted.web.woven.input.InputHandler.handleValid

Class Variable Details

classToCreate

Type:
NoneType
Value:
None                                                                   

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:26:33 2003 http://epydoc.sf.net