[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl - ApplicationControl.py:1.1.2.3
Philipp von Weitershausen
philikon@gmx.net
Tue, 9 Apr 2002 09:53:29 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl
In directory cvs.zope.org:/tmp/cvs-serv20407
Modified Files:
Tag: Zope-3x-branch
ApplicationControl.py
Log Message:
- Implemented the getStartTime interface method
- Registering time on object instanciation
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/ApplicationControl.py 1.1.2.2 => 1.1.2.3 ===
from IApplicationControl import IApplicationControl
+import time
+
class ApplicationControl:
""" """
__implements__ = IApplicationControl
+
+ def __init__(self):
+ self.start_time = time.time()
+
+ ############################################################
+ # Implementation methods for interface
+ # Zope.App.OFS.ApplicationControl.IApplicationControl.
+
+ def getStartTime(self):
+ 'See Zope.App.OFS.ApplicationControl.IApplicationControl.IApplicationControl'
+ return self.start_time
+
+ #
+ ############################################################
ApplicationController = ApplicationControl()