185 |
if oldprod.startswith(productName): |
if oldprod.startswith(productName): |
186 |
return True |
return True |
187 |
|
|
188 |
|
productUpgrades = { |
189 |
|
"SME Server": ("Mitel Networks", "SME Server", "e-smith server", ), |
190 |
|
} |
191 |
|
|
192 |
|
if productUpgrades.has_key(productName): |
193 |
|
acceptable = productUpgrades[productName] |
194 |
|
else: |
195 |
|
acceptable = () |
196 |
|
|
197 |
|
for p in acceptable: |
198 |
|
if oldprod.startswith(p): |
199 |
|
return True |
200 |
|
|
201 |
return False |
return False |
202 |
|
|
203 |
def versionMatches(self, oldver): |
def versionMatches(self, oldver): |