Skip to content

Commit

Permalink
Revert "fix plugin_upload"
Browse files Browse the repository at this point in the history
This reverts commit 3394361.
  • Loading branch information
KatKatKateryna committed Jul 5, 2023
1 parent 3394361 commit eb3aef3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin_utils/plugin_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ def main(parameters, arguments):
server = xmlrpc.client.ServerProxy(address, verbose=VERBOSE)

try:
print(arguments[0])
print(server)
print(server.plugin)
with open(arguments[0], 'rb') as handle:
print(handle)
print(handle.read())
print(xmlrpc.client.Binary(handle.read()))
plugin_id, version_id = server.plugin.upload(
xmlrpc.client.Binary(handle.read()))
print("Plugin ID: %s" % plugin_id)
Expand Down

0 comments on commit eb3aef3

Please sign in to comment.