easycoder 250622.2__py2.py3-none-any.whl → 250714.1__py2.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.
Potentially problematic release.
This version of easycoder might be problematic. Click here for more details.
- easycoder/__init__.py +1 -1
- easycoder/ec_core.py +14 -4
- easycoder/ec_pyside.py +11 -7
- {easycoder-250622.2.dist-info → easycoder-250714.1.dist-info}/METADATA +1 -1
- {easycoder-250622.2.dist-info → easycoder-250714.1.dist-info}/RECORD +8 -8
- {easycoder-250622.2.dist-info → easycoder-250714.1.dist-info}/LICENSE +0 -0
- {easycoder-250622.2.dist-info → easycoder-250714.1.dist-info}/WHEEL +0 -0
- {easycoder-250622.2.dist-info → easycoder-250714.1.dist-info}/entry_points.txt +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
|
@@ -1546,6 +1546,7 @@ class Core(Handler):
|
|
|
1546
1546
|
user = self.getRuntimeValue(command['user'])
|
|
1547
1547
|
password = self.getRuntimeValue(command['password'])
|
|
1548
1548
|
ssh = paramiko.SSHClient()
|
|
1549
|
+
target['ssh'] = ssh
|
|
1549
1550
|
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
1550
1551
|
ssh.connect(host, username=user, password=password)
|
|
1551
1552
|
target['sftp'] = ssh.open_sftp()
|
|
@@ -1941,9 +1942,10 @@ class Core(Handler):
|
|
|
1941
1942
|
value['type'] = 'module'
|
|
1942
1943
|
return value
|
|
1943
1944
|
|
|
1944
|
-
if keyword
|
|
1945
|
+
if keyword in ['ssh', 'variable']:
|
|
1945
1946
|
value['type'] = 'symbol'
|
|
1946
1947
|
return value
|
|
1948
|
+
|
|
1947
1949
|
return None
|
|
1948
1950
|
|
|
1949
1951
|
value['type'] = token
|
|
@@ -2535,9 +2537,17 @@ class Core(Handler):
|
|
|
2535
2537
|
return value
|
|
2536
2538
|
|
|
2537
2539
|
# This is used by the expression evaluator to get the value of a symbol
|
|
2538
|
-
def v_symbol(self,
|
|
2539
|
-
|
|
2540
|
+
def v_symbol(self, value):
|
|
2541
|
+
name = value['name']
|
|
2542
|
+
symbolRecord = self.program.getSymbolRecord(name)
|
|
2543
|
+
keyword = symbolRecord['keyword']
|
|
2544
|
+
if keyword == 'variable':
|
|
2540
2545
|
return self.getSymbolValue(symbolRecord)
|
|
2546
|
+
elif keyword == 'ssh':
|
|
2547
|
+
v = {}
|
|
2548
|
+
v['type'] = 'boolean'
|
|
2549
|
+
v['content'] = True if 'ssh' in symbolRecord else False
|
|
2550
|
+
return v
|
|
2541
2551
|
else:
|
|
2542
2552
|
return None
|
|
2543
2553
|
|
|
@@ -2720,7 +2730,7 @@ class Core(Handler):
|
|
|
2720
2730
|
condition.type = 'is'
|
|
2721
2731
|
condition.value2 = self.getValue()
|
|
2722
2732
|
return condition
|
|
2723
|
-
|
|
2733
|
+
|
|
2724
2734
|
if condition.value1:
|
|
2725
2735
|
# It's a boolean if
|
|
2726
2736
|
condition.type = 'boolean'
|
easycoder/ec_pyside.py
CHANGED
|
@@ -326,10 +326,9 @@ class Graphics(Handler):
|
|
|
326
326
|
if self.peek() == 'title':
|
|
327
327
|
self.nextToken()
|
|
328
328
|
title = self.nextValue()
|
|
329
|
-
elif self.peek() == '
|
|
329
|
+
elif self.peek() == 'type':
|
|
330
330
|
self.nextToken()
|
|
331
|
-
|
|
332
|
-
command['layout'] = self.getSymbolRecord()['name']
|
|
331
|
+
command['type'] = self.nextToken()
|
|
333
332
|
else: break
|
|
334
333
|
command['title'] = title
|
|
335
334
|
self.add(command)
|
|
@@ -462,14 +461,18 @@ class Graphics(Handler):
|
|
|
462
461
|
return self.nextPC()
|
|
463
462
|
|
|
464
463
|
def r_createDialog(self, command, record):
|
|
465
|
-
layout = self.getVariable(command['layout'])['widget']
|
|
466
464
|
dialog = QDialog()
|
|
465
|
+
mainLayout = QVBoxLayout(dialog)
|
|
467
466
|
dialog.setWindowTitle(self.getRuntimeValue(command['title']))
|
|
467
|
+
dialogType = command['type']
|
|
468
|
+
if dialogType in ['lineinput']:
|
|
469
|
+
if dialogType == 'lineinput':
|
|
470
|
+
input = QLineEdit()
|
|
471
|
+
mainLayout.addWidget(input)
|
|
468
472
|
dialog.buttonBox = QDialogButtonBox((QDialogButtonBox.Ok | QDialogButtonBox.Cancel))
|
|
469
473
|
dialog.buttonBox.accepted.connect(dialog.accept)
|
|
470
474
|
dialog.buttonBox.rejected.connect(dialog.reject)
|
|
471
|
-
|
|
472
|
-
dialog.setLayout(layout)
|
|
475
|
+
mainLayout.addWidget(dialog.buttonBox, alignment=Qt.AlignHCenter)
|
|
473
476
|
record['dialog'] = dialog
|
|
474
477
|
return self.nextPC()
|
|
475
478
|
|
|
@@ -948,7 +951,8 @@ class Graphics(Handler):
|
|
|
948
951
|
window.show()
|
|
949
952
|
elif 'dialog' in command:
|
|
950
953
|
dialog = self.getVariable(command['dialog'])['dialog']
|
|
951
|
-
dialog.exec()
|
|
954
|
+
result = dialog.exec()
|
|
955
|
+
# TODO: Finish the dialog box for getting the request relay name
|
|
952
956
|
return self.nextPC()
|
|
953
957
|
|
|
954
958
|
# Start the graphics
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250714.1
|
|
4
4
|
Summary: Rapid scripting in English
|
|
5
5
|
Keywords: compiler,scripting,prototyping,programming,coding,python,low code,hypertalk,computer language,learn to code
|
|
6
6
|
Author-email: Graham Trott <gtanyware@gmail.com>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
|
|
2
|
-
easycoder/__init__.py,sha256=
|
|
2
|
+
easycoder/__init__.py,sha256=YXMrF9XJdrVE65FsvptHPpqon4WNYMFRLcCzGO89FQM,262
|
|
3
3
|
easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
|
|
4
4
|
easycoder/ec_compiler.py,sha256=9byLqJZgMHAyFFyD8eGhY77oTsY1GY1aVcVrU4JAbd4,5287
|
|
5
5
|
easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
|
|
6
|
-
easycoder/ec_core.py,sha256=
|
|
6
|
+
easycoder/ec_core.py,sha256=UHqQtG9LGVP8mfWY3OIr_jdphPB8R9kExiG7ycNYeTk,99557
|
|
7
7
|
easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
|
|
8
8
|
easycoder/ec_program.py,sha256=IDpfq9oghFJMJyRD9uab31VOP5MOF4M7kcUVfDn7d4I,9992
|
|
9
|
-
easycoder/ec_pyside.py,sha256
|
|
9
|
+
easycoder/ec_pyside.py,sha256=kmMJgRbpIwC7sQlvaAXhl_NpFGCKwjkUACkfbE0XM7k,40440
|
|
10
10
|
easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
|
|
11
11
|
easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
|
|
12
|
-
easycoder-
|
|
13
|
-
easycoder-
|
|
14
|
-
easycoder-
|
|
15
|
-
easycoder-
|
|
16
|
-
easycoder-
|
|
12
|
+
easycoder-250714.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
13
|
+
easycoder-250714.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
14
|
+
easycoder-250714.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
|
|
15
|
+
easycoder-250714.1.dist-info/METADATA,sha256=mny4_cyzq7IRs9KXImnQ-EnfAVi8a4bNu9x_CwdEYiA,6875
|
|
16
|
+
easycoder-250714.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|