Commit graph

160 commits

Author SHA1 Message Date
Laurent Bachelier
fbe0fb8d52 Some manual style fixes 2013-03-16 00:57:31 +01:00
Laurent Bachelier
7094931c92 Easy spacing fixes, trailing stuff
Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
2013-03-16 00:54:55 +01:00
Laurent Bachelier
c21d1f7925 Code clarity fixes
autopep8 -ir -j2 --select=E303,E125
Diff checked manually.
2013-03-16 00:52:43 +01:00
Laurent Bachelier
5b12a3c17e Force updating modules after upgrade
fixes #1066

Also, some small PEP8 fixes.
2013-03-09 15:14:46 +01:00
Romain Bignon
ce12b56ee8 remove two old and useless debug messages 2013-02-10 22:32:02 +01:00
Florent
bf3132e8c0 bump to 0.f 2013-01-25 17:23:49 +01:00
Romain Bignon
32e965d338 weboob-config add: fix double message "Unable to load module" 2013-01-14 21:22:03 +01:00
Florent
528cc826ce Allow to exclude some backends
closes #617
2013-01-10 19:05:52 +01:00
Romain Bignon
24cbeb47e5 major language fix (courtesy of Pascal Jakobs) 2012-11-10 14:37:45 +01:00
Romain Bignon
4a1e4b5afa bump to 0.e 2012-10-28 20:39:49 +01:00
Laurent Bachelier
3a66728392 Fix crashes with unicode characters in maintainer name
Change every mention of MAINTAINER to avoid future issues.
2012-10-24 13:29:30 +02:00
Romain Bignon
47df1413ae use %r instead of %s to prevent encoding errors 2012-10-16 14:47:03 +02:00
Romain Bignon
f16f1ddb87 fix exception 2012-05-15 09:36:07 +02:00
Romain Bignon
ba1879d501 use imp instead of __import__ 2012-05-07 14:03:21 +02:00
Romain Bignon
aa0084a37d use module imp instead of __import__ 2012-05-07 13:59:27 +02:00
Romain Bignon
2f8072e89e bump to 0.d 2012-05-04 21:17:46 +02:00
Florent
40de9b2d00 Fix indentation 2012-04-26 12:14:47 +02:00
Romain Bignon
b4154b5843 move part of update() to update_repositories() 2012-04-25 12:40:33 +02:00
Laurent Bachelier
c92ec6768b Fix keyring updates with latest openurl() change
You now have to call read() before doing another openurl().
As a bonus, the code is slightly shorter.
2012-04-15 20:31:56 +02:00
Romain Bignon
7cf5cb565c raise an error if module is not found 2012-04-11 19:29:33 +02:00
Laurent Bachelier
db6a912db5 repositories: Some systems only have gpgv2
fixes #837
2012-04-10 07:26:22 +02:00
Romain Bignon
9ef76bb8a7 fix unused imports/variables 2012-04-09 11:24:15 +02:00
Romain Bignon
87a58baa50 correctly check debug level to print exception when a module can't be loaded 2012-04-09 11:22:55 +02:00
Romain Bignon
dd15bcde74 do not stop timer because of an exception 2012-04-09 10:12:58 +02:00
Romain Bignon
76180bdda0 add backtraces in CallErrors message 2012-04-09 10:12:28 +02:00
Romain Bignon
9f86437ea1 do not check anymore if all CapBaseObject have docstrings 2012-03-26 14:41:24 +02:00
Romain Bignon
c6a141595c change way to describe fields of CapBaseObject, and lot of documentation 2012-03-26 14:35:54 +02:00
Romain Bignon
7ecdd4e7dc load_backend: don't catch when there is an error to load a module 2012-03-22 16:33:05 +01:00
Laurent Bachelier
30ca21c5d8 Use the right default value for XDG_DATA_DIRS
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
2012-03-15 18:51:18 +01:00
Romain Bignon
8e391d0b88 bump to 0.c 2012-03-14 22:09:24 +01:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Laurent Bachelier
1a5ece25df Collections are now base objects
So no need for this check anymore.

refs #774 and reverts a change of 9c5326c0
2012-03-13 22:08:45 +01:00
Romain Bignon
a51219a192 add_backend: do not crash if params is None 2012-03-03 23:19:58 +01:00
Olivier Schwander
825dc0b5b1 Fix path building for config dir and data dir
The paths are now correctly built in the case where $XDG_DATA_HOME and
$XDG_CONFIG_HOME are not empty: the "weboob/" suffix was in the fallback
argument of the os.get.environ.

Signed-off-by: Olivier Schwander <olivier.schwander@ens-lyon.org>
Signed-off-by: Romain Bignon <romain@symlink.me>
2012-02-17 13:21:19 +01:00
Romain Bignon
a93daefb4a improve messages 2012-02-16 00:01:19 +01:00
Romain Bignon
64c0698266 do not store 'None' in repository's config 2012-02-15 23:43:08 +01:00
Laurent Bachelier
9c5326c0e4 Make CapCollection a bit more useable
Collections are not stored in replapplication.objects anymore, but in
replapplication.collections. This fixes the IDs issue. There was no gain
from storing them in objects.

Completion right after cd should be faster (and should always have been
like that, it was pretty much a bug).

The display of do_ls() should be much clearer. Collections are always at
the end, have ids/title/backend like objects (but using a formatter
would be better than my current hack).

There are still many issues with the current implementation.
refs #774
closes #785
2012-02-12 15:49:08 +01:00
Romain Bignon
d6534ae845 fix: retrieve third icons even if module is local 2012-02-11 16:19:22 +01:00
Romain Bignon
822bd8c59d use "weboob/VERSION" as user-agent to download files on repositories 2012-02-06 18:20:49 +01:00
Romain Bignon
4be4b40509 bump to 0.b 2012-02-05 19:35:30 +01:00
Romain Bignon
a94d6c9972 check module version when loading it 2012-02-05 17:08:49 +01:00
Romain Bignon
d248196bb1 remove nsfw from example config 2012-02-03 23:52:02 +01:00
Romain Bignon
92c8873369 remove duplicate capabilities 2012-02-03 19:56:31 +01:00
Romain Bignon
59b4e78f65 add IProgress.error() to allow application to handle errors 2012-02-02 17:17:57 +01:00
Romain Bignon
33d7a8d466 fetch icons asynchronously (closes #756) 2012-02-02 15:36:36 +01:00
Romain Bignon
876535ff90 improve error message when a module isn't loadable 2012-02-01 23:07:25 +01:00
Romain Bignon
f7a35c7ea8 add a method Weboob.load_backend() 2012-02-01 23:06:00 +01:00
Romain Bignon
8c6fe811fe fix order of loaded repositories 2012-02-01 08:33:59 +01:00
Laurent Bachelier
8c50324dbf Don't remove the module if the signature is invalid
Remove it only just before extraction
2012-01-30 15:48:28 +01:00
Romain Bignon
97ef1f4e8c little improvements 2012-01-30 15:28:05 +01:00