EduploneTest/types EduploneTestingEnvironment.py,1.7,1.8
Claudia Disque <[email protected]>
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneTest/types
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8308/types
Modified Files:
EduploneTestingEnvironment.py
Log Message:
fixed tabs for windows users
Index: EduploneTestingEnvironment.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/types/EduploneTestingEnvironment.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** EduploneTestingEnvironment.py 10 Oct 2004 12:23:22 -0000 1.7
--- EduploneTestingEnvironment.py 10 Oct 2004 12:31:23 -0000 1.8
***************
*** 116,120 ****
# schemata='Flow'
),
!
DateTimeField(
'starttime',
--- 116,120 ----
# schemata='Flow'
),
!
DateTimeField(
'starttime',
***************
*** 428,446 ****
return str(TotalScore)
!
def testIsRunning(self):
! """
! Returns 1 if the test is running, 0 if not.
! Uses start / stop times to evaluate.
! """
! current_time = time() ## time.time()
! test_start_time = self.getStarttime().timeTime()
! test_stop_time = self.getStoptime().timeTime()
!
! if test_start_time < current_time < test_stop_time:
! return 1
! else:
! return 0
!
def applyForTest(self):
"""
--- 428,446 ----
return str(TotalScore)
!
def testIsRunning(self):
! """
! Returns 1 if the test is running, 0 if not.
! Uses start / stop times to evaluate.
! """
! current_time = time() ## time.time()
! test_start_time = self.getStarttime().timeTime()
! test_stop_time = self.getStoptime().timeTime()
!
! if test_start_time < current_time < test_stop_time:
! return 1
! else:
! return 0
!
def applyForTest(self):
"""
***************
*** 465,467 ****
modify_fti = utils.modify_fti
! registerType(EduploneTestingEnvironment)
\ No newline at end of file
--- 465,467 ----
modify_fti = utils.modify_fti
! registerType(EduploneTestingEnvironment)
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl