[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore - zopedublincore.py:1.3
Tim Peters
tim.one@comcast.net
Wed, 8 Jan 2003 15:19:00 -0500
Update of /cvs-repository/Zope3/src/zope/app/dublincore
In directory cvs.zope.org:/tmp/cvs-serv7272/src/zope/app/dublincore
Modified Files:
zopedublincore.py
Log Message:
Collapsing datetime and datetimetz into datetime, and time and timetz
into time, as discussed on Zope3-Dev.
=== Zope3/src/zope/app/dublincore/zopedublincore.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/dublincore/zopedublincore.py:1.2 Wed Dec 25 09:12:50 2002
+++ Zope3/src/zope/app/dublincore/zopedublincore.py Wed Jan 8 15:18:28 2003
@@ -19,7 +19,6 @@
from zope.app.interfaces.dublincore import IZopeDublinCore
from zope.app.datetimeutils import parseDatetimetz
-from datetime import datetimetz
from datetime import datetime
class SimpleProperty:
@@ -67,7 +66,7 @@
def __set__(self, inst, value):
if not isinstance(value, datetime):
- raise TypeError("Element must be %s", datetimetz)
+ raise TypeError("Element must be %s", datetime)
value = unicode(value.isoformat('T'), 'ascii')