mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
commit mtughan's bugfix for this bug:
https://sourceforge.net/tracker/?func=detail&aid=2985241&group_id=58965&atid=489447
This commit is contained in:
parent
b115e0d56f
commit
7f9a113060
@ -307,8 +307,10 @@ class Value(Group):
|
|||||||
if setDefault:
|
if setDefault:
|
||||||
self.setValue(default)
|
self.setValue(default)
|
||||||
|
|
||||||
def error(self):
|
def error(self, message=None):
|
||||||
if self.__doc__:
|
if message:
|
||||||
|
s = message
|
||||||
|
elif self.__doc__:
|
||||||
s = self.__doc__
|
s = self.__doc__
|
||||||
else:
|
else:
|
||||||
s = """%s has no docstring. If you're getting this message,
|
s = """%s has no docstring. If you're getting this message,
|
||||||
@ -539,7 +541,7 @@ class Regexp(Value):
|
|||||||
self.__parent.__init__(*args, **kwargs)
|
self.__parent.__init__(*args, **kwargs)
|
||||||
|
|
||||||
def error(self, e):
|
def error(self, e):
|
||||||
self.__parent.error('Value must be a regexp of the form %s' % e)
|
self.__parent.error('%s' % e)
|
||||||
|
|
||||||
def set(self, s):
|
def set(self, s):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user