web/form.py
branchtls-sprint
changeset 1360 13ae1121835e
parent 1338 9e038f84dbb3
child 1369 49497136e977
--- a/web/form.py	Wed Apr 15 14:07:30 2009 +0200
+++ b/web/form.py	Wed Apr 15 14:41:06 2009 +0200
@@ -486,14 +486,14 @@
         entity = self.edited_entity
         if field.eidparam and entity.e_schema.has_metadata(field.name, 'format') and (
             entity.has_eid() or '%s_format' % field.name in entity):
-            return self.edited_entity.attribute_metadata(field.name, 'format')
+            return self.edited_entity.attr_metadata(field.name, 'format')
         return self.req.property_value('ui.default-text-format')
 
     def form_field_encoding(self, field):
         entity = self.edited_entity
         if field.eidparam and entity.e_schema.has_metadata(field.name, 'encoding') and (
             entity.has_eid() or '%s_encoding' % field.name in entity):
-            return self.edited_entity.attribute_metadata(field.name, 'encoding')
+            return self.edited_entity.attr_metadata(field.name, 'encoding')
         return super(EntityFieldsForm, self).form_field_encoding(field)
     
     def form_field_error(self, field):