Permalink
Browse files

peppercorn support

  • Loading branch information...
1 parent 3c60f82 commit 455ab73a7f5d59ad7e767a193c276129000c0b49 @danjac danjac committed Mar 28, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 pyramid_simpleform/renderers.py
View
6 pyramid_simpleform/renderers.py
@@ -55,7 +55,7 @@ def csrf_token(self, name=None):
"""
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.
@@ -70,7 +70,7 @@ def __start__(self, value):
return self.hidden('__start__', value)
- def __end__(self):
+ def __end__(self, value=None):
"""
Renders peppercorn __end__ hidden tag
@@ -80,7 +80,7 @@ def __end__(self):
>>> <input type="hidden" name="__end__" />
"""
- return self.hidden('__end__')
+ return self.hidden('__end__', value)
def hidden_tag(self, *names):
"""

0 comments on commit 455ab73

Please sign in to comment.