{"action":"created","issue":{"url":"https://api.github.com/repos/Kozea/Radicale/issues/282","labels_url":"https://api.github.com/repos/Kozea/Radicale/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/Kozea/Radicale/issues/282/comments","events_url":"https://api.github.com/repos/Kozea/Radicale/issues/282/events","html_url":"https://github.com/Kozea/Radicale/issues/282","id":71064955,"number":282,"title":"Breaks when used with Python2","user":{"login":"jelmer","id":49032,"avatar_url":"https://avatars.githubusercontent.com/u/49032?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmer","html_url":"https://github.com/jelmer","followers_url":"https://api.github.com/users/jelmer/followers","following_url":"https://api.github.com/users/jelmer/following{/other_user}","gists_url":"https://api.github.com/users/jelmer/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmer/subscriptions","organizations_url":"https://api.github.com/users/jelmer/orgs","repos_url":"https://api.github.com/users/jelmer/repos","events_url":"https://api.github.com/users/jelmer/events{/privacy}","received_events_url":"https://api.github.com/users/jelmer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kozea/Radicale/labels/bug","name":"bug","color":"9a62d3"}],"state":"closed","locked":false,"assignee":{"login":"liZe","id":952243,"avatar_url":"https://avatars.githubusercontent.com/u/952243?v=3","gravatar_id":"","url":"https://api.github.com/users/liZe","html_url":"https://github.com/liZe","followers_url":"https://api.github.com/users/liZe/followers","following_url":"https://api.github.com/users/liZe/following{/other_user}","gists_url":"https://api.github.com/users/liZe/gists{/gist_id}","starred_url":"https://api.github.com/users/liZe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liZe/subscriptions","organizations_url":"https://api.github.com/users/liZe/orgs","repos_url":"https://api.github.com/users/liZe/repos","events_url":"https://api.github.com/users/liZe/events{/privacy}","received_events_url":"https://api.github.com/users/liZe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Kozea/Radicale/milestones/2","html_url":"https://github.com/Kozea/Radicale/milestones/1.0","labels_url":"https://api.github.com/repos/Kozea/Radicale/milestones/2/labels","id":415718,"number":2,"title":"1.0","description":"","creator":{"login":"liZe","id":952243,"avatar_url":"https://avatars.githubusercontent.com/u/952243?v=3","gravatar_id":"","url":"https://api.github.com/users/liZe","html_url":"https://github.com/liZe","followers_url":"https://api.github.com/users/liZe/followers","following_url":"https://api.github.com/users/liZe/following{/other_user}","gists_url":"https://api.github.com/users/liZe/gists{/gist_id}","starred_url":"https://api.github.com/users/liZe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liZe/subscriptions","organizations_url":"https://api.github.com/users/liZe/orgs","repos_url":"https://api.github.com/users/liZe/repos","events_url":"https://api.github.com/users/liZe/events{/privacy}","received_events_url":"https://api.github.com/users/liZe/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":9,"state":"open","created_at":"2013-08-30T15:19:59Z","updated_at":"2015-04-29T17:12:08Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-04-26T13:12:09Z","updated_at":"2015-04-29T17:13:09Z","closed_at":"2015-04-29T17:05:48Z","body":"Radicale currently seems to break with Python2:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/wsgiref/handlers.py\", line 85, in run\r\n    self.result = application(self.environ, self.start_response)\r\n  File \"/home/jelmer/Radicale/radicale/__init__.py\", line 312, in __call__\r\n    self.collect_allowed_items(items, user)\r\n  File \"/home/jelmer/Radicale/radicale/__init__.py\", line 195, in collect_allowed_items\r\n    if rights.authorized(user, item, \"r\"):\r\n  File \"/home/jelmer/Radicale/radicale/rights/regex.py\", line 111, in authorized\r\n    _read_from_sections(user or \"\", collection_url, permission))\r\n  File \"/home/jelmer/Radicale/radicale/rights/regex.py\", line 72, in _read_from_sections\r\n    regex.readfp(StringIO(DEFINED_RIGHTS[rights_type]))\r\nTypeError: initial_value must be unicode or None, not str\r\n\r\nReproduced with both master and 0.9.\r\n"},"comment":{"url":"https://api.github.com/repos/Kozea/Radicale/issues/comments/97507673","html_url":"https://github.com/Kozea/Radicale/issues/282#issuecomment-97507673","issue_url":"https://api.github.com/repos/Kozea/Radicale/issues/282","id":97507673,"user":{"login":"jelmer","id":49032,"avatar_url":"https://avatars.githubusercontent.com/u/49032?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmer","html_url":"https://github.com/jelmer","followers_url":"https://api.github.com/users/jelmer/followers","following_url":"https://api.github.com/users/jelmer/following{/other_user}","gists_url":"https://api.github.com/users/jelmer/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmer/subscriptions","organizations_url":"https://api.github.com/users/jelmer/orgs","repos_url":"https://api.github.com/users/jelmer/repos","events_url":"https://api.github.com/users/jelmer/events{/privacy}","received_events_url":"https://api.github.com/users/jelmer/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T17:13:09Z","updated_at":"2015-04-29T17:13:09Z","body":"On Wed, Apr 29, 2015 at 10:05:53AM -0700, Guillaume Ayoub wrote:\n> Closed #282 via e69bec127295ff9bd323140bf1ed7d62da580914.\nThanks for the quick fix!\n"}}