new integer and integer URL report fields

This commit is contained in:
Helmut Merz 2012-04-30 22:56:27 +02:00
parent b605561acd
commit 381e26edaa

View file

@ -183,6 +183,19 @@ class TargetField(RelationField):
return util.getObjectForUid(value) return util.getObjectForUid(value)
class IntegerField(Field):
def getSortValue(self, row):
value = self.getValue(row)
if value.isdigit():
return int(value)
class IntegerUrlField(IntegerField, UrlField):
pass
class MultiLineField(Field): class MultiLineField(Field):
renderer = 'multiline' renderer = 'multiline'