don't return one.. [git-p4: depot-paths = "//depot/": change = 1301]main
@@ -136,7 +136,7 @@ class Object(object): | |||||
self.title) | self.title) | ||||
def checkUpdate(self): | def checkUpdate(self): | ||||
return self | pass | ||||
def toElement(self): | def toElement(self): | ||||
@@ -65,7 +65,7 @@ class FSObject(object): | |||||
try: | try: | ||||
nstat = os.stat(self.FSpath) | nstat = os.stat(self.FSpath) | ||||
if statcmp(self.pstat, nstat): | if statcmp(self.pstat, nstat): | ||||
return self | return | ||||
self.pstat = nstat | self.pstat = nstat | ||||
self.doUpdate() | self.doUpdate() | ||||
@@ -74,12 +74,10 @@ class FSObject(object): | |||||
if x.errno in (errno.ENOENT, errno.ENOTDIR, errno.EPERM, ): | if x.errno in (errno.ENOENT, errno.ENOTDIR, errno.EPERM, ): | ||||
# We can't access it anymore, delete it | # We can't access it anymore, delete it | ||||
self.cd.delItem(self.id) | self.cd.delItem(self.id) | ||||
return None | return | ||||
else: | else: | ||||
raise | raise | ||||
return self | |||||
def doUpdate(self): | def doUpdate(self): | ||||
raise NotImplementedError | raise NotImplementedError | ||||
@@ -78,6 +78,8 @@ v0.x: | |||||
Made it a bit closer to a real twisted proejct, in the process, | Made it a bit closer to a real twisted proejct, in the process, | ||||
pymediaserv looks more like a normal program. It allows you to | pymediaserv looks more like a normal program. It allows you to | ||||
override the media path and title of the server. | override the media path and title of the server. | ||||
Minor change to checkUpdate API, we didn't use the return value, so | |||||
don't return one anymore. | |||||
v0.5: | v0.5: | ||||
Support multiple SSDP servers on the same box. | Support multiple SSDP servers on the same box. | ||||
@@ -159,7 +159,7 @@ class ZipItem: | |||||
def checkUpdate(self): | def checkUpdate(self): | ||||
self.doUpdate() | self.doUpdate() | ||||
return self.zo.checkUpdate() | self.zo.checkUpdate() | ||||
class ZipFile(ZipItem, Item): | class ZipFile(ZipItem, Item): | ||||
def __init__(self, *args, **kwargs): | def __init__(self, *args, **kwargs): | ||||
@@ -141,7 +141,6 @@ class DVDTitle(StorageFolder): | |||||
def checkUpdate(self): | def checkUpdate(self): | ||||
self.doUpdate() | self.doUpdate() | ||||
#return self.dvddisc.checkUpdate() | #return self.dvddisc.checkUpdate() | ||||
return self | |||||
def doUpdate(self): | def doUpdate(self): | ||||
doupdate = False | doupdate = False | ||||
@@ -321,7 +321,6 @@ class ShoutGenre(MusicGenre): | |||||
def checkUpdate(self): | def checkUpdate(self): | ||||
self.doUpdate() | self.doUpdate() | ||||
return self | |||||
def doUpdate(self): | def doUpdate(self): | ||||
#traceback.print_stack(file=log.logfile) | #traceback.print_stack(file=log.logfile) | ||||
@@ -369,7 +368,6 @@ class ShoutCast(Container): | |||||
def checkUpdate(self): | def checkUpdate(self): | ||||
self.doUpdate() | self.doUpdate() | ||||
return self | |||||
def doUpdate(self): | def doUpdate(self): | ||||
#traceback.print_stack(file=log.logfile) | #traceback.print_stack(file=log.logfile) | ||||