Browse Source

check checkUpdate api slightly.. we never used a return value, so

don't return one..

[git-p4: depot-paths = "//depot/": change = 1301]
main
John-Mark Gurney 16 years ago
parent
commit
e4a35b1922
6 changed files with 6 additions and 9 deletions
  1. +1
    -1
      DIDLLite.py
  2. +2
    -4
      FSStorage.py
  3. +2
    -0
      README
  4. +1
    -1
      ZipStorage.py
  5. +0
    -1
      dvd.py
  6. +0
    -2
      shoutcast.py

+ 1
- 1
DIDLLite.py View File

@@ -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):




+ 2
- 4
FSStorage.py View File

@@ -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




+ 2
- 0
README View File

@@ -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.


+ 1
- 1
ZipStorage.py View File

@@ -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):


+ 0
- 1
dvd.py View File

@@ -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


+ 0
- 2
shoutcast.py View File

@@ -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)


||||||
x
 
000:0
Loading…
Cancel
Save