[Zope-Checkins] CVS: Zope2 - Application.py:1.153
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Tue, 19 Jun 2001 11:33:11 -0400
Update of /cvs-repository/Zope2/lib/python/OFS
In directory serenade:/tmp/cvs-serv26563/lib/python/OFS
Modified Files:
Application.py
Log Message:
--- Updated File Application.py in package Zope2 --
--- Application.py 2001/06/18 21:02:38 1.152
+++ Application.py 2001/06/19 15:33:10 1.153
@@ -90,7 +90,8 @@
import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
import time, traceback, os, string, Products
from string import strip, lower, find, rfind, join
-from DateTime import DateTime
+
+import DateTime
from AccessControl.User import UserFolder
from App.ApplicationManager import ApplicationManager
from webdav.NullResource import NullResource
@@ -247,7 +248,8 @@
def PrincipiaTime(self, *args):
"""Utility function to return current date/time"""
- return apply(DateTime, args)
+ if len(args)==0: return DateTime.newDateTime()
+ else: return apply(DateTime.newDateTime, args)
ZopeTime=PrincipiaTime
ZopeAttributionButton__roles__=None