[Zope-Checkins] CVS: Zope2 - TutorialTopic.py:1.7.14.1 __init__.py:1.8.2.1
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Fri, 15 Jun 2001 13:59:20 -0400
Update of /cvs-repository/Zope2/lib/python/Products/ZopeTutorial
In directory serenade:/tmp/cvs-serv8742/lib/python/Products/ZopeTutorial
Modified Files:
Tag: ajung-mxdatetime
TutorialTopic.py __init__.py
Log Message:
savepoint
--- Updated File TutorialTopic.py in package Zope2 --
--- TutorialTopic.py 2001/05/02 14:41:05 1.7
+++ TutorialTopic.py 2001/06/15 17:58:48 1.7.14.1
@@ -85,7 +85,7 @@
import OFS.Folder
from HelpSys.HelpTopic import TextTopic
from Globals import HTML, DTMLFile, MessageDialog
-import DateTime
+from mx.DateTime import now,ARPA
import DocumentTemplate
import StructuredText
import string, re
@@ -202,7 +202,7 @@
lesson.Setup.setup(lesson.Setup, REQUEST)
if RESPONSE is not None:
- e=(DateTime.DateTime('GMT') + 365).rfc822()
+ e=ARPA.strGMT(now()+365)
RESPONSE.setCookie('tutorialExamplesURL', folder.absolute_url() + '/examples',
path='/',
expires=e)
--- Updated File __init__.py in package Zope2 --
--- __init__.py 2001/06/14 21:01:22 1.8
+++ __init__.py 2001/06/15 17:58:48 1.8.2.1
@@ -88,7 +88,7 @@
import string
import os
import stat
-from DateTime import DateTime
+from mx.DateTime import DateTimeFrom,now
from urllib import quote_plus
from cgi import escape
import re
@@ -111,9 +111,9 @@
# test to see if nothing has changed since last registration
if help.lastRegistered is not None and \
- help.lastRegistered >= DateTime(os.stat(lesson_path)[stat.ST_MTIME]):
+ help.lastRegistered >= DateTimeFrom(os.stat(lesson_path)[stat.ST_MTIME]):
return
- help.lastRegistered=DateTime()
+ help.lastRegistered=now()
# delete old help topics
for id in help.objectIds('Help Topic'):