Google & ShrinkUrl: Fix issue with super() in custom config types if plugin is reloaded.

This commit is contained in:
Valentin Lorentz 2013-02-09 21:53:56 +01:00
parent b90bd4b9d9
commit 5a114aba2e
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ class NumSearchResults(registry.PositiveInteger):
def setValue(self, v):
if v > 8:
self.error()
super(NumSearchResults, self).setValue(v)
super(self.__class__, self).setValue(v)
class SafeSearch(registry.OnlySomeStrings):
validStrings = ['active', 'moderate', 'off']

View File

@ -54,7 +54,7 @@ class ShrinkCycle(registry.SpaceSeparatedListOfStrings):
self.lastIndex = -1
def setValue(self, v):
super(ShrinkCycle, self).setValue(v)
super(self.__class__, self).setValue(v)
self.lastIndex = -1
def getService(self):