Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Tiny fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienLelaquais committed Jun 23, 2023
1 parent f203a91 commit 6ff25c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/taipy/gui/gui_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ def get_user_content_url(
state (State^): The current user state as received in any callback.
path: An optional additional path to the URL.
params: An optional dictionary sent to the *on_user_content* callback.<br/>
These arguments are added as query parameters to the generated URL and converted into
strings.
These arguments are added as query parameters to the generated URL and converted into
strings.
Returns:
An URL that, when queried, triggers the `on_user_content()^` callback.
An URL that, when queried, triggers the *on_user_content* callback.
"""
if state and isinstance(state._gui, Gui):
return state._gui._get_user_content_url(path, params)
Expand Down
10 changes: 5 additions & 5 deletions src/taipy/gui/utils/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from ..gui import Gui


def modifiedHandleResponseEnd(self):
def _modifiedHandleResponseEnd(self):
if self._finished:
return
self._finished = True
Expand All @@ -35,10 +35,10 @@ def modifiedHandleResponseEnd(self):
self.transport.loseConnection()


setattr(ProxyClient, "handleResponseEnd", modifiedHandleResponseEnd)
setattr(ProxyClient, "handleResponseEnd", _modifiedHandleResponseEnd)


class TaipyReverseProxyResource(Resource):
class _TaipyReverseProxyResource(Resource):
proxyClientFactoryClass = ProxyClientFactory

def __init__(self, host, path, gui: "Gui", reactor=reactor):
Expand All @@ -49,7 +49,7 @@ def __init__(self, host, path, gui: "Gui", reactor=reactor):
self._gui = gui

def getChild(self, path, request):
return TaipyReverseProxyResource(
return _TaipyReverseProxyResource(
self.host,
self.path + b"/" + urlquote(path, safe=b"").encode("utf-8"),
self._gui,
Expand Down Expand Up @@ -87,7 +87,7 @@ def run(self):
if self._is_running:
return
self._is_running = True
site = Site(TaipyReverseProxyResource(self._gui._get_config("host", "127.0.0.1"), b"", self._gui))
site = Site(_TaipyReverseProxyResource(self._gui._get_config("host", "127.0.0.1"), b"", self._gui))
reactor.listenTCP(self._listening_port, site)
Thread(target=reactor.run, args=(False,)).start()

Expand Down

0 comments on commit 6ff25c2

Please sign in to comment.