def checkLocksToAdd(lm, displaypath): parentdisplaypath = websupportfuncs.getLevelUpURL(displaypath) if lm.isUrlLocked(parentdisplaypath) != None: locklist = lm.getTokenListForUrl(parentdisplaypath) for locklisttoken in locklist: if lm.getLockProperty(locklisttoken, 'LOCKDEPTH') == 'infinity': if not lm.isUrlLockedByToken(displaypath, locklisttoken): lm.addUrlToLock(displaypath, locklisttoken)
def checkLocksToAdd(self, displaypath): if not self._loaded: self.performInitialization() parentdisplaypath = websupportfuncs.getLevelUpURL(displaypath) if self.isURLLocked(parentdisplaypath) != None: locklist = self.getURLLocktokenList(parentdisplaypath) for locklisttoken in locklist: if self.getLockProperty(locklisttoken, 'LOCKDEPTH') == 'infinity': if not self.isURLLockedByToken(displaypath, locklisttoken): self.addURLToLock(displaypath, locklisttoken)