Use new TextType

+ fix Property usage in tcp.py

Change-Id: I254ddfe30605298ce419667e9b1985df48ef824a
Reviewed-on: https://forge.frm2.tum.de/review/20952
Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de>
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
Enrico Faulhaber
2019-07-24 14:29:08 +02:00
parent c7c9403d1f
commit 125f0d83e9
3 changed files with 11 additions and 8 deletions

View File

@ -187,9 +187,12 @@ class TCPServer(HasProperties, socketserver.ThreadingTCPServer):
allow_reuse_address = True
properties = {
'bindto' : Property(StringType(), default='localhost:%d' % DEF_PORT, export=False),
'bindport' : Property(IntRange(1,65535), default=DEF_PORT, export=False),
'detailed_errors': Property(BoolType(), default=False, export=False),
'bindto' : Property('hostname or ip address for binding',StringType(),
default='localhost:%d' % DEF_PORT, export=False),
'bindport' : Property('port number to bind',IntRange(1,65535),
default=DEF_PORT, export=False),
'detailed_errors': Property('Flag to enable detailed Errorreporting.', BoolType(),
default=False, export=False),
}
# XXX: create configurables from Metaclass!