Commit Graph

34 Commits

Author SHA1 Message Date
Jed Reynolds
7bfc9ee7e0 lf_json_autogen.py: significant updates from the jag-2021-09-27 branch
- parameter types
- stand-alone request management
- session token
- expanded class hierarchy:
    BaseSession <- LFSession,
    LFBaseRequest <- JsonQuery <- LFJsonQuery
    LFBaseRequest <- JsonCommand <- LFJsonCommand

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-09-28 01:14:15 -07:00
Matthew Stidham
36400e003d Making it so that lanforge-scripts can work if the repository isn't named exactly the same way
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-17 15:29:15 -07:00
erinnerim
1d7578251c Updates to import statements:
- Import importlib, os, and sys to each python script.
 - Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
    sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
 - All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>
2021-09-15 16:17:16 -07:00
Jed Reynolds
ca63796db5 lf_json_autogen.py: adds column name help for many columns
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-13 15:38:14 -07:00
Jed Reynolds
652735990b lf_json_autogen.py: now has help text for port section
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-10 16:56:31 -07:00
Jed Reynolds
ff6d19fe8f lf_json_autogen.py: fixes warning about possibly undeclared variable
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-10 16:56:31 -07:00
Jed Reynolds
9f74fec635 lf_json_autogen.py: now has /probe url functionality
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-10 14:36:51 -07:00
Jed Reynolds
5ba8a5bfcf lf_json_autogen: adds help test, WIP
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-07 15:55:48 -07:00
Jed Reynolds
d50e0861f3 lf_json_autogen.py: WIP column help from tool tips
This should help nicely when it works.

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-01 00:00:31 -07:00
Jed Reynolds
894a120e65 lf_json_autogen.py: updated documentation and whitespace
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-17 15:45:23 -07:00
Jed Reynolds
d53bf1760c lf_json_autogen.py: changes post methods data dictionaries to avoid adding None items
These none items evaluate to null in the Http handlers and its more correct to not submit items lacking a value.

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-16 14:10:57 -07:00
Jed Reynolds
f686f848fb lf_json_autogen.py: updates flag computation:
- can use IntFlag refs and/or strings
- can clear flags now
- turns down debug messages

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-16 13:10:48 -07:00
Jed Reynolds
43e7afd882 GUI: JAG: fixes flaw parsing flag names when passed parameters were IntFlags
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-16 12:00:21 -07:00
Jed Reynolds
f5c68076df lf_json_autogen.py: the set_flags and clear_flags methods moved out of each enum class into the LFJsonPost class
Added parsing to test for string flag names, but flag enums by ref don't parse yet

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-13 17:52:50 -07:00
Jed Reynolds
9393d995fe lf_json_autogen.py: fixed bug with appending flags
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-13 17:52:50 -07:00
Jed Reynolds
9bfd09a292 lf_json_autogen.py: enum classes are re-worked to be stateless
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-13 11:57:34 -07:00
Jed Reynolds
630e7851e1 lf_json_autogen.py: passes PEP8 whitespace checks
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-12 17:35:56 -07:00
Jed Reynolds
22cb75b0d3 lf_json_autogen.py: now generated with most PEP8 recommended whitespace guidelines
This includes proper word-wrapping. This passes most checks using Idea's python checker.

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-12 17:35:56 -07:00
Jed Reynolds
b7c869c3a4 GUI: JAG: fixes an impressive number of lint warnings. Some lint warnings remain.
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-11 14:32:17 -07:00
Jed Reynolds
851139a514 lf_json_autogen.py: can now request port URLs 2021-08-06 12:35:09 -07:00
Jed Reynolds
6b87a0b9f7 lf_json_autogen.py: changes to EID -> URL generation, this will not compile yet 2021-08-06 11:52:01 -07:00
Jed Reynolds
499218f2e3 lf_json_autogen.py: adds logic to look for get parameters 'all' and 'list', processing still WIP
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-05 18:25:57 -07:00
Jed Reynolds
5141ab98d7 GUI: JAG: fixes indentation error
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-05 17:06:18 -07:00
Jed Reynolds
9ba4e6fe1d lf_json_autogen.py: fixes array and substring errors
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-05 15:29:20 -07:00
Jed Reynolds
609e1c13e9 lf_json_autogen.py: fixed syntax errors related to capture_signal_list
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-05 13:29:53 -07:00
Jed Reynolds
f3b36fa0ef lf_json_autogen.py: fixes imports; fixes incorrect declaration of selected_named_flag_map
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-05 12:35:24 -07:00
Jed Reynolds
d2d45d1205 lf_json_autogen: parameters now have comments that correspond to lfcli_ug
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-04 23:59:11 -07:00
Jed Reynolds
ab57bd8575 lf_json_autogen.py: fixes duplicate parameter classes; no more CLI alias commands
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-04 23:04:04 -07:00
Jed Reynolds
c1e805e826 lf_json_autogen: updated method headers, some parameters for methods are wrong
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-06-30 13:54:43 -07:00
Jed Reynolds
170ef3da94 lf_json_autogen.py: comments out imports that dont resolve; fixes some returns 2021-06-22 17:11:13 -07:00
Jed Reynolds
190e45f1fb JAG: enum values corrected to have API values, toggle values {0,1} no longer bit-flags, no enums items _name_like_this_
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-06-21 23:34:39 -07:00
Jed Reynolds
f8f1297450 JAG: updated Enums: parameters are more clearly strings, numerals or bit flags
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-06-21 21:36:41 -07:00
Jed Reynolds
137471ef0a updated lf_json_autogen.py
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-06-18 17:57:27 -07:00
Ben Greear
f711be6c6a py-json: Add auto-generated lf-json library.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-06-10 12:55:16 -07:00