[Zope-Checkins] CVS: Zope2 - newDateTime.py:1.2
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Tue, 19 Jun 2001 17:22:05 -0400
Update of /cvs-repository/Zope2/lib/python/DateTime
In directory serenade:/tmp/cvs-serv11245
Modified Files:
newDateTime.py
Log Message:
--- Updated File newDateTime.py in package Zope2 --
--- newDateTime.py 2001/06/19 15:33:10 1.1
+++ newDateTime.py 2001/06/19 21:22:02 1.2
@@ -38,8 +38,8 @@
else:
self.dt = apply(mxDateTime,args)
- for x in dir(self.dt):
- setattr(self,x,getattr(self.dt,x))
+# for x in dir(self.dt):
+# setattr(self,x,getattr(self.dt,x))
def strftime(self,fmt): return self.dt.strftime(fmt)
@@ -148,9 +148,12 @@
def __repr__(self): return self.dt
def __getattr__(self,fmt):
+ print 'getattr:',fmt
if '%' in fmt: return strftimeFormater(self.dt,fmt)
raise AttributeError,fmt
+ def __getitem__(self,item):
+ print 'getitem',item
def Timezones():
"""Return the list of recognized timezone names"""