Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 5066:d2256fcfd81f | 5067:e424987d294a |
|---|---|
| 261 def plain(self): | 261 def plain(self): |
| 262 def field(self, size = 30): | 262 def field(self, size = 30): |
| 263 def __int__(self): | 263 def __int__(self): |
| 264 def __float__(self): | 264 def __float__(self): |
| 265 | 265 |
| 266 class IntegerHTMLProperty(HTMLProperty): | |
| 267 def plain(self): | |
| 268 def field(self, size = 30): | |
| 269 def __int__(self): | |
| 270 | |
| 266 class BooleanHTMLProperty(HTMLProperty): | 271 class BooleanHTMLProperty(HTMLProperty): |
| 267 def plain(self): | 272 def plain(self): |
| 268 def field(self): | 273 def field(self): |
| 269 | 274 |
| 270 class DateHTMLProperty(HTMLProperty): | 275 class DateHTMLProperty(HTMLProperty): |
