Commit graph

2,728 commits

Author SHA1 Message Date
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
Xavier G
3279f5dc9c CrAgr: fixed the way history pages are browsed. 2012-03-23 07:03:30 +01:00
Romain Bignon
ed8551a415 fix parsing of dates 2012-03-22 21:58:24 +01:00
Romain Bignon
9bf7d618d8 don't crash if a message content is None 2012-03-22 21:55:34 +01:00
Romain Bignon
4d3682eb23 adopteunmec seems to have changed its charset (refs #820) 2012-03-22 21:54:46 +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
Florent Fourcot
c767e72767 Change documentation 2012-03-22 08:59:23 +01:00
Florent
1356e69ffd All id in storage are string, not int 2012-03-21 08:26:42 +01:00
Laurent Bachelier
64d976d6d9 Add command to run the monboob process only once 2012-03-21 04:16:45 +01:00
Laurent Bachelier
a84fde80e6 bnporc: Add support of some broken messages 2012-03-21 04:16:45 +01:00
Laurent Bachelier
e7f6086916 bnporc: Much faster checking of new messages
Especially for the first call on a new backend instance.
We don't need to fill threads that are already in "seen".
2012-03-21 04:15:42 +01:00
Laurent Bachelier
0e113544da bnporc: Drop javascript tags in messages
Does not make much sense in our usage, and it breaks
txt2tags/HTMLParser.
2012-03-21 01:58:39 +01:00
Laurent Bachelier
a978260410 bnporc: Make links absolute before exporting
refs #828
2012-03-21 01:58:39 +01:00
Laurent Bachelier
e3bb06398c bnporc: Force marking messages as read
Because threads are in cache, the Message objects are not refreshed
after set_message_read().
Also retrieve the "seen" storage only once per call.
2012-03-21 01:58:11 +01:00
Florent
4a5456b152 Don't get page with 0 comment 2012-03-20 15:00:18 +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
Florent Fourcot
65d450860e Fix log flooding
Munin has a bug with whitespace at end of label
See: http://munin-monitoring.org/ticket/991
2012-03-20 00:41:46 +01:00
Laurent Bachelier
a837d954ee Add Messages support to bnporc
Private messages from the bank.
2012-03-19 23:25:21 +01:00
theo
327cb4f618 Freemobile munin plugin needs a cache directory to store previous
results.

Let's create it and not expect the user to do it.
2012-03-19 23:22:00 +01:00
Romain Bignon
e9e41a9c7c fix type of 'artist' and 'title' 2012-03-19 22:39:31 +01:00
theo
259bef4739 Code cleanup
* Complies to perltidy
 * Avoid useless loops
 * Always use strict!
 * Remove unused vars
 * Use croak instead of die
 * End every function with return
 * Use English instead of magic punctuation
 * Avoid useless variable interpolations
 * Use functions
 * Fix POD syntax
2012-03-19 16:16:41 +01:00
Laurent Bachelier
d70e72486a Fix and update INSTALL 2012-03-18 21:41:25 +01:00
Romain Bignon
e2aaef914a fix 'close' command 2012-03-18 11:33:56 +01:00
Romain Bignon
4b947f8b29 add icon for freemobile 2012-03-18 10:30:43 +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
Romain Bignon
7c0bcfe499 fix included path 2012-03-16 15:03:06 +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
Laurent Bachelier
4d628112d5 Fix getting youjizz video URLs, better test 2012-03-16 01:31:42 +01:00
Florent Fourcot
65251c4ceb Display renew confirmation/errors 2012-03-16 00:49:58 +01:00
Florent Fourcot
03f998a33f Renew command on champslibres 2012-03-16 00:49:56 +01:00
Florent Fourcot
bdcc5db8bb Add "renew" in ICapBook and in boobooks 2012-03-16 00:49:54 +01:00
Florent Fourcot
8c0dbe18f0 Fix some strange effects with login 2012-03-16 00:49:53 +01:00
Florent Fourcot
34a71f9ef8 Fix error messages 2012-03-16 00:49:51 +01:00
Florent
12c51ba61c First implementation of champslibres module 2012-03-16 00:49:48 +01:00
Florent
642cfbb41c First implementation of taz.de module 2012-03-16 00:49:46 +01:00
Laurent Bachelier
ceac11153d Fix getting latest francetelevisions videos 2012-03-16 00:09:56 +01:00
Laurent Bachelier
e1d3e43a4d Fix getting dailymotion thumbnails
It is now in "data-src" instead of "src", because they use JavaScript
lazy loading.
Also ask for the bigger thumbnail, and remove useless anti-caching.
2012-03-15 23:49:55 +01:00
Laurent Bachelier
ea0af7b6a1 Fix getting latest dailymotion videos 2012-03-15 23:38:32 +01:00
Laurent Bachelier
9a5a80f21a Fix getting latest Arte videos 2012-03-15 22:55:00 +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
Laurent Bachelier
d806585109 freemobile-munin: Fix typos, indentation, documentation 2012-03-15 18:27:26 +01:00
Romain Bignon
4422a25421 fix getting accounts 2012-03-15 15:50:47 +01:00
Laurent Bachelier
0e0bf2ad37 radiofrance: Fix crash when there is no author
Triggered by FIP at night.
Also force unicode when merging titles.
2012-03-14 23:54:39 +01:00
Laurent Bachelier
3a68fc615b Remove *.pyc before running tests 2012-03-14 23:53:14 +01:00