web/widgets.py
branchtls-sprint
changeset 1360 13ae1121835e
parent 1325 cf79af56fed0
child 1554 3a3263df6cdd
--- a/web/widgets.py	Wed Apr 15 14:07:30 2009 +0200
+++ b/web/widgets.py	Wed Apr 15 14:41:06 2009 +0200
@@ -409,7 +409,7 @@
             entity.req.fckeditor_config()
             if with_format:
                 if entity.has_eid():
-                    format = entity.attribute_metadata(self.name, 'format')
+                    format = entity.attr_metadata(self.name, 'format')
                 else:
                     format = ''
                 frname = eid_param(self.name + '_format', entity.eid)
@@ -513,14 +513,14 @@
     
     def _edit_render(self, entity):
         wdgs = [self._file_wdg(entity)]
-        if entity.attribute_metadata(self.name, 'format') in ('text/plain', 'text/html', 'text/rest'):
+        if entity.attr_metadata(self.name, 'format') in ('text/plain', 'text/html', 'text/rest'):
             msg = self._edit_msg(entity)
             wdgs.append(u'<p><b>%s</b></p>' % msg)
             twdg = TextWidget(self.vreg, self.subjtype, self.rschema, self.objtype)
             twdg.rname = self.rname
             data = getattr(entity, self.name)
             if data:
-                encoding = entity.attribute_metadata(self.name, 'encoding')
+                encoding = entity.attr_metadata(self.name, 'encoding')
                 try:
                     entity[self.name] = unicode(data.getvalue(), encoding)
                 except UnicodeError: