web/form.py
branchtls-sprint
changeset 1060 d795477ad16b
parent 1059 87dc8b1903a2
child 1061 7d2e6b5fae3c
--- a/web/form.py	Wed Mar 11 14:36:17 2009 +0100
+++ b/web/form.py	Wed Mar 11 14:37:22 2009 +0100
@@ -587,7 +587,7 @@
         `attr`, according to user preferences
         """
         if form.req.use_fckeditor():
-            return form.form_format_field_value(self) == 'text/html'
+            return form.form_field_format(self) == 'text/html'
         return False
 
     def render(self, form, renderer):
@@ -827,7 +827,7 @@
             value = field.initial
         return value
 
-    def form_format_field_value(self, field, values):
+    def form_field_format(self, field):
         return self.req.property_value('ui.default-text-format')
     
     def form_field_name(self, field):
@@ -933,7 +933,7 @@
                 value = value()
         return value
     
-    def form_format_field_value(self, field, values):
+    def form_field_format(self, field):
         entity = self.entity
         if field.eidparam and entity.has_format(field.name) and (
             entity.has_eid() or '%s_format' % field.name in entity):