From 36b0e65e8e50b1e2d2385b777f71bbbb1166382d Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 25 Feb 2008 01:43:03 -0800 Subject: [PATCH] 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] --- DIDLLite.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/DIDLLite.py b/DIDLLite.py index ddc6de9..2917e1c 100644 --- a/DIDLLite.py +++ b/DIDLLite.py @@ -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):