Commit graph

1,936 commits

Author SHA1 Message Date
Laurent Bachelier
fbd4511ffa CapPaste: add method to find if a paste is suitable for the backend
Basic support in pastoob added (there is no way yet to change the
default options).
Backends support the "public/private" requirement.
2011-04-27 00:41:50 +02:00
Laurent Bachelier
9022435e49 paste* backends: Support the 'public' attribute 2011-04-27 00:32:15 +02:00
Laurent Bachelier
4b2b9e511f pastoob: add a newline for get
Unless we are writing in a file or in a pipe
2011-04-26 18:55:42 +02:00
Laurent Bachelier
61c1aef493 pastoob: Fix displayed help for post 2011-04-26 18:55:42 +02:00
Romain Bignon
7602f0c1cc oops invalid syntax 2011-04-26 13:17:39 +02:00
Romain
f43b2e6834 Fix FreeBSD support (permission issue)
Signed-off-by: Romain <romain.garbage@gmail.com>
2011-04-26 13:05:42 +02:00
Romain Bignon
48d6f1daf1 fix license 2011-04-26 09:12:22 +02:00
Romain Bignon
c6854cbfa3 FreeBSD support (thanks to Romain Garbage) 2011-04-26 08:17:38 +02:00
Romain Bignon
fa37ef38e3 fix to remove fucking hack from feedparser >= 5.0 (closes #649) 2011-04-24 16:58:20 +02:00
Laurent Bachelier
30f2f8e374 Python 2.5 compatibility for pastoob and paste backends 2011-04-24 00:18:05 +02:00
Laurent Bachelier
5ac2de43d7 Try to import Python's OrderedDict
There is an OrderedDict in Python 2.7+.
The try order is now as follows:
* OrderedDict from Python's collections module
* OrderedDict from the jsonencode module (dependency)
* OrderedDict from the ordereddict module (pypi package)
* our own OrderedDict
2011-04-23 23:55:12 +02:00
Romain Bignon
203d540163 fix fillobj() on videos without thumbnails 2011-04-23 09:22:25 +02:00
Romain Bignon
923c2ffc84 remove dead code 2011-04-23 09:04:41 +02:00
Laurent Bachelier
8af2674994 Better API for ICapPaste.new_paste 2011-04-23 00:30:27 +02:00
Laurent Bachelier
6c2d164883 Add basic support for pasting with pastoob
And fix the capability.
2011-04-23 00:17:40 +02:00
Laurent Bachelier
5c7eaa3151 Pastoob fixes
Do not use print (as it add a newline), fix the wanted fields, use "get"
instead of "show".
2011-04-22 22:06:14 +02:00
Laurent Bachelier
2c6d5d4e70 Fix previous commit on domain checking of id2url
* the condition on empty self.DOMAIN didn't work
* it introduced a regression as subdomains were accepted by the old code
2011-04-22 10:37:30 +02:00
Romain Bignon
a92063eb12 +x 2011-04-22 09:07:49 +02:00
Laurent Bachelier
d3f6c270f8 Introduce the pastoop application
For now it can only get the contents of a paste.
2011-04-21 23:11:00 +02:00
Laurent Bachelier
7bf794b7e5 Add missing fillobj() call on get_object
fillobj was only called when getting previously fetched objects in
interactive mode.
This probably wasn't detected because most get_* backend functions
usually fill a lot of fields by themselves.
2011-04-21 22:59:30 +02:00
Laurent Bachelier
c1c9b39e9d paste* backends: Use the check_url decorator 2011-04-21 22:23:23 +02:00
Laurent Bachelier
4d8030b8dd Add check_url decorator, remove check_domain
check_domain was not used anywhere and was bugged (the domain argument
was ignored in favor of self.DOMAIN).
The check_url decorator checks if the URL can be handled, if not it will
return None. The idea is to avoid making unnecessary requests.
2011-04-21 22:18:17 +02:00
Laurent Bachelier
1a4fd0d320 paste* backends: Stricter URL matching 2011-04-21 20:48:08 +02:00
Laurent Bachelier
619b97669d Enhance domain checking of url2id
* Do not check for the domain if it is empty in the Browser class
* Better check of the domain (actually parse the URL domain)
* Add docstring
2011-04-21 20:15:18 +02:00
Laurent Bachelier
dc35df83ef paste* backends: Accept an URL or an ID
Like most other backends, with the id2url decorator.
2011-04-21 18:29:18 +02:00
Pierre Mazière
c7968faa20 LCL: fix history command due to website changes
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2011-04-21 14:16:23 +02:00
Romain Bignon
66f31976bb really fix tests 2011-04-21 12:24:23 +02:00
Romain Bignon
5b057ea87f add tests for franceinter and lemouv 2011-04-21 12:16:42 +02:00
Romain Bignon
3465569da3 fix test 2011-04-21 12:15:29 +02:00
Romain Bignon
7098e44d9b use CapResources for radios 2011-04-21 12:07:37 +02:00
Romain Bignon
3751653874 rotating_password is an hidden input (closes #627) 2011-04-21 11:18:13 +02:00
Christophe Benz
dce76d35f8 Uncomment python dependencies. 2011-04-21 11:03:12 +02:00
Laurent Bachelier
31b4892c48 Add support for https in the id2url decorator 2011-04-21 11:03:01 +02:00
Clément Schreiner
810a4fe9b0 test_push_content: now checks that the content has been pushed correctly 2011-04-21 11:02:52 +02:00
Romain Bignon
c28d5a99c1 factorize ls and cd in ReplApplication 2011-04-21 11:01:50 +02:00
Romain Bignon
e8084ef99f CapCollection is stateless: remove get_working_collection() and change_working_collection() methods 2011-04-21 11:01:30 +02:00
Nicolas Duhamel
cc52b8eb3c Downparadise backend first commit 2011-04-20 09:26:34 +02:00
Nicolas Duhamel
0f53a02947 Introduce tostring function 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
82afb34f7a Use Path object 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
f815a9c2c2 Catch CollectionNotFound 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
3e17eb0991 little fix 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
95edb50496 little fix 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
27876970f3 backend stateful 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
6b3ac71621 mediaplayer fix license 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
8adc8dca9a Videoob fix license 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
ead1e6e09e ICapCollection fix license 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
412a7d6e40 fix license 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
8671361ede fix mediaplayer 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
8b2e4b276d Add collections to videoob 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
d50f5f3fd4 Add collections to canalplus 2011-04-20 09:26:31 +02:00