コード例 #1
0
	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
コード例 #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
コード例 #3
0
ファイル: HTTPContent.py プロジェクト: techeye220/w4py
    def sleep(self, transaction):
        """Let servlet sleep again.

        We unset some variables. Very boring.
        """
        self._session = None
        self._request = None
        self._response = None
        self._transaction = None
        HTTPServlet.sleep(self, transaction)
コード例 #4
0
ファイル: HTTPContent.py プロジェクト: Cito/w4py
    def sleep(self, transaction):
        """Let servlet sleep again.

        We unset some variables. Very boring.
        """
        self._session = None
        self._request = None
        self._response = None
        self._transaction = None
        HTTPServlet.sleep(self, transaction)
コード例 #5
0
ファイル: HTTPContent.py プロジェクト: WebwareForPython/w4py3
    def awake(self, transaction):
        """Let servlet awake.

        Makes instance variables from the transaction. This is where Page
        becomes unthreadsafe, as the page is tied to the transaction.
        This is also what allows us to implement functions like `write`,
        where you don't need to pass in the transaction or response.
        """
        HTTPServlet.awake(self, transaction)
        self._response = transaction.response()
        self._request = transaction.request()
        self._session = None  # don't create unless needed
コード例 #6
0
ファイル: HTTPContent.py プロジェクト: Cito/w4py
    def awake(self, transaction):
        """Let servlet awake.

        Makes instance variables from the transaction. This is
        where Page becomes unthreadsafe, as the page is tied to
        the transaction. This is also what allows us to
        implement functions like `write`, where you don't
        need to pass in the transaction or response.
        """
        HTTPServlet.awake(self, transaction)
        self._response = transaction.response()
        self._request = transaction.request()
        self._session = None  # don't create unless needed
        assert self._transaction is not None
        assert self._response is not None
        assert self._request is not None
コード例 #7
0
 def __init__(self, application):
     HTTPServlet.__init__(self)
     Configurable.__init__(self)
     self._application = application
コード例 #8
0
ファイル: RPCServlet.py プロジェクト: Cito/w4py
 def sleep(self, transaction):
     """End transaction."""
     self._transaction = None
     HTTPServlet.sleep(self, transaction)
コード例 #9
0
ファイル: RPCServlet.py プロジェクト: Cito/w4py
 def awake(self, transaction):
     """Begin transaction."""
     HTTPServlet.awake(self, transaction)
     self._transaction = transaction
コード例 #10
0
 def sleep(self, transaction):
     """End transaction."""
     self._transaction = None
     HTTPServlet.sleep(self, transaction)
コード例 #11
0
 def awake(self, transaction):
     """Begin transaction."""
     HTTPServlet.awake(self, transaction)
     self._transaction = transaction
コード例 #12
0
ファイル: RPCServlet.py プロジェクト: akkmzack/RIOS-8.5
	def sleep(self, transaction):
		self._transaction = None
		HTTPServlet.sleep(self, transaction)
コード例 #13
0
ファイル: RPCServlet.py プロジェクト: akkmzack/RIOS-8.5
	def awake(self, transaction):
		HTTPServlet.awake(self, transaction)
		self._transaction = transaction