Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/p/y/pytivo-video-mgr2-HEAD/vidmgr/VideoDir.py   pytivo-video-mgr2(Download)
import os
from Config import TYPE_VIDDIR
from Node import cmpList
 
class VideoDir:
		def cmpNodes(a, b):
			ta = a.formatSortText(self.opts['sortopt'])
			tb = b.formatSortText(self.opts['sortopt'])
			if (self.opts['sortup']):
				return cmpList(ta, tb)
			else:
				return cmpList(tb, ta)

src/p/y/pytivo-video-mgr2-HEAD/vidmgr/DVDDir.py   pytivo-video-mgr2(Download)
import os
from Config import TYPE_DVDDIR
from Node import cmpList
 
class DVDDir:
		def cmpNodes(a, b):
			ta = a.formatSortText(self.opts['sortopt'])
			tb = b.formatSortText(self.opts['sortopt'])
			if (self.opts['sortup']):
				return cmpList(ta, tb)
			else:
				return cmpList(tb, ta)