[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/dublincore/browser/metadataedit.py - fixed type error caused by @@EditMetaData.html

Dominik Huber dominik.huber at projekt01.ch
Wed Jun 2 12:43:25 EDT 2004


Log message for revision 25190:
- fixed type error caused by @@EditMetaData.html
- __metaclass__ removed


-=-
Modified: Zope3/trunk/src/zope/app/dublincore/browser/metadataedit.py
===================================================================
--- Zope3/trunk/src/zope/app/dublincore/browser/metadataedit.py	2004-06-02 16:28:07 UTC (rev 25189)
+++ Zope3/trunk/src/zope/app/dublincore/browser/metadataedit.py	2004-06-02 16:43:25 UTC (rev 25190)
@@ -21,9 +21,8 @@
 from zope.app.i18n import ZopeMessageIDFactory as _
 from zope.app.dublincore.interfaces import IZopeDublinCore
 
-__metaclass__ = type
 
-class MetaDataEdit:
+class MetaDataEdit(object):
     """Provide view for editing basic dublin-core meta-data."""
 
     def edit(self):
@@ -33,8 +32,8 @@
         message=''
 
         if 'dctitle' in request:
-            dc.title = request['dctitle']
-            dc.description = request['dcdescription']
+            dc.title = unicode(request['dctitle'])
+            dc.description = unicode(request['dcdescription'])
             notify(ObjectAnnotationsModifiedEvent(self.context))
             message = _("Changed data ${datetime}")
             message.mapping = {'datetime': formatter.format(datetime.utcnow())}




More information about the Zope3-Checkins mailing list