| OLD | NEW |
| 1 # coding: utf-8 | 1 # coding: utf-8 |
| 2 | 2 |
| 3 # This file is part of the Adblock Plus web scripts, | 3 # This file is part of the Adblock Plus web scripts, |
| 4 # Copyright (C) 2006-2013 Eyeo GmbH | 4 # Copyright (C) 2006-2013 Eyeo GmbH |
| 5 # | 5 # |
| 6 # Adblock Plus is free software: you can redistribute it and/or modify | 6 # Adblock Plus is free software: you can redistribute it and/or modify |
| 7 # it under the terms of the GNU General Public License version 3 as | 7 # it under the terms of the GNU General Public License version 3 as |
| 8 # published by the Free Software Foundation. | 8 # published by the Free Software Foundation. |
| 9 # | 9 # |
| 10 # Adblock Plus is distributed in the hope that it will be useful, | 10 # Adblock Plus is distributed in the hope that it will be useful, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 path = re.sub(r"--[0-9A-Fa-f]{32}", u"\u2026", path) | 40 path = re.sub(r"--[0-9A-Fa-f]{32}", u"\u2026", path) |
| 41 path = re.sub(r"-([0-9a-f]{4})", lambda match: unichr(int(match.group(1), 16))
, path) | 41 path = re.sub(r"-([0-9a-f]{4})", lambda match: unichr(int(match.group(1), 16))
, path) |
| 42 return path | 42 return path |
| 43 | 43 |
| 44 basic_fields = [ | 44 basic_fields = [ |
| 45 { | 45 { |
| 46 "name": "day", | 46 "name": "day", |
| 47 "title": "Days of month", | 47 "title": "Days of month", |
| 48 "coltitle": "Day", | 48 "coltitle": "Day", |
| 49 "showaverage": True, | 49 "showaverage": True, |
| 50 "defaultcount": 31, |
| 50 "sort": lambda obj: sorted(obj.items(), key=lambda (k,v): int(k)), | 51 "sort": lambda obj: sorted(obj.items(), key=lambda (k,v): int(k)), |
| 51 }, | 52 }, |
| 52 { | 53 { |
| 53 "name": "weekday", | 54 "name": "weekday", |
| 54 "title": "Days of week", | 55 "title": "Days of week", |
| 55 "coltitle": "Weekday", | 56 "coltitle": "Weekday", |
| 56 "showaverage": True, | 57 "showaverage": True, |
| 57 "sort": lambda obj: sorted(obj.items(), key=lambda (k,v): int(k)), | 58 "sort": lambda obj: sorted(obj.items(), key=lambda (k,v): int(k)), |
| 58 "isspecial": lambda weekday: weekday == 5 or weekday == 6, | 59 "isspecial": lambda weekday: weekday == 5 or weekday == 6, |
| 59 }, | 60 }, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 install_fields = [ | 152 install_fields = [ |
| 152 { | 153 { |
| 153 "name": "installType", | 154 "name": "installType", |
| 154 "title": "Install types", | 155 "title": "Install types", |
| 155 "coltitle": "Install type", | 156 "coltitle": "Install type", |
| 156 }, | 157 }, |
| 157 ] | 158 ] |
| 158 | 159 |
| 159 | 160 |
| 160 fields = basic_fields + downloader_fields + install_fields | 161 fields = basic_fields + downloader_fields + install_fields |
| OLD | NEW |