Commits

Ronny Pfannschmidt committed 259f6f6

insert format_field to XFormatter

Comments (0)

Files changed (1)

pygtkhelpers/utils.py

             return self.extra_converters[conversion](value)
         return super(XFormatter, self).convert_field(value, conversion)
 
+    def format_field(self, value, conversion):
+        if conversion in self.extra_converters:
+            return self.extra_converters[conversion](value)
+        return super(XFormatter, self).format_field(value, conversion)
+
 
 def eformat(format, *k, **kw):
     return XFormatter().vformat(format, k, kw)