{"action":"closed","issue":{"url":"https://api.github.com/repos/solute/pyramid_epfl/issues/5","labels_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/5/comments","events_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/5/events","html_url":"https://github.com/solute/pyramid_epfl/issues/5","id":34626683,"number":5,"title":"ascii","user":{"login":"maschbd","id":7602767,"avatar_url":"https://avatars.githubusercontent.com/u/7602767?v=3","gravatar_id":"","url":"https://api.github.com/users/maschbd","html_url":"https://github.com/maschbd","followers_url":"https://api.github.com/users/maschbd/followers","following_url":"https://api.github.com/users/maschbd/following{/other_user}","gists_url":"https://api.github.com/users/maschbd/gists{/gist_id}","starred_url":"https://api.github.com/users/maschbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maschbd/subscriptions","organizations_url":"https://api.github.com/users/maschbd/orgs","repos_url":"https://api.github.com/users/maschbd/repos","events_url":"https://api.github.com/users/maschbd/events{/privacy}","received_events_url":"https://api.github.com/users/maschbd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-05-30T08:34:36Z","updated_at":"2015-05-05T10:43:47Z","closed_at":"2015-05-05T10:43:47Z","body":"The validator\r\n\r\nclass CurrencyValidation(object):\r\n\r\n    def __init__(self):\r\n        pass\r\n\r\n    def __call__(self, form, field):\r\n        regex = re.compile(unicode(r'^(\\d*(\\d\\,?|\\,\\d{1,2}))$'), re.UNICODE)\r\n        result = regex.match(str(field.data))\r\n        if result is None:\r\n            message=\"Invalid Currency Form\"\r\n            raise ValidationError(message)\r\n\r\n\r\nprints \"ascii\" in \r\n{{ form.errors | join(' ') }}\r\nif there is a € symbol in the entry field."}}