Commits

Anonymous committed 957f7d3

peppercorn support

Comments (0)

Files changed (1)

pyramid_simpleform/renderers.py

         """
         return HTML.tag("div", self.csrf(name), style="display:none;")
 
-    def __start__(self, value):
+    def __start__(self, value=None):
         """
         Renders peppercorn __start__ hidden tags with given values.
 
         return self.hidden('__start__', value)
 
 
-    def __end__(self):
+    def __end__(self, value=None):
         """
         Renders peppercorn __end__ hidden tag
 
         >>> <input type="hidden" name="__end__" />
         """
 
-        return self.hidden('__end__')
+        return self.hidden('__end__', value)
 
     def hidden_tag(self, *names):
         """