PonyConf/cfp/converters.py

9 lines
170 B
Python
Raw Permalink Normal View History

2017-12-10 12:32:19 +00:00
class SignedIntConverter:
regex = '[+-]?[0-9]+'
def to_python(self, value):
return int(value)
def to_url(self, value):
return '%+d' % value