Romain Bignon
53e22d9f4b
bump to 0.9
2011-05-08 18:31:44 +02:00
Laurent Bachelier
dd6864c2c4
CapPaste: Also check the title in can_post
...
Because unsurprisingly pastealacon has silly restrictions.
2011-05-05 00:19:21 +02:00
Laurent Bachelier
0d2148bd84
CapPaste: check the contents in can_post
...
For pastealacon, it is used to check for encoding compatibility.
2011-05-04 23:50:58 +02:00
Laurent Bachelier
5fcc515fa6
Browser tries to login if the password is not None
...
Workaround since there is no way yet to mark a config argument as
optional.
2011-05-01 22:51:39 +02:00
Laurent Bachelier
f11d093e22
pastebin backend: stricter URL matching
2011-05-01 22:30:11 +02:00
Laurent Bachelier
740e7f12d2
pastebin backend: Support login
...
Also add an option to Browser to avoid making useless requests.
2011-04-30 22:28:03 +02:00
Laurent Bachelier
f63180c187
CapPaste: Support expiration for posting, as a max_age parameter
2011-04-30 00:26:23 +02:00
Laurent Bachelier
b64b039cdd
paste* backends: Support '$full' for fields
2011-04-27 18:31:03 +02:00
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
30f2f8e374
Python 2.5 compatibility for pastoob and paste backends
2011-04-24 00:18:05 +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
c1c9b39e9d
paste* backends: Use the check_url decorator
2011-04-21 22:23:23 +02:00
Laurent Bachelier
1a4fd0d320
paste* backends: Stricter URL matching
2011-04-21 20:48:08 +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
Laurent Bachelier
154c061398
paste* backends: "Paste not found" exception
2011-04-20 01:03:04 +02:00
Laurent Bachelier
1f571a9dc9
pastebin backend: Use a default expiration of one month
...
I don't want to clog pastebin's database with my unit tests!
2011-04-14 23:50:13 +02:00
Laurent Bachelier
ae52f23ea8
pastebin backend: Support posting via API if we have an apikey
2011-04-14 23:50:13 +02:00
Laurent Bachelier
667b8267db
paste* backends: Do not fill the paste after post
...
It's the application job to call fill_paste().
We only need to get the id.
2011-04-14 23:50:13 +02:00
Laurent Bachelier
c2abb12985
paste* backends: Use the page regexp to find out the id
2011-04-14 23:49:57 +02:00
Laurent Bachelier
c2c9d365ba
Add missing class to __all__
2011-04-14 16:19:50 +02:00
Laurent Bachelier
51d4b87ebb
pastebin backend: various fixes and enhancements
...
* Get the contents from the HTML page, eliminating one request
* Fix encoding support (everything is unicode) for all three Browser methods
* Enhance test
2011-04-12 01:43:27 +02:00
Laurent Bachelier
e597ea8844
pastebin backend: Switch to xpath expressions
2011-04-12 01:02:13 +02:00
Romain Bignon
b079953916
remove debug stuff
2011-04-11 11:17:49 +02:00
Romain Bignon
cc0b17e14e
remove unused import
2011-04-11 08:28:27 +02:00
Laurent Bachelier
8b874f6b0a
Add Pastebin backend and Paste capability
...
It is able to get a paste, and post a new one.
Only the contents and title fields are supported for now.
2011-04-10 17:32:20 +02:00