Logo Search packages:      
Sourcecode: gallery-uploader version File versions  Download package

def guplib::albums::AlbumList::load (   self,
  name 
)

Load the album list. Can be used to merge two album lists, but 
it won't make sense, as the remote server won't have one of the
sets. Also, you can load he same album twice without a problem.

Definition at line 179 of file albums.py.

00179                         :
        '''Load the album list. Can be used to merge two album lists, but 
        it won't make sense, as the remote server won't have one of the
        sets. Also, you can load he same album twice without a problem.'''
        contents = file(name, 'r')
        for line in contents:
            line   = line.strip()
            fields = line.split(':')
            self.add(int(fields[0]), ':'.join(fields[2:]), int(fields[1]))
        contents.close()
        return

    def search_name(self, name):


Generated by  Doxygen 1.6.0   Back to index