Commit graph

2,319 commits

Author SHA1 Message Date
lucien
7c573b47a6 * translaboob is a weboob application for automatic translation
* new capability is defined, ICapTranslate
* googletranslate is a backend for the translaboob application
2012-04-01 18:46:13 +02:00
Romain Bignon
7082571acf update code documentation 2012-04-01 17:41:20 +02:00
Gabriel Kerneis
ee59891f62 boursorama: parse categories and date 2012-04-01 14:30:13 +02:00
Gabriel Kerneis
0f6393e642 bank: add a 'category' group in patterns 2012-04-01 11:23:35 +02:00
Roger Philibert
b0f1035ae8 [boobmsg] Use url suffix to save photos with their extension 2012-03-29 23:16:47 +02:00
Romain Bignon
b157e92d5b use decimal.Decimal instead of float to store amounts of money 2012-03-29 16:31:18 +02:00
Laurent Bachelier
3b2bafdf12 Centralize "empty" comparisons
And always use "is" instead of "==".
2012-03-27 12:14:37 +02:00
Romain Bignon
cedbc3ae77 check types of compared objects in __eq__() operators 2012-03-27 11:55:24 +02:00
Romain Bignon
7201d81d98 do not implicitly convert strings to dates in DateField 2012-03-27 11:54:54 +02:00
Laurent Bachelier
331b580fb8 Warn when implicit conversions happen
To display them, you can use the python -W argument
or the PYTHONWARNINGS environment variable.
Maybe debug mode should display them.
2012-03-26 23:34:23 +02:00
Laurent Bachelier
7928d7cf06 Explain why the test is skipped 2012-03-26 23:10:55 +02:00
Romain Bignon
e8e7fbead1 add application comparoob 2012-03-26 23:05:23 +02:00
Romain Bignon
8f0e17ee16 add ICapPriceComparison 2012-03-26 23:00:59 +02:00
Romain Bignon
4ea7872ba4 fix setting None, NotLoaded and NotAvailable values on fields 2012-03-26 22:56:10 +02:00
Romain Bignon
8d182f8e4e havedate inherits boobmsg 2012-03-26 16:13:12 +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
Roger Philibert
36b66e9238 [boobmsg] Photos command 2012-03-26 14:20:37 +02:00
Roger Philibert
bf17245f90 [boobmsg] Profile support 2012-03-26 14:20:37 +02:00
Clément Schreiner
0ccae70238 Remove useless Revision's attribute: 'revision'. 2012-03-26 11:47:31 +02:00
Clément Schreiner
e790778f6a Fix typo. Makes loadButton enabled again after loading has failed. 2012-03-25 12:56:00 +02:00
Clément Schreiner
76795b27a2 Ask for correct login information (for example "Account ID" in boobank) instead of always asking for "Password". 2012-03-25 12:51:38 +02:00
Clément Schreiner
9851a675d5 Set a placeholder text for cityEdit only if the user's version of Qt supports it. fixes #832 2012-03-25 10:33:49 +02:00
Clément Schreiner
5daf71effe Small UI fixes. Compatibility with Qt version < 4.7.
- error callback for loadHistory, to make the reload button enabled again after an error
 - remove descriptionEdit's placeholder (for compatibilty with earlier versions of Qt)
 - add placeholder text to descriptionEdit if supported by the user's version of Qt
 - set contentEdit read-only while loading a new page
 - saveButton was still showing "Saving" after saving had failed
2012-03-25 10:22:55 +02:00
Clément Schreiner
07c7b7b1be Code cleaning. Comments, methods renaming and other cosmetic changes.
- added doc strings to every method
 - showPreview -> loadPreview (for consistency)                                                        - _loadPage_cb -> _loadedPage (same for savePage)                                                     - _loadPage_eb -> _errorLoadPage (same for savePage)
 - try to limit lines to 79 columns
2012-03-25 10:22:55 +02:00
Clément Schreiner
4b8e2937be Make the 'load' button usable again after loading has failed. 2012-03-25 10:22:55 +02:00
Romain Bignon
1833952af1 fix completion of 'cd' after using 'ls' with a parameter 2012-03-25 09:45:31 +02:00
Clément Schreiner
44ca257bae Add revisions at the end and not the beginning. Revisions are now shown in the correct order. 2012-03-24 20:54:09 +01:00
Clément Schreiner
f14f63daf2 Add 'History' tab, showing the current page's list of previous revisions. fixes #561 2012-03-24 20:14:39 +01:00
Clément Schreiner
5fe9273b2f More minor changes to the UI.
- the contentEdit widget is ReadOnly before a page has been loaded
 - the saveButton widget stays disabled after the page has been saved
