~ubuntu-branches/ubuntu/utopic/lazygal/utopic

« back to all changes in this revision

Viewing changes to lazygal/config.py

  • Committer: Package Import Robot
  • Author(s): Michal Čihař, Michal Čihař, Jakub Wilk
  • Date: 2013-06-06 12:05:08 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20130606120508-e3g94vl8w9pw7za7
Tags: 0.8-1
[ Michal Čihař ]
* New upstream release.
  - Uses new Genshi templates (Closes: #696682).
  - Correctly handles wronly encoded artist in EXIF (Closes: #696648).
  - Uses GExiv2 (LP: #1074028).
* Depend on GExiv2 instead of pyexiv2.
* Bump standards to 3.9.4.
* Use debhelper 9.

[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        except (ValueError, AttributeError):
42
42
            return ConfigParser.RawConfigParser.get(self, section, option)
43
43
 
 
44
    def getlist(self, section, option):
 
45
        str_vlist = self.get(section, option)
 
46
 
 
47
        if str_vlist == '':
 
48
            return []
 
49
 
 
50
        if type(str_vlist) is not list:
 
51
            str_vlist = str_vlist.split(',')
 
52
 
 
53
        # handle the case several vals were given at once (separated by comas)
 
54
        vlist = []
 
55
        for v in str_vlist:
 
56
            multiple_v = v.split(',')
 
57
            for mv in multiple_v:
 
58
                vlist.append(mv)
 
59
 
 
60
        return vlist
 
61
 
44
62
    def load(self, other_config, init=False, sections=None):
45
63
        """
46
64
        Take another configuration object and overload values in this config