coherence.backends.picasa_storage (module)

class PicasaProxy(uri)[source]

Bases: coherence.upnp.core.utils.ReverseProxyUriResource

render(request)[source]

Render a request by forwarding it to the proxied server.

class PicasaPhotoItem(photo)[source]

Bases: coherence.backend.BackendItem

replace_by(item)[source]
get_item()[source]

Called by the CDS and the MediaServer web.

Returns

  • an UPnP ContentDirectoryServer DIDLLite object

  • or a Deferred

get_path()[source]

Called by the MediaServer web.

Returns

the filepath where to find the media file that this item does refer to.

get_id()[source]
class PicasaStore(server, **kwargs)[source]

Bases: coherence.backend.AbstractBackendStore

logCategory = 'picasa_store'
implements = ['MediaServer']
description = ('Picasa Web Albums', 'connects to the Picasa Web Albums service and exposes the featured photos and albums for a given user.', None)
options = [{'option': 'name', 'text': 'Server Name:', 'type': 'string', 'default': 'my media', 'help': 'the name under this MediaServer shall show up with on other UPnP clients'}, {'option': 'version', 'text': 'UPnP Version:', 'type': 'int', 'default': 2, 'enum': (2, 1), 'help': 'the highest UPnP version this MediaServer shall support', 'level': 'advance'}, {'option': 'uuid', 'text': 'UUID Identifier:', 'type': 'string', 'help': 'the unique (UPnP) identifier for this MediaServer, usually automatically set', 'level': 'advance'}, {'option': 'refresh', 'text': 'Refresh period', 'type': 'string'}, {'option': 'login', 'text': 'User ID:', 'type': 'string', 'group': 'User Account'}, {'option': 'password', 'text': 'Password:', 'type': 'string', 'group': 'User Account'}]
upnp_init()[source]

This method gets called after the device is fired, here all initializations of service related state variables should happen, as the services aren’t available before that point.

retrieveAlbums(parent=None)[source]
retrieveFeedPhotos(parent=None, feed_uri='')[source]
retrieveAlbumPhotos(parent=None, album_id='')[source]
retrieveFeaturedPhotos(parent=None)[source]