[Zope3-checkins] CVS: Zope3/src/zope/security - checker.py:1.4

Tim Peters tim.one@comcast.net
Wed, 8 Jan 2003 15:18:35 -0500


Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv7272/src/zope/security

Modified Files:
	checker.py 
Log Message:
Collapsing datetime and datetimetz into datetime, and time and timetz
into time, as discussed on Zope3-Dev.


=== Zope3/src/zope/security/checker.py 1.3 => 1.4 ===
--- Zope3/src/zope/security/checker.py:1.3	Mon Dec 30 22:35:13 2002
+++ Zope3/src/zope/security/checker.py	Wed Jan  8 15:18:33 2003
@@ -389,32 +389,19 @@
                                  'min', 'max', 'resolution']),
     datetime.datetime: NamesChecker(['__repr__', '__str__', 'year', 'month',
                                      'day', 'hour', 'minute', 'second',
-                                     'microsecond', 'timetuple',
-                                     'toordinal', '__cmp__',
+                                     'microsecond', 'tzinfo', 'timetuple',
+                                     'utctimetuple', 'toordinal', '__cmp__',
                                      '__hash__', 'ctime', 'strftime',
                                      '__add__', '__radd__', '__sub__',
                                      '__rsub__', 'weekday', 'isoweekday',
-                                     'isocalendar', 'isoformat', 'min', 'max',
-                                     'resolution']),
-    datetime.datetimetz: NamesChecker(['__repr__', '__str__', 'year', 'month',
-                                       'day', 'hour', 'minute', 'second',
-                                       'microsecond', 'tzinfo', 'timetuple',
-                                       'utctimetuple', 'toordinal', '__cmp__',
-                                       '__hash__', 'ctime', 'strftime',
-                                       '__add__', '__radd__', '__sub__',
-                                       '__rsub__', 'weekday', 'isoweekday',
-                                       'isocalendar', 'isoformat', 'min',
-                                       'max', 'resolution', 'utcoffset',
-                                       'tzname', 'dst']),
+                                     'isocalendar', 'isoformat', 'min',
+                                     'max', 'resolution', 'utcoffset',
+                                     'tzname', 'dst']),
     datetime.time: NamesChecker(['hour', 'minute', 'second', 'microsecond',
-                                 '__cmp__', '__hash__', '__repr__', '__str__',
-                                 'isoformat', 'strftime', 'min', 'max',
-                                 'resolution']),
-    datetime.timetz: NamesChecker(['hour', 'minute', 'second', 'microsecond',
-                                   '__cmp__', '__hash__', '__repr__',
-                                   '__str__', 'isoformat', 'strftime', 'min',
-                                   'max', 'resolution', 'tzinfo', 'utcoffset',
-                                   'tzname', 'dst'])
+                                 '__cmp__', '__hash__', '__repr__',
+                                 '__str__', 'isoformat', 'strftime', 'min',
+                                 'max', 'resolution', 'tzinfo', 'utcoffset',
+                                 'tzname', 'dst'])
 }