pywebexec 1.5.7__py3-none-any.whl → 1.5.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pywebexec/pywebexec.py CHANGED
@@ -323,8 +323,8 @@ def print_urls(command_id=None):
323
323
  if token:
324
324
  url_params = f"?token={token}"
325
325
  if command_id:
326
- print(f"{protocol}://{hostname}:{args.port}/popup/{command_id}{url_params}")
327
- print(f"{protocol}://{ip}:{args.port}/popup/{command_id}{url_params}")
326
+ print(f"{protocol}://{hostname}:{args.port}/dopopup/{command_id}{url_params}")
327
+ print(f"{protocol}://{ip}:{args.port}/dopopup/{command_id}{url_params}")
328
328
  else:
329
329
  print(f"{protocol}://{hostname}:{args.port}{url_params}")
330
330
  print(f"{protocol}://{ip}:{args.port}{url_params}")
@@ -750,6 +750,23 @@ def list_executables():
750
750
  def popup(command_id):
751
751
  return render_template('popup.html', command_id=command_id)
752
752
 
753
+ @app.route('/dopopup/<command_id>')
754
+ def do_popup(command_id):
755
+ return f"""
756
+ <html>
757
+ <head>
758
+ <script type="text/javascript">
759
+ window.onload = function() {{
760
+ window.open('/popup/{command_id}', '_blank', 'width=1000,height=600');
761
+ window.close();
762
+ }};
763
+ </script>
764
+ </head>
765
+ <body>
766
+ </body>
767
+ </html>
768
+ """
769
+
753
770
  def main():
754
771
  global COMMAND_STATUS_DIR
755
772
  basef = f"{CONFDIR}/pywebexec_{args.listen}:{args.port}"
pywebexec/version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.5.7'
16
- __version_tuple__ = version_tuple = (1, 5, 7)
15
+ __version__ = version = '1.5.8'
16
+ __version_tuple__ = version_tuple = (1, 5, 8)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.5.7
3
+ Version: 1.5.8
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -1,6 +1,6 @@
1
1
  pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
2
- pywebexec/pywebexec.py,sha256=IhnPrlALh0AEVlXuLkuF3dDTlyYGo7V6Qk9yPGOdA-4,28498
3
- pywebexec/version.py,sha256=jkie6KdeyTtWz2pwf-7E0aqaoGeRIkJAKMY8HAO1zV0,411
2
+ pywebexec/pywebexec.py,sha256=NmetF1ZQ7LsgmXDZwlwa2q05oXduVfh1AiOkKOu5HN8,28893
3
+ pywebexec/version.py,sha256=bpyG2JPTJKDi28Mtx907aomd5KtqHfk_t3lAAZFZAGk,411
4
4
  pywebexec/static/css/Consolas NF.ttf,sha256=DJEOzF0eqZ-kxu3Gs_VE8X0NJqiobBzmxWDGpdgGRxI,1313900
5
5
  pywebexec/static/css/style.css,sha256=OM-gJPLw0DcJwMgMXHDKc_9C87LYNu3bHssx_UtXi1Y,7273
6
6
  pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
@@ -32,9 +32,9 @@ pywebexec/static/js/xterm/xterm.js.map,sha256=Y7O2Pb-fIS7Z8AC1D5s04_aiW_Jf1f4mCf
32
32
  pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  pywebexec/templates/index.html,sha256=XaT2IU7GcRj3iV-GmDPo8aghsYiUGxSH3kvPFzhaM2Y,2695
34
34
  pywebexec/templates/popup.html,sha256=NrOFx_Qy4wyYh14BiDD_WRnFURr_WvlvEu3cOGD5JO8,1319
35
- pywebexec-1.5.7.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
36
- pywebexec-1.5.7.dist-info/METADATA,sha256=Ig7UTdkaglxy5PjmuEYXGXSTAkNnbpJisC7SyZIE-a8,7801
37
- pywebexec-1.5.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
38
- pywebexec-1.5.7.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
39
- pywebexec-1.5.7.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
40
- pywebexec-1.5.7.dist-info/RECORD,,
35
+ pywebexec-1.5.8.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
36
+ pywebexec-1.5.8.dist-info/METADATA,sha256=4uirNpcA6_97b7TO9uYp9oD77el8lDAbbGZx9y91oOk,7801
37
+ pywebexec-1.5.8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
38
+ pywebexec-1.5.8.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
39
+ pywebexec-1.5.8.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
40
+ pywebexec-1.5.8.dist-info/RECORD,,