Commit graph

11 commits

Author SHA1 Message Date
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
f63180c187 CapPaste: Support expiration for posting, as a max_age parameter 2011-04-30 00:26:23 +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
8af2674994 Better API for ICapPaste.new_paste 2011-04-23 00:30:27 +02:00
Laurent Bachelier
c1c9b39e9d paste* backends: Use the check_url decorator 2011-04-21 22:23:23 +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
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
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
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