Commits

Torsten Irländer committed 1be06df

Add __getattr__ method to the FieldRenderer to give access to all
configuration variables of the Renderer.

Comments (0)

Files changed (1)

formbar/renderer.py

         Renderer.__init__(self)
 
         self._field = field
+        self._config = field._config.renderer
         self.translate = translate
         self.template = None
 
+    def __getattr__(self, name):
+        """Give access to the config values of the renderer"""
+        return getattr(self._config, name)
+
     def _render_label(self):
         template = template_lookup.get_template("label.mako")
         values = {'field': self._field,