Commit Graph

2990 Commits

Author SHA1 Message Date
Laurent Monin
6cdecc328e Convert release argument to class property 2014-05-07 17:35:02 +02:00
Laurent Monin
7ab4677a4e Move _coverart_http_error() to class CoverArt 2014-05-07 17:35:02 +02:00
Laurent Monin
d6cd3eb467 Convert metadata argument to class property 2014-05-07 17:35:02 +02:00
Laurent Monin
007c30dd21 Convert album argument to class property 2014-05-07 17:35:02 +02:00
Laurent Monin
48bd904cf8 Move coverart_init() code to __init__() 2014-05-07 17:35:02 +02:00
Laurent Monin
d2744cae02 Convert most functions to class methods 2014-05-07 17:35:02 +02:00
Laurent Monin
7b65ec2e50 Move class CoverArt and coverart() at end of the file 2014-05-07 17:35:02 +02:00
Laurent Monin
c04ffeed9e Move most code from coverart() to new coverart_init() 2014-05-07 17:35:02 +02:00
Laurent Monin
7a1e01006f Re-order _coverart_downloaded() arguments, place coverartobj first 2014-05-07 17:35:02 +02:00
Laurent Monin
3287546f00 Re-order _caa_json_downloaded() arguments, place coverartobj first 2014-05-07 17:35:02 +02:00
Laurent Monin
1dd3ba051f Re-order _walk_try_list() argument, place coverartobj in first position 2014-05-07 17:35:02 +02:00
Laurent Monin
01a815018a Re-order _fill_try_list arguments, place coverartobj in first position 2014-05-07 17:35:02 +02:00
Laurent Monin
a8906f3cec Introduce class CoverArt 2014-05-07 17:35:02 +02:00
Laurent Monin
55c80f588c Reduce code redundancy using intermediate variables has_front and has_back 2014-05-07 17:35:02 +02:00
Laurent Monin
f7834bfea7 _fill_try_list(): do not enter loops if not needed 2014-05-07 17:35:02 +02:00
Laurent Monin
cec7c60db4 Merge pull request #316 from Sophist-UK/sophist_exclude_unneeded_dist_files
Exclude unnecessary python modules...
2014-05-07 16:22:02 +02:00
Sophist
63639d066c Restructure to import in correct order etc. 2014-05-05 21:59:30 +01:00
Sophist
4bb1079c4a Remove cgi from exclude_module list 2014-05-05 20:20:38 +01:00
Sophist
fd27cc2cd9 Add back use of cgi escape
Added originally in 27cc6d7086 and
reverted in error in 5a2eee3484.
2014-05-05 20:20:02 +01:00
Sophist
8b76501cdd Revert "Remove obsolete ref to cgi"
This reverts commit 95ec346c2a.
2014-05-05 20:16:43 +01:00
Sophist
a0cc9a636b Eliminate unnecessary modules 2014-05-05 19:14:30 +01:00
Laurent Monin
b42dc5f10c Add missing import 2014-05-05 17:57:35 +02:00
Sophist
95ec346c2a Remove obsolete ref to cgi 2014-05-05 15:03:42 +01:00
Laurent Monin
c9a975b185 PICARD-603: fix missing imports
Traceback (most recent call last):
File "/usr/lib/picard/picard/ui/mainwindow.py", line 302, in _on_submit
self.tagger.acoustidmanager.submit()
File "/usr/lib/picard/picard/acoustidmanager.py", line 78, in submit
log.debug("AcoustID: submitting ...")
NameError: global name 'log' is not defined


and pylint tells more:

