TestFrame::Application::Application Class Reference

List of all members.

Public Member Functions

def __init__
def run
def getController

Public Attributes

 controller


Member Function Documentation

def TestFrame::Application::Application::__init__ (   self,
  req 
)

00006                                :
00007                 registry = Registry()
00008                 registry.register('ap', Apache(req))
00009                 registry.register('view', View())
00010 
        def run(self, controller):

def TestFrame::Application::Application::getController (   self,
  structuredName,
  controller 
)

00015                                                            :
00016                 __import__(structuredName, globals(), locals(), [''])
00017                 exec "from " + structuredName + " import " + controller
00018                 exec "mod = " + controller + "()"
00019                 return mod
                return mod

def TestFrame::Application::Application::run (   self,
  controller 
)

00011                                  :
00012                 self.controller = self.getController('TestFrame.Controller.'+controller, controller)
00013                 self.controller.init()
00014         
        def getController(self, structuredName, controller):


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Wed Oct 14 16:45:09 2009 for PyFrame by  doxygen 1.5.8