예제 #1
0
파일: Model.py 프로젝트: techeye220/w4py
    def __init__(self,
                 filename=None,
                 classesFilename=None,
                 configFilename=None,
                 customCoreClasses={},
                 rootModel=None,
                 havePythonClasses=True):
        Configurable.__init__(self)
        self._havePythonClasses = havePythonClasses
        self._filename = None
        self._configFilename = configFilename or 'Settings.config'
        self._coreClasses = customCoreClasses
        self._klasses = None
        self._name = None
        self._parents = []  # e.g., parent models
        self._pyClassForName = {}

        # _allModelsByFilename is used to avoid loading the same parent model twice
        if rootModel:
            self._allModelsByFilename = rootModel._allModelsByFilename
        else:
            self._allModelsByFilename = {}
        self._rootModel = rootModel

        if filename or classesFilename:
            self.read(filename or classesFilename, classesFilename is not None)
예제 #2
0
	def __init__(self, application=None):
		HTTPServlet.__init__(self)
		Configurable.__init__(self)
		if application is None:
			from AppServer import globalAppServer
			application = globalAppServer.application()
			assert application is not None
		self._application = application
	def __init__(self, application=None):
		HTTPServlet.__init__(self)
		Configurable.__init__(self)
		if application is None:
			from WebKit.AppServer import globalAppServer
			application = globalAppServer.application()
			assert application is not None
		self._application = application
예제 #4
0
	def __init__(self):
		SitePage.__init__(self)
		Configurable.__init__(self)
예제 #5
0
 def __init__(self, application):
     HTTPServlet.__init__(self)
     Configurable.__init__(self)
     self._application = application
예제 #6
0
 def __init__(self):
     LunarcPage.__init__(self)
     Configurable.__init__(self)
예제 #7
0
파일: Adapter.py 프로젝트: techeye220/w4py
 def __init__(self, webKitDir):
     Configurable.__init__(self)
     self._webKitDir = webKitDir
     self._respData = []
예제 #8
0
파일: Adapter.py 프로젝트: Cito/w4py
 def __init__(self, webKitDir):
     Configurable.__init__(self)
     self._webKitDir = webKitDir
     self._respData = []
예제 #9
0
 def __init__(self):
     ExamplePage.__init__(self)
     Configurable.__init__(self)
예제 #10
0
 def __init__(self):
     Page.__init__(self)
     Configurable.__init__(self)
예제 #11
0
파일: SecurePage.py 프로젝트: Cito/w4py
 def __init__(self):
     ExamplePage.__init__(self)
     Configurable.__init__(self)
예제 #12
0
 def __init__(self):
     Configurable.__init__(self)
     self._model = None