This pull request includes several changes to the oxt package, focusing on adding new properties, correcting documentation, and refining event handling. The most important changes are now when a Calc document is not a LibrePythonista Document it will not be modified. This is a fix for issue #26 .
New Properties and Configurations:
oxt/___lo_pip___/basic_config.py: Added new properties calc_props_json_name and lp_code_dir to the class, along with their corresponding getter methods. ([[1]](diffhunk://#diff-25419ee3394b39811cb5287148c79f3c625f2ef062225a08e6d5e590912fdcbcR53-R54), [[2]](diffhunk://#diff-25419ee3394b39811cb5287148c79f3c625f2ef062225a08e6d5e590912fdcbcR204-R212), [[3]](diffhunk://#diff-25419ee3394b39811cb5287148c79f3c625f2ef062225a08e6d5e590912fdcbcR376-R385))
oxt/___lo_pip___/config.py: Added new properties calc_props_json_name and lp_code_dir to the class, with their getter methods referencing the _basic_config object. ([[1]](diffhunk://#diff-3c50e67ebebe61c88aae2da986677a08cfb9cd154b66b1ed89acf2a84849d71bR735-R744), [[2]](diffhunk://#diff-3c50e67ebebe61c88aae2da986677a08cfb9cd154b66b1ed89acf2a84849d71bR781-R789))
Documentation Fixes:
oxt/___lo_pip___/basic_config.py: Corrected a typo in the docstring of the no_pip_remove method. ([oxt/___lo_pip___/basic_config.pyL227-R238](diffhunk://#diff-25419ee3394b39811cb5287148c79f3c625f2ef062225a08e6d5e590912fdcbcL227-R238))
Event Handling Enhancements:
oxt/ext_code/impl/py_impl.py: Added missing imports and enhanced event handling by integrating the PYC_FORMULA_ENTER event and refining the trigger method to handle various events more robustly. ([[1]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fL40-R44), [[2]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fL56-R58), [[3]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fL110-L118), [[4]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fR119-R120), [[5]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fR135-R138), [[6]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fL204), [[7]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L5-R12), [[8]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L32-L39), [[9]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4R59-L76), [[10]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4R83-L87), [[11]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L106-R146), [[12]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L149-R155), [[13]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L158-R164), [[14]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L167-R173))
These changes improve the configuration capabilities and event management within the oxt package, making it more robust and easier to maintain.
This pull request includes several changes to the
oxt
package, focusing on adding new properties, correcting documentation, and refining event handling. The most important changes are now when a Calc document is not a LibrePythonista Document it will not be modified. This is a fix for issue #26 .New Properties and Configurations:
oxt/___lo_pip___/basic_config.py
: Added new propertiescalc_props_json_name
andlp_code_dir
to the class, along with their corresponding getter methods. ([[1]](diffhunk://#diff-25419ee3394b39811cb5287148c79f3c625f2ef062225a08e6d5e590912fdcbcR53-R54)
,[[2]](diffhunk://#diff-25419ee3394b39811cb5287148c79f3c625f2ef062225a08e6d5e590912fdcbcR204-R212)
,[[3]](diffhunk://#diff-25419ee3394b39811cb5287148c79f3c625f2ef062225a08e6d5e590912fdcbcR376-R385)
)oxt/___lo_pip___/config.py
: Added new propertiescalc_props_json_name
andlp_code_dir
to the class, with their getter methods referencing the_basic_config
object. ([[1]](diffhunk://#diff-3c50e67ebebe61c88aae2da986677a08cfb9cd154b66b1ed89acf2a84849d71bR735-R744)
,[[2]](diffhunk://#diff-3c50e67ebebe61c88aae2da986677a08cfb9cd154b66b1ed89acf2a84849d71bR781-R789)
)Documentation Fixes:
oxt/___lo_pip___/basic_config.py
: Corrected a typo in the docstring of theno_pip_remove
method. ([oxt/___lo_pip___/basic_config.pyL227-R238](diffhunk://#diff-25419ee3394b39811cb5287148c79f3c625f2ef062225a08e6d5e590912fdcbcL227-R238)
)Event Handling Enhancements:
oxt/ext_code/impl/py_impl.py
: Added missing imports and enhanced event handling by integrating thePYC_FORMULA_ENTER
event and refining thetrigger
method to handle various events more robustly. ([[1]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fL40-R44)
,[[2]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fL56-R58)
,[[3]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fL110-L118)
,[[4]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fR119-R120)
,[[5]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fR135-R138)
,[[6]](diffhunk://#diff-299e127ae37a7548175c938356bcf477f4bc9b3560e0e45b5cdde13214eb6b1fL204)
,[[7]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L5-R12)
,[[8]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L32-L39)
,[[9]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4R59-L76)
,[[10]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4R83-L87)
,[[11]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L106-R146)
,[[12]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L149-R155)
,[[13]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L158-R164)
,[[14]](diffhunk://#diff-33c5fac24c811e05867f9226d353995d3d6e5e11f98196c3cc8e28b8965473b4L167-R173)
)These changes improve the configuration capabilities and event management within the
oxt
package, making it more robust and easier to maintain.