Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ATContentTypes.adapters.image.PhotoAlbum Class Reference

List of all members.

Public Member Functions

def __init__
def setSymbolicPhoto
def getSymbolicPhoto
def getDisplayPhotosList

Public Attributes

 context

Detailed Description

interface that adapts a folder into a photo album

Definition at line 36 of file image.py.


Constructor & Destructor Documentation

Definition at line 42 of file image.py.

00042 
00043     def __init__(self, context):
00044         self.context = context


Member Function Documentation

return a display list for symbolic_photo field

Definition at line 57 of file image.py.

00057 
00058     def getDisplayPhotosList(self):
00059         """
00060         return a display list for symbolic_photo field
00061         """
00062         brains = self.getFolderContents(contentFilter={'meta_type':['ATPhoto']})
00063         photos_list = [(b.getObject().UID(), str(b.Title or b.getId)[:70]) for b in brains]
00064         return DisplayList( [('','<no reference>')] + photos_list )
00065 

Here is the call graph for this function:

get the photo which represents the album

Definition at line 51 of file image.py.

00051 
00052     def getSymbolicPhoto():
00053         """
00054         get the photo which represents the album
00055         """
00056         pass

set the photo which represents the album

Definition at line 45 of file image.py.

00045 
00046     def setSymbolicPhoto(self,photo=None):
00047         """
00048         set the photo which represents the album
00049         """
00050         pass


Member Data Documentation

Definition at line 43 of file image.py.


The documentation for this class was generated from the following file: