Update of /cvsroot/webware/Webware/TaskKit
In directory usw-pr-cvs1:/tmp/cvs-serv18045/TaskKit
Modified Files:
Properties.py Task.py
Log Message:
Changed doc strings to use ''' instead of """
Index: Properties.py
===================================================================
RCS file: /cvsroot/webware/Webware/TaskKit/Properties.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Properties.py 30 Mar 2002 14:37:22 -0000 1.11
--- Properties.py 20 Jun 2002 17:48:03 -0000 1.12
***************
*** 13,15 ****
requiredPyVersion = (2, 0, 0)
! synopsis = '''TaskKit provides a framework for the scheduling and management of tasks which can be triggered periodically or at specific times.'''
--- 13,15 ----
requiredPyVersion = (2, 0, 0)
! synopsis = """TaskKit provides a framework for the scheduling and management of tasks which can be triggered periodically or at specific times."""
Index: Task.py
===================================================================
RCS file: /cvsroot/webware/Webware/TaskKit/Task.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Task.py 16 Mar 2001 01:43:14 -0000 1.5
--- Task.py 20 Jun 2002 17:48:04 -0000 1.6
***************
*** 2,14 ****
def __init__(self):
! ''' Subclasses should invoke super for this method. '''
# Nothing for now, but we might do something in the future.
pass
def run(self):
! '''
Override this method for you own tasks. Long running tasks can periodically
use the proceed() method to check if a task should stop.
! '''
raise SubclassResponsibilityError
--- 2,14 ----
def __init__(self):
! """ Subclasses should invoke super for this method. """
# Nothing for now, but we might do something in the future.
pass
def run(self):
! """
Override this method for you own tasks. Long running tasks can periodically
use the proceed() method to check if a task should stop.
! """
raise SubclassResponsibilityError
***************
*** 28,32 ****
def handle(self):
! '''
A task is scheduled by wrapping a handler around it. It knows
everything about the scheduling (periodicity and the like).
--- 28,32 ----
def handle(self):
! """
A task is scheduled by wrapping a handler around it. It knows
everything about the scheduling (periodicity and the like).
***************
*** 34,44 ****
but if you want to write period modifying run() methods,
it is useful to have access to the handler. Use it with care.
! '''
return self._handle
def name(self):
! '''
Returns the unique name under which the task was scheduled.
! '''
return self._name
--- 34,44 ----
but if you want to write period modifying run() methods,
it is useful to have access to the handler. Use it with care.
! """
return self._handle
def name(self):
! """
Returns the unique name under which the task was scheduled.
! """
return self._name
***************
*** 47,54 ****
def _run(self, handle):
! '''
This is the actual run method for the Task thread. It is a private method which
should not be overriden.
! '''
self._name = handle.name()
self._handle = handle
--- 47,54 ----
def _run(self, handle):
! """
This is the actual run method for the Task thread. It is a private method which
should not be overriden.
! """
self._name = handle.name()
self._handle = handle
|