Mercurial > p > roundup > code
diff test/test_templating.py @ 5067:e424987d294a
Add support for an integer type to join the existing number type.
Commit patch supplied for issue2550886. This can be used for
properties used for ordering, counts etc. where a decimal point
isn't needed. Developed by Anthony (antmail). Doc updates written by
John Rouillard.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 05 Jun 2016 00:17:26 -0400 |
| parents | 364c54991861 |
| children | 882fa4d9bead |
line wrap: on
line diff
--- a/test/test_templating.py Tue May 31 09:16:09 2016 +0200 +++ b/test/test_templating.py Sun Jun 05 00:17:26 2016 -0400 @@ -263,6 +263,11 @@ def __int__(self): def __float__(self): +class IntegerHTMLProperty(HTMLProperty): + def plain(self): + def field(self, size = 30): + def __int__(self): + class BooleanHTMLProperty(HTMLProperty): def plain(self): def field(self):
