[Zope-Checkins] CVS: Zope2 - PythonScript.py:1.30.2.1
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Fri, 15 Jun 2001 13:59:18 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PythonScripts
In directory serenade:/tmp/cvs-serv8742/lib/python/Products/PythonScripts
Modified Files:
Tag: ajung-mxdatetime
PythonScript.py
Log Message:
savepoint
--- Updated File PythonScript.py in package Zope2 --
--- PythonScript.py 2001/06/11 14:42:48 1.30
+++ PythonScript.py 2001/06/15 17:58:46 1.30.2.1
@@ -95,7 +95,7 @@
from Globals import DTMLFile, MessageDialog, package_home
import AccessControl, OFS, RestrictedPython
from OFS.SimpleItem import SimpleItem
-from DateTime.DateTime import DateTime
+from mx.DateTime import now,ARPA
from urllib import quote
from webdav.Lockable import ResourceLockedError
from webdav.WriteLockInterface import WriteLockInterface
@@ -232,7 +232,7 @@
except: rows = max(1, int(dtpref_rows) + szchh.get(height, 0))
try: cols = int(width)
except: cols = max(40, int(dtpref_cols) + szchw.get(width, 0))
- e = (DateTime('GMT') + 365).rfc822()
+ e = ARPA.strGMT(now() + 365)
setc = REQUEST['RESPONSE'].setCookie
setc('dtpref_rows', str(rows), path='/', expires=e)
setc('dtpref_cols', str(cols), path='/', expires=e)