[Zope] Patch to make Xron work under Zope 2.4.0

Hamish Bruce Lawson hbl@st-andrews.ac.uk
Mon, 23 Jul 2001 21:26:34 +0100 (BST)


The Xron scheduler product tries to import DateTime from Globals, but
under Zope 2.4.0 it is not available from Globals and must instead be
imported directly from DateTime. The attached patch fixes this:

Hamish Lawson



*** zopesite/Products/Xron/Dispatcher.py	Mon Jul 23 21:10:33 2001
--- zopesite2/Products/Xron/Dispatcher.py	Mon Jul 23 17:18:20 2001
***************
*** 38,44 ****
  loggerr=Loggerr.loggerr
  #import pdb; pdb.set_trace()
  
! from Globals import DateTime
  import sys, string
  
  maxwait=float(10)  # max time to wait between wake-ups in seconds
--- 38,44 ----
  loggerr=Loggerr.loggerr
  #import pdb; pdb.set_trace()
  
! from DateTime import DateTime
  import sys, string
  
  maxwait=float(10)  # max time to wait between wake-ups in seconds
*** zopesite/Products/Xron/XronDTMLMethod.py	Mon Jul 23 21:10:50 2001
--- zopesite2/Products/Xron/XronDTMLMethod.py	Mon Jul 23 17:19:12 2001
***************
*** 28,34 ****
  #####################################################################
  """ Scheduled DTML Methods for Xron """
  
! from Globals import HTMLFile, default__class_init__, DateTime
  from OFS.DTMLMethod import DTMLMethod
  from Products.ZCatalog.CatalogAwareness import CatalogAware
  from urllib import quote
--- 28,35 ----
  #####################################################################
  """ Scheduled DTML Methods for Xron """
  
! from Globals import HTMLFile, default__class_init__
! from DateTime import DateTime
  from OFS.DTMLMethod import DTMLMethod
  from Products.ZCatalog.CatalogAwareness import CatalogAware
  from urllib import quote