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