/usr/share/pyshared/zope/applicationcontrol/applicationcontrol.py is in python-zope.applicationcontrol 3.5.5-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Application Control
$Id: applicationcontrol.py 107926 2010-01-09 14:12:52Z faassen $"""
__docformat__ = 'restructuredtext'
import time
import zope.interface
import zope.traversing.interfaces
from zope.location import Location
from zope.security.checker import ProxyFactory, NamesChecker
from zope.applicationcontrol.interfaces import IApplicationControl
class ApplicationControl(Location):
zope.interface.implements(IApplicationControl)
def __init__(self):
self.start_time = time.time()
def getStartTime(self):
return self.start_time
applicationControllerRoot = Location()
zope.interface.directlyProvides(
applicationControllerRoot,
zope.traversing.interfaces.IContainmentRoot,
)
applicationControllerRoot = ProxyFactory(applicationControllerRoot,
NamesChecker("__class__"))
applicationController = ApplicationControl()
applicationController.__parent__ = applicationControllerRoot
applicationController.__name__ = '++etc++process'
|