Branch: refs/heads/SLE-15-SP2
Home: https://github.com/yast/yast-python-bindings
Commit: 0cee569bcec7b4f6cb63fb35774b80e59a9ffe21
https://github.com/yast/yast-python-bindings/commit/0cee569bcec7b4f6cb63fb35...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: 4b6a3f39686992a67d649a441c6f7aa8ac393c7b
https://github.com/yast/yast-python-bindings/commit/4b6a3f39686992a67d649a44...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/MultiProgressMeter2.py
Log Message:
-----------
currentUnitID is a tuple (make sure we access it as such)
Signed-off-by: Noel Power
Commit: bac2f7a7265c99e3cdc46b36b073a09df575cd27
https://github.com/yast/yast-python-bindings/commit/bac2f7a7265c99e3cdc46b36...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/Image1.py
Log Message:
-----------
Fix path to icon
Signed-off-by: Noel Power
Commit: 529324f333766156894733222b66506a0abccbfc
https://github.com/yast/yast-python-bindings/commit/529324f33376615689473322...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/HSquash1.py
Log Message:
-----------
Add content to HSquash1
Signed-off-by: Noel Power
Commit: 8fb36b81e6bc342cfe4dd716a7d34c6064d7b1e0
https://github.com/yast/yast-python-bindings/commit/8fb36b81e6bc342cfe4dd716...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/ComboBox2.py
Log Message:
-----------
Fix bug in ComboBox2
Signed-off-by: Noel Power
Commit: 09f7991887f6b78e7502154bf8218d0beb5de002
https://github.com/yast/yast-python-bindings/commit/09f7991887f6b78e7502154b...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/BarGraph3.py
Log Message:
-----------
Bargraph3 use python2/python3 integer division operator '//'
Signed-off-by: Noel Power
Commit: 299680ec458c0d72fd10d0d48cd72f3ec0939a64
https://github.com/yast/yast-python-bindings/commit/299680ec458c0d72fd10d0d4...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/Tree-Checkbox4.py
Log Message:
-----------
Checkbox4 Add missing MinSize
Signed-off-by: Noel Power
Commit: 9df0f49db11299bfdbf3c8727404c99b5c6277f2
https://github.com/yast/yast-python-bindings/commit/9df0f49db11299bfdbf3c872...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/Tree-Checkbox2.py
Log Message:
-----------
Tree-Checkbox2 Fix size
Signed-off-by: Noel Power
Commit: 6fae622b1d07d861228a51629d77e31d393caec3
https://github.com/yast/yast-python-bindings/commit/6fae622b1d07d861228a5162...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/Tree-Checkbox.py
Log Message:
-----------
Tree-Checkbox Add MinSize
Signed-off-by: Noel Power
Commit: 42f1eb7ce97ecad0e92981f13ee14fde1480da84
https://github.com/yast/yast-python-bindings/commit/42f1eb7ce97ecad0e92981f1...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: f67f496ceb9c362ac1d5caa755c32e13b9ea8846
https://github.com/yast/yast-python-bindings/commit/f67f496ceb9c362ac1d5caa7...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/SlideShowDemo2.py
Log Message:
-----------
SlidShowDemo2 Fix integer division python2/python3
Signed-off-by: Noel Power
Commit: 633d7d30835dee2e4f36033c9d7aed970db214bc
https://github.com/yast/yast-python-bindings/commit/633d7d30835dee2e4f36033c...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/SlideShowDemo.py
Log Message:
-----------
SlideShowDemo fix integer division
Signed-off-by: Noel Power
Commit: 9704153f797bf66b28fba06fac5e1ed7ce2880e3
https://github.com/yast/yast-python-bindings/commit/9704153f797bf66b28fba06f...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: 6e195dc3a1fc1303f766e869129bd82544d12d47
https://github.com/yast/yast-python-bindings/commit/6e195dc3a1fc1303f766e869...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
squash
Commit: f249109089458390f560167af8410a62af9acf89
https://github.com/yast/yast-python-bindings/commit/f249109089458390f560167a...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/Wizard3.py
Log Message:
-----------
Wizard3: Fix bug in adding BaseInstallation steps
Signed-off-by: Noel Power
Commit: ac025459574be1676f5fd9d2346536e7a1b02ea8
https://github.com/yast/yast-python-bindings/commit/ac025459574be1676f5fd9d2...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/Tree-recursive-large.py
Log Message:
-----------
Tree-recursive-large: Fix mixed tab/spaces error
Signed-off-by: Noel Power
Commit: 4d5d51b1149cedf14fe5fc07527442093f9aada5
https://github.com/yast/yast-python-bindings/commit/4d5d51b1149cedf14fe5fc07...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: ba039749377ea61c8aa52aba75cab1ae6106b423
https://github.com/yast/yast-python-bindings/commit/ba039749377ea61c8aa52aba...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: a09da45f6e33db3d7955d7d50fc6f607bd2dfc8a
https://github.com/yast/yast-python-bindings/commit/a09da45f6e33db3d7955d7d5...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: 5c947cd37e70e22f4389d885ed04033ce888c364
https://github.com/yast/yast-python-bindings/commit/5c947cd37e70e22f4389d885...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: a7f4da40122ee6d902c3c13f06978fec8cc0ea58
https://github.com/yast/yast-python-bindings/commit/a7f4da40122ee6d902c3c13f...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M examples/ShortcutConflict5.py
Log Message:
-----------
ShortcutConflict5: Ensure we got the key 'ID' for event
Signed-off-by: Noel Power
Commit: 01b25c9727152dc71e1c664451a61d4d0d5d3213
https://github.com/yast/yast-python-bindings/commit/01b25c9727152dc71e1c6644...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: f27223f1ba1651da00d66f5c3e42b8443637d9d1
https://github.com/yast/yast-python-bindings/commit/f27223f1ba1651da00d66f5c...
Author: Noel Power
Date: 2023-02-08 (Wed, 08 Feb 2023)
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
Commit: 74bbfc9ded4b112159681b8371beeec8aab8ff8e
https://github.com/yast/yast-python-bindings/commit/74bbfc9ded4b112159681b83...
Author: David Mulder
Date: 2023-02-23 (Thu, 23 Feb 2023)
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 #44 from noelpower/SLE15-SP2-example-fixes
Sle15 sp2 example fixes
Compare: https://github.com/yast/yast-python-bindings/compare/ffb87ad4f289...74bbfc9d...