2012-03-24 20:14:15 +01:00
Romain Bignon
8f282c9ae8 rename iter_operations to iter_coming 2012-03-23 17:07:34 +01:00
Clément Schreiner
85d46363a6 Placeholder text for edit summary. 2012-03-23 11:44:32 +01:00
Clément Schreiner
a1a68847bb Minor UI changes.
- The 'save' button is disabled and shows 'No changes' at first. Editing contentEdit's text
enables the button and makes it show 'Save'.
 - The 'save' button is disabled and shows 'Saving...' when the page is being saved, and stays
disabled until contentEdit's text has been changed again.
 - The 'save' button shows 'Saved' once the page has been successfully saved. fixes #560
 - contentEdit is readonly when the page is being saved
2012-03-23 09:53:57 +01:00
Laurent Bachelier
ba5949cd22 Remove nb_unread/nb_messages in CapMessages
Most backends don't set it nb_messages and no application used it.
No backends set nb_unread and only one application tried to use it.

This should help avoid useless fillobj() calls in some cases.

fixes #827
2012-03-23 07:04:42 +01:00
Laurent Bachelier
79724c90f5 Remove "thread" argument in iter_unread_messages
It is unused, and no backend implemented it — so it was wrong to have it
in the function signature.
It also does not seem very helpful, we have get_threads() if we want to
do something advanced with treads.

fixes #825
2012-03-23 07:04:40 +01:00
Romain Bignon
2675510f32 add a class FrenchTransaction to factorize common parsing of french banks 2012-03-22 16:33:05 +01:00
Romain Bignon
e6d5fd019f add a field 'rdate' to store date of payment 2012-03-22 16:33:05 +01: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
64d976d6d9 Add command to run the monboob process only once 2012-03-21 04:16:45 +01:00
theo
67ae0893cd Add completion to ls in CapCollection
The completion is the same code as ls used to call.
2012-03-20 07:52:40 +01:00
Romain Bignon
e2aaef914a fix 'close' command 2012-03-18 11:33:56 +01:00
theo
8c977825b9 ls dir is equivalent to cd dir + ls + cd ..
Until now, ls discarded arguments.

ls = ls dir:

videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)
videoob> ls sport
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)

With this patch, we are now able to ls a dir without chdir into it.

For instance:
videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)
videoob> ls sport
~ (les-incontournables) Les incontournables (canalplus)
~ (les-plus-recentes) Les plus recentes (canalplus)
~ (les-plus-vues) Les plus vues (canalplus)
~ (tout-le-football) Tout le football (canalplus)
~ (tout-le-rugby) Tout le rugby (canalplus)
~ (tout-le-basket) Tout le basket (canalplus)
~ (tout-le-tennis-golf) Tout le tennis / golf (canalplus)
~ (autres-sports-home-sport) Autres sports - home sport (canalplus)
~ (les-emissions-sport) Les emissions sport (canalplus)
videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)

Signed-off-by: theo <theocrite@theocrite.org>
2012-03-16 17:20:18 +01:00
Laurent Bachelier
b8d1a52732 Use simplejson first, and centralize import
simplejson is supposed to be faster:
http://stackoverflow.com/questions/712791/json-and-simplejson-module-differences-in-python
2012-03-16 16:27:22 +01:00
Laurent Bachelier
e958c229e6 Move the "empty search for latest" to collections
There is now a "latest" collection (or "latest_nsfw").
The feature didn't look much used, since it didn't work on many
backends.
Using collections will make it easy to support other things
like most viewed, featured, etc.
As a bonus, I added tests for every backend with the feature.
2012-03-16 03:34:22 +01:00
Florent Fourcot
65251c4ceb Display renew confirmation/errors 2012-03-16 00:49:58 +01:00
Florent Fourcot
bdcc5db8bb Add "renew" in ICapBook and in boobooks 2012-03-16 00:49:54 +01:00
Florent Fourcot
34a71f9ef8 Fix error messages 2012-03-16 00:49:51 +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
Romain Bignon
df7325d712 get all fields of housings 2012-03-14 21:56:36 +01:00