On Jan 19, 10:25 am, "hamdy.a.farag" <hamdy.a.fa...@inbox.com> wrote: > self.error_message = error_message % dict(min=self.minimum, > max=self.maximum-1) > TypeError: unsupported operand type(s) for %: 'lazyT' and 'dict'
The way the validator is setup it does not allow you to change the values in the message, just the text of it. Your error_message would be misleading if you could add it anyways, since the check done by the validator is: min <= value < max and not min <= value <= max Denes.
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.