[yast/yast-python-bindings] f72ddd: make simple print statements python3 compatible
Branch: refs/heads/SLE-15-SP1 Home: https://github.com/yast/yast-python-bindings Commit: f72dddb3df7baec66c8e71e2a6ff301de67eaed8 https://github.com/yast/yast-python-bindings/commit/f72dddb3df7baec66c8e71e2... Author: Noel Power <noel.power@suse.com> Date: 2022-05-09 (Mon, 09 May 2022) Changed paths: M examples/MultiProgressMeter2.py M examples/Table-icons.py M examples/WidgetExists.py Log Message: ----------- make simple print statements python3 compatible maybe we should just convert these to y2debug statements Signed-off-by: Noel Power <noel.power@suse.com> Commit: e0c5073ef8a321d51fee6311505eb2f589a607f1 https://github.com/yast/yast-python-bindings/commit/e0c5073ef8a321d51fee6311... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/MultiProgressMeter2.py Log Message: ----------- currentUnitID is a tuple (make sure we access it as such) Signed-off-by: Noel Power <noel.power@suse.com> Commit: e632f56e3a17e33c3ad615b1fda6249ab7246b2b https://github.com/yast/yast-python-bindings/commit/e632f56e3a17e33c3ad615b1... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/Image1.py Log Message: ----------- Fix path to icon Signed-off-by: Noel Power <noel.power@suse.com> Commit: 5659281f97b3df558ee65279662e8b240cd5316e https://github.com/yast/yast-python-bindings/commit/5659281f97b3df558ee65279... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/HSquash1.py Log Message: ----------- Add content to HSquash1 Signed-off-by: Noel Power <noel.power@suse.com> Commit: 6dbc249845aab09b193b5b2bdabb8e8439f743ef https://github.com/yast/yast-python-bindings/commit/6dbc249845aab09b193b5b2b... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/ComboBox2.py Log Message: ----------- Fix bug in ComboBox2 Signed-off-by: Noel Power <noel.power@suse.com> Commit: afa0cb664155f73cb282c2b3ddaab0d1eadc25d2 https://github.com/yast/yast-python-bindings/commit/afa0cb664155f73cb282c2b3... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/BarGraph3.py Log Message: ----------- Bargraph3 use python2/python3 integer division operator '//' Signed-off-by: Noel Power <noel.power@suse.com> Commit: 2f6f03b47e9cc6d85dff5a12fc3b947eeba25341 https://github.com/yast/yast-python-bindings/commit/2f6f03b47e9cc6d85dff5a12... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/Tree-Checkbox4.py Log Message: ----------- Checkbox4 Add missing MinSize Signed-off-by: Noel Power <noel.power@suse.com> Commit: 6e14ba325ca04ffa9d1f082f4ba133aad5a37563 https://github.com/yast/yast-python-bindings/commit/6e14ba325ca04ffa9d1f082f... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/Tree-Checkbox2.py Log Message: ----------- Tree-Checkbox2 Fix size Signed-off-by: Noel Power <noel.power@suse.com> Commit: d403eb068823e9e3d4c7ad74ff3a53bdc808ff82 https://github.com/yast/yast-python-bindings/commit/d403eb068823e9e3d4c7ad74... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/Tree-Checkbox.py Log Message: ----------- Tree-Checkbox Add MinSize Signed-off-by: Noel Power <noel.power@suse.com> Commit: 0410117e864cddf0a3aba92ec3697667fd8e34cc https://github.com/yast/yast-python-bindings/commit/0410117e864cddf0a3aba92e... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/Table-icons.py Log Message: ----------- Table-icons: Handle None return from SCR avoid trying to iterate NoneType Traceback (most recent call last): File "/home/tux/yast-python-bindings/examples/Table-icons.py", line 96, in <module> TableIconsClient().main() File "/home/tux/yast-python-bindings/examples/Table-icons.py", line 34, in main iconList = readIconDir(iconBasePath + "/22x22/apps") File "/home/tux/yast-python-bindings/examples/Table-icons.py", line 79, in readIconDir iconList = list(SCR.Read(Path(".target.dir"), dir)) TypeError: 'NoneType' object is not iterable Signed-off-by: Noel Power <noel.power@suse.com> Commit: ea0c7b8098e8941ee1a948e7e3a7e5805b6ab922 https://github.com/yast/yast-python-bindings/commit/ea0c7b8098e8941ee1a948e7... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/SlideShowDemo2.py Log Message: ----------- SlidShowDemo2 Fix integer division python2/python3 Signed-off-by: Noel Power <noel.power@suse.com> Commit: 32b2c4b9fa7d4a1fe5c1b2d3eecd691ce79b1ba1 https://github.com/yast/yast-python-bindings/commit/32b2c4b9fa7d4a1fe5c1b2d3... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/SlideShowDemo.py Log Message: ----------- SlideShowDemo fix integer division Signed-off-by: Noel Power <noel.power@suse.com> Commit: f41b9138958cde2c71de249c00abe4bf2399e495 https://github.com/yast/yast-python-bindings/commit/f41b9138958cde2c71de249c... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/ShortcutConflict5.py Log Message: ----------- ShortcutConflict5 Opt.get(event) doesn't exist, event is just a map Signed-off-by: Noel Power <noel.power@suse.com> Commit: 46be4b0fdbf01d751ba66fa3e8e0d6de0dd75c50 https://github.com/yast/yast-python-bindings/commit/46be4b0fdbf01d751ba66fa3... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/MultiSelectionBox3.py Log Message: ----------- MultiSelection3 Use Symbol for selected items Looks like we need to disambiguate ChangeWidget expecting a YCPList or something to a YCPList of Symbols, by default if we don't have more details function type info we just convert the python list of strings to a YCPList of YCPString(s) Signed-off-by: Noel Power <noel.power@suse.com> squash Commit: 3b9e9cc17f476663f9914d6d3b5b3fef7df7e0cc https://github.com/yast/yast-python-bindings/commit/3b9e9cc17f476663f9914d6d... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/Wizard3.py Log Message: ----------- Wizard3: Fix bug in adding BaseInstallation steps Signed-off-by: Noel Power <noel.power@suse.com> Commit: e09c383caacb7684b5bb1ea7576226c73b1f5331 https://github.com/yast/yast-python-bindings/commit/e09c383caacb7684b5bb1ea7... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/Tree-recursive-large.py Log Message: ----------- Tree-recursive-large: Fix mixed tab/spaces error Signed-off-by: Noel Power <noel.power@suse.com> Commit: 81fd98b7d1eb483a5cb5d6e90c1b99d144714d3a https://github.com/yast/yast-python-bindings/commit/81fd98b7d1eb483a5cb5d6e9... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M src/ytypes.i Log Message: ----------- Fix core when None is passed to some YCP functions e.g. examples/Table1.py has Table( Header( "\u00C4nerhe\u00DF", "\u00C4\u00DF\u00F6\u00F6\u00E4\u00E4\u00E4\u00E4\u00E4" ), [ Item( Id('1'), "\u011B\u0161\u010D\u0159\u017E\u00FD\u00E1\u00ED\u02C7", 6 ), => Item(Id(2), "\u011B\u0161\u0159\u017E", None), Item(Id(3), "\u00C4nder\u00DF\u00DF\u00DF", 8), where the value of the TableItem is passed None, this results in the following core (gdb) where #0 YCPValueRep::isTerm() const (this=0x0) at YCPValue.cc:70 #1 0x00007ffff48c1974 in YCPTableItemParser::parseTableItem(YCPTerm const&) (itemTerm=...) at YCPTableItemParser.cc:117 #2 0x00007ffff48c13e0 in YCPTableItemParser::parseTableItemList(YCPList const&) (itemList=...) at YCPTableItemParser.cc:60 #3 0x00007ffff489ad44 in YCPDialogParser::parseTable(YWidget*, YWidgetOpt&, YCPTerm const&, YCPList const&, int) (parent=parent@entry=0x7fffe840ee30, opt=..., term=..., optList=..., argnr=0) at YCPDialogParser.cc:2604 #4 0x00007ffff48b151d in YCPDialogParser::parseWidgetTreeTerm(YWidget*, YWidgetOpt&, YCPTerm const&) (p=p@entry=0x7fffe840ee30, opt=..., term=...) at YCPDialogParser.cc:311 #5 0x00007ffff48b1c9a in YCPDialogParser::parseWidgetTreeTerm(YWidget*, YCPTerm const&) (parent=parent@entry=0x7fffe840ee30, term=...) at YCPDialogParser.cc:413 #6 0x00007ffff48b373a in YCPDialogParser::parseMinSize(YWidget*, YWidgetOpt&, YCPTerm const&, YCPList const&, int, bool, bool) (parent=parent@entry=0x7fffe831eab0, opt=..., term=..., optList=..., argnr=<optimized out>, hor=<optimized out>, vert=true) at YCPDialogParser.cc:713 so it appears the correct translation for Py_None is YCP_Void() rather than YCP_Null() Signed-off-by: Noel Power <noel.power@suse.com> Commit: 30b5fb91ad4f387ce5a70d80b123ebd8c6e7cd39 https://github.com/yast/yast-python-bindings/commit/30b5fb91ad4f387ce5a70d80... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/Label1_cs.py M examples/Label1_de.py M examples/Label1_ja.py M examples/Label2_ml.py M examples/RichText1_cs.py M examples/SetLanguage.py M examples/ShortcutConflict6.py M examples/Table1_utf8.py Log Message: ----------- Ensure examples really pass unicode (use 'u' prefix) Strings are default unicode in python3 not so in python2, for strings that really are unicode we need to use the prefix so they really are passed as unicode in py2. Signed-off-by: Noel Power <noel.power@suse.com> Commit: 9c7be3bdb9c21ee93060a838cc03d09ef96e131c https://github.com/yast/yast-python-bindings/commit/9c7be3bdb9c21ee93060a838... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M src/ytypes.i Log Message: ----------- Ensure python2 examples passing unicode strings work e.g. Table1_utf8.py Label1_de.py Label1_ja.py Signed-off-by: Noel Power <noel.power@suse.com> Commit: e176d86d2ea8450b89cae9f72498616f8c8b577f https://github.com/yast/yast-python-bindings/commit/e176d86d2ea8450b89cae9f7... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/ShortcutConflict5.py Log Message: ----------- ShortcurConflict5 Fix "Invalid arguments for the Wizard widget" UI.OpenDialog( Opt("defaultsize"), Wizard("back", "&Back", "abort", "&Abort", "next", "&Next") errors out with "Invalid arguments for the Wizard widget" we should be using Symbol("back") etc. as is used in Wizard1.py ShortcutConflics5.rb just uses ':back' (which is equiv to Symbol("back")) Signed-off-by: Noel Power <noel.power@suse.com> Commit: 70014d50dfebdb2fc322c2ead2a392812fdf2bc2 https://github.com/yast/yast-python-bindings/commit/70014d50dfebdb2fc322c2ea... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/ShortcutConflict5.py Log Message: ----------- ShortcutConflict5: Ensure we got the key 'ID' for event Signed-off-by: Noel Power <noel.power@suse.com> Commit: c5563e4e9d8acffc534d6473b0f4a13fc409a4ed https://github.com/yast/yast-python-bindings/commit/c5563e4e9d8acffc534d6473... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M examples/DefaultButtons1.py M examples/DefaultButtons2.py M examples/DefaultButtons3.py M examples/PatternSelector-wizard-with-packages.py M examples/SlideShowDemo.py M examples/SlideShowDemo2.py Log Message: ----------- Wizard should use 'Symbol' instead of 'Id' To match Ruby examples e.g. Wizard(:back, "&back",.....) etc. we should use Wizard(Symbol("back", "&back",.....) etc. as the argument doesn't get automatically translated Signed-off-by: Noel Power <noel.power@suse.com> Commit: 592f5a7216f7c90ead96c7b0ac21dfc07c35fed9 https://github.com/yast/yast-python-bindings/commit/592f5a7216f7c90ead96c7b0... Author: Noel Power <noel.power@suse.com> Date: 2022-05-20 (Fri, 20 May 2022) Changed paths: M package/yast2-python-bindings.changes M package/yast2-python-bindings.spec Log Message: ----------- SUSE: Update changelog and version Signed-off-by: Noel Power <noel.power@suse.com> Commit: 2e03876014fe708f0d252163fa0fb5428f6ddda0 https://github.com/yast/yast-python-bindings/commit/2e03876014fe708f0d252163... Author: David Mulder <dmulder@suse.com> Date: 2022-07-15 (Fri, 15 Jul 2022) Changed paths: M examples/BarGraph3.py M examples/ComboBox2.py M examples/DefaultButtons1.py M examples/DefaultButtons2.py M examples/DefaultButtons3.py M examples/HSquash1.py M examples/Image1.py M examples/Label1_cs.py M examples/Label1_de.py M examples/Label1_ja.py M examples/Label2_ml.py M examples/MultiProgressMeter2.py M examples/MultiSelectionBox3.py M examples/PatternSelector-wizard-with-packages.py M examples/RichText1_cs.py M examples/SetLanguage.py M examples/ShortcutConflict5.py M examples/ShortcutConflict6.py M examples/SlideShowDemo.py M examples/SlideShowDemo2.py M examples/Table-icons.py M examples/Table1_utf8.py M examples/Tree-Checkbox.py M examples/Tree-Checkbox2.py M examples/Tree-Checkbox4.py M examples/Tree-recursive-large.py M examples/WidgetExists.py M examples/Wizard3.py M package/yast2-python-bindings.changes M package/yast2-python-bindings.spec M src/ytypes.i Log Message: ----------- Merge pull request #42 from noelpower/sle15-sp1_examples_fixup Sle15 sp1 examples fixup Compare: https://github.com/yast/yast-python-bindings/compare/2bcda81554bf...2e038760...
participants (1)
-
David Mulder