Browse Source

do like the others, and when cascading to root, do it through

Container, this prevents the root Container from being rescanned
all the time...  Also make the root Container be able to grow
beyond 2^32...

[git-p4: depot-paths = "//depot/": change = 1127]
replace/b43bf02ddeddd088c0e6b94974ca1a46562eb3db
John-Mark Gurney 17 years ago
parent
commit
36b0e65e8e
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      DIDLLite.py

+ 5
- 3
DIDLLite.py View File

@@ -274,9 +274,11 @@ class Container(Object, list):
list.__init__(self)

def doUpdate(self):
self.updateID = (self.updateID + 1) % (1l << 32)
if self.id != '0':
self.cd['0'].doUpdate()
if self.id == '0':
self.updateID = (self.updateID + 1)
else:
self.updateID = (self.updateID + 1) % (1l << 32)
Container.doUpdate(self.cd['0'])

def toElement(self):



Loading…
Cancel
Save