mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Now registry.Regexp updates properly
This commit is contained in:
parent
20ebbc15d5
commit
7834a2c50b
@ -409,6 +409,13 @@ class Regexp(Value):
|
|||||||
if s:
|
if s:
|
||||||
self.value = utils.perlReToPythonRe(s)
|
self.value = utils.perlReToPythonRe(s)
|
||||||
self._lastModified = time.time()
|
self._lastModified = time.time()
|
||||||
|
# Since we aren't calling self.setValue(), we need to run the
|
||||||
|
# following code. If we don't, self.value isn't properly
|
||||||
|
# updated.
|
||||||
|
if self.supplyDefault:
|
||||||
|
for (name, v) in self.children.items():
|
||||||
|
if v.__class__ is self.X:
|
||||||
|
self.unregister(name)
|
||||||
else:
|
else:
|
||||||
self.setValue(None)
|
self.setValue(None)
|
||||||
self.sr = s
|
self.sr = s
|
||||||
|
Loading…
Reference in New Issue
Block a user