~ubuntu-branches/ubuntu/natty/mythtv/natty

« back to all changes in this revision

Viewing changes to bindings/python/MythTV/MythFunc.py

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Mario Limonciello, Thomas Mashos
  • Date: 2010-06-20 00:11:00 UTC
  • mfrom: (1.1.53 upstream)
  • Revision ID: james.westby@ubuntu.com-20100620001100-yulpns6qg4ksmay6
Tags: 0.23.0+fixes25138-0ubuntu1
[ Mario Limonciello ]
* new upstream checkout (25138)

[ Thomas Mashos ]
* Added missingok for mirobridge log in logrotate (LP: #581283)
* Backend now waits for udev to finish (LP: #556204)
* Added patch to properly detect dbus during compile (LP: #574877)

Show diffs side-by-side

added added

removed removed

Lines of Context:
392
392
        'filenames' is a dictionary, where the values are the file sizes.
393
393
        """
394
394
        def walk(self, host, sg, root, path):
395
 
            dn, fn, fs = self.getSGList(host, sg, root+path+'/')
396
 
            res = [list(dn), dict(zip(fn, fs))]
 
395
            res = self.getSGList(host, sg, root+path+'/')
 
396
            if res < 0:
 
397
                return {}
 
398
            dlist = list(res[0])
 
399
            res = [dlist, dict(zip(res[1],res[2]))]
397
400
            if path == '':
398
401
                res = {'/':res}
399
402
            else:
400
403
                res = {path:res}
401
 
            for d in dn:
 
404
            for d in dlist:
402
405
                res.update(walk(self, host, sg, root, path+'/'+d))
403
406
            return res
404
407
 
820
823
 
821
824
    def getGuideData(self, chanid, date):
822
825
        return self.searchGuide(chanid=chanid, 
823
 
                                custom=('DATE(starttime)=%s',date))
 
826
                                custom=(('DATE(starttime)=%s',date),))
824
827
 
825
828
    def getSetting(self, value, hostname=None):
826
829
        if not hostname:
996
999
                        tpath = sgfold[0][1:]+'/'+sgfile
997
1000
 
998
1001
                    # filter by extension
999
 
                    if tpath.rsplit('.',1)[1].lower() not in extensions:
 
1002
                    if tpath.rsplit('.',1)[-1].lower() not in extensions:
1000
1003
                        #print 'skipping: '+tpath
1001
1004
                        continue
1002
1005