Skip to content

Commit aa9c887

Browse files
AetherUnboundlabkey-nicka
authored andcommitted
Add __repr__ for ServerContext (#17)
1 parent 97fa52e commit aa9c887

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

labkey/utils.py

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ def __init__(self, **kwargs):
4949
else:
5050
self._scheme = 'http://'
5151

52+
def __repr__(self):
53+
return '<ServerContext [ {} | {} | {} ]>'.format(self._domain,
54+
self._context_path,
55+
self._container_path)
56+
5257
def build_url(self, controller, action, container_path=None):
5358
# type: (self, str, str, str) -> str
5459
sep = '/'

0 commit comments

Comments
 (0)