Ticket #160 (closed enhancement: fixed)

Opened 2 months ago

Last modified 1 month ago

new backend to present the content of a gallery2 repository

Reported by: jmsizun Assigned to:
Priority: minor Milestone: 0.6
Component: Feature Requests Version:
Keywords: Cc:

Description

Hi all, ticket opened to avoid concurrent work.

I am currently working on such a backend: gallery2 is a web-based photo repository server (like flickr or picasa, but in thatr cas you own the server).

The current code uses the galleryremote librarie (see http://www.fprimex.com/programming/galleryremote) basic functionnality is there (read access to public photos) but it currently lacks proper testing (let's do it right this time) and proper authentication.

I will upload code asap.

Attachments

gallery2_backend_081125.zip (7.6 kB) - added by jmsizun on 25.11.2008 23:21:59.
first version
gallery2_backend_081202.zip (7.7 kB) - added by jmsizun on 02.12.2008 21:18:43.
backend files

Change History

(in reply to: ↑ description ) 09.11.2008 23:17:00 changed by dev

Replying to jmsizun:

awesome!

The current code uses the galleryremote librarie (see http://www.fprimex.com/programming/galleryremote)

it is using urlopen, aka blocking call, so we need to replace that with twisted.web.client.getPage. But as that is only at one place in the library, that change will be very easy.

17.11.2008 13:45:41 changed by jmsizun

- authentication OK - urlopen replaced by twisted.web.client.getPage OK

will post code later this week.

25.11.2008 23:21:59 changed by jmsizun

  • attachment gallery2_backend_081125.zip added.

first version

25.11.2008 23:26:54 changed by jmsizun

first version of the code poste here. zip file is to be unarchived in the backend directory. The coherence.backends.gallery2_storage class shall be registered as Gallery2Store in setup.py and entry_points.txt

backend params are:

server_url: URL to the gallery2 server (e.g. 'http://localhost/gallery2') username: account to log into the repository password: password to log into the repository

The gallery2 remote interface shall be enabled.

02.12.2008 21:15:15 changed by jmsizun

the folllowing URLs may be used as sample:

http://www.digital-images.co.nz/gallery

http://ckdake.com/gallery/

those are "public" sites: no need to provide any usernames and password.

02.12.2008 21:18:43 changed by jmsizun

  • attachment gallery2_backend_081202.zip added.

backend files

08.12.2008 13:25:44 changed by jmsizun

  • milestone set to 0.6.

09.12.2008 14:45:34 changed by dev

  • status changed from new to closed.
  • resolution set to fixed.

(In [1030]) a new Gallery2 MediaServer backend from jmsizun, connecting to a Gallery2 server via a slightly modified galleryremote module

  • activate like this: coherence --plugin=backend:Gallery2Store,server_url:http://something,username:yours,password:hidden
  • public - no username and password needed - Gallery2 servers for example use are:
    • coherence --plugin=backend:Gallery2Store,server_url:http://www.digital-images.co.nz/gallery
    • coherence --plugin=backend:Gallery2Store,server_url:http://ckdake.com/gallery

closes #160