Module picard.ui.infodialog
E: 55,16: Undefined variable 'log' (undefined-variable)
E: 55,26: Undefined variable 'traceback' (undefined-variable)
2014-05-05 16:00:32 +02:00
Sophist
373302db24 Make py2app includes consistent with py2exe
and make indents standard.
2014-05-05 12:50:03 +01:00
Laurent Monin
4658f9ff7f Update translations 2014-05-05 07:20:01 +02:00
Laurent Monin
8ab91f939a PICARD-602: import missing log
Traceback (most recent call last):
File "/usr/lib/picard/picard/webservice.py", line 241, in _process_reply
handler(str(reply.readAll()), reply, error)
File "/usr/lib/picard/picard/collection.py", line 102, in request_finished
echo=log.error
NameError: global name 'log' is not defined
2014-05-05 07:13:40 +02:00
Laurent Monin
c1d071339f Merge pull request #314 from Sophist-UK/sophist_fix_setup.py_windows_build
Fix setup.py plugin_files
2014-05-04 23:10:22 +02:00
Sophist
dea6599641 Revert unintended global change
made in commit 25505c9216
2014-05-04 22:04:33 +01:00
Sophist
dc3e78454b Fix setup.py plugin_files
Fixes error in commit 25505c9216
2014-05-04 22:02:31 +01:00
Laurent Monin
3b9d29f91b Update pot file 2014-05-04 11:47:16 +02:00
Laurent Monin
da274639ae Typo fix, add missing dot in translatable string. 2014-05-04 11:46:19 +02:00
Laurent Monin
cab9bacf69 Update pot file 2014-05-03 17:28:26 +02:00
Laurent Monin
5a047603f2 Merge pull request #309 from zas/PICARD-597
PICARD-597: use named place holders in translatable strings
2014-05-03 17:25:38 +02:00
Laurent Monin
d5c053ea7a Remove unneeded toBool() forgotten in commit 6ff1f5350
Traceback (most recent call last):
  File "./picard/acoustid.py", line 219, in _on_fpcalc_error
    finished = process.property('picard_finished').toBool()
AttributeError: 'bool' object has no attribute 'toBool'
2014-05-03 17:20:21 +02:00
Laurent Monin
751f2b64f7 PICARD-597: use named place holders in translatable strings
- modify set_statusbar_message(): drop hacky %s replacement, it shouldn't be needed anyway
- add named arguments echo and translate to it, to cover all needs
- rewrite translatable strings to use named place holders
- fix up some messages, add plural forms if needed

http://tickets.musicbrainz.org/browse/PICARD-597
2014-05-03 17:09:50 +02:00
Laurent Monin
6e7cdc5737 Merge pull request #311 from zas/input_dirs_babel_0.9.6_workaround
Workaround: setup.py regen_pot_file didn't work with babel < 1.0
2014-05-03 16:02:29 +02:00
Laurent Monin
e4be26e1ce Merge pull request #310 from Sophist-UK/sophist_fix_plugin_file_selections
PICARD-600: Fix dist directory structure for plugins
2014-05-03 16:01:44 +02:00
Laurent Monin
70facb53d4 Merge pull request #312 from Sophist-UK/sophist_tweak_standardise_performers
Tweak Standardise Performers
2014-05-03 15:58:52 +02:00
Sophist
10f55d5df3 Tweak Standardise Performers
Since we have a try/except block so that this will run on previous
versions, tweak the API_VERSIONS so that it will load on these versions
of Picard.
2014-05-03 07:08:24 +01:00
Laurent Monin
7c90c3cb6e Workaround: setup.py regen_pot_file didn't work with babel < 1.0
A babel bug prevents `input_dirs` to be parsed correctly with babel pre-1.0 versions.
Using regen_pot_file with babel 0.9.6 leads to an empty pot file (but header).
The fix appears in babel 1.0 Changelog:
- fix ‘input_dirs’ option for setuptools integration (ticket #232, initial patch by Étienne Bersac)

The workaround just splits `input_dirs` as it should when old babel versions are used.
2014-05-02 17:00:06 +02:00
Laurent Monin
32b666ad14 Merge pull request #308 from Sophist-UK/sophist_improve_plugin_load_consistency_and_messages
Make plugins load in consistent order ...
2014-05-02 15:48:29 +02:00
Sophist
72b21c69c2 Add back deleted blank line 2014-05-02 08:30:04 +01:00
Sophist
63aa7b5086 Improve code and add top-level sort 2014-05-02 08:29:19 +01:00
Sophist
4165e356a4 Fix bug picked up by Travis 2014-05-02 08:06:07 +01:00
Sophist
25505c9216 Fix dist directory structure for plugins
Resolves PICARD-600
2014-05-02 07:56:35 +01:00
Sophist
4f063f7831 Make plugins load in consistent order.
See http://forums.musicbrainz.org/viewtopic.php?id=4939.
2014-05-01 14:56:33 +01:00
Sophist
aa933f2967 Make warnings show if not debugging 2014-05-01 13:53:04 +01:00
Laurent Monin
6177c1060d Merge pull request #307 from zas/fix_probability
Fix probability calculation, release similarities
2014-04-28 16:35:46 +02:00
Laurent Monin
4f2da821d3 Add tests for util.linear_combination_of_weights 2014-04-28 16:22:18 +02:00