Branch: refs/heads/master
Home: https://github.com/yast/yast-python-bindings
Commit: e064688fd288898285f13468403c3b5a15a764da
https://github.com/yast/yast-python-bindings/commit/e064688fd288898285f13468...
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: 43e4c4135bc2cca3e9fa0f08d54877c450c0d1e0
https://github.com/yast/yast-python-bindings/commit/43e4c4135bc2cca3e9fa0f08...
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: 787fc7092352bd6977254575d986e9f25757292d
https://github.com/yast/yast-python-bindings/commit/787fc7092352bd6977254575...
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: 71d323a67b600042f1f0b6f76055bc851b0c4d34
https://github.com/yast/yast-python-bindings/commit/71d323a67b600042f1f0b6f7...
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: d5a85f842cf164dfb4a93f5be1dd8739b8465329
https://github.com/yast/yast-python-bindings/commit/d5a85f842cf164dfb4a93f5b...
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: fc0b4032730e706c2d3c7f97dc2301b0880adc85
https://github.com/yast/yast-python-bindings/commit/fc0b4032730e706c2d3c7f97...
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: e6cfcdb9219ff83c3d0e2259d712497c34497f7b
https://github.com/yast/yast-python-bindings/commit/e6cfcdb9219ff83c3d0e2259...
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: b7df4b6c967761955ab99e9ac66dd48e9a8941b6
https://github.com/yast/yast-python-bindings/commit/b7df4b6c967761955ab99e9a...
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: 3b99657211c621aba707e0e4f25288f0fa17e0e4
https://github.com/yast/yast-python-bindings/commit/3b99657211c621aba707e0e4...
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: 954ae80ce45b3086d42614879afbf2a94353e251
https://github.com/yast/yast-python-bindings/commit/954ae80ce45b3086d4261487...
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: 378ae8a8fc4d760aebf143ff8baf6351f3e2d399
https://github.com/yast/yast-python-bindings/commit/378ae8a8fc4d760aebf143ff...
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: 8f5b07bf49e6906c83977603a0b0da4b8e688d11
https://github.com/yast/yast-python-bindings/commit/8f5b07bf49e6906c83977603...
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: bc8396034afcd3f2dfac069bb2599811d6cdb217
https://github.com/yast/yast-python-bindings/commit/bc8396034afcd3f2dfac069b...
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: e43ff296f5ebbb9b8d25cac0973d98ec2e32ed40
https://github.com/yast/yast-python-bindings/commit/e43ff296f5ebbb9b8d25cac0...
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: c9aed3c8c1d8d247edb8935676f1b0368c95332b
https://github.com/yast/yast-python-bindings/commit/c9aed3c8c1d8d247edb89356...
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: 8b4c3a376737d48b76e93bbffa2a9e5d8042e394
https://github.com/yast/yast-python-bindings/commit/8b4c3a376737d48b76e93bbf...
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: 775cef3e4d1e428d7d892272e3cb7aff3ea2413d
https://github.com/yast/yast-python-bindings/commit/775cef3e4d1e428d7d892272...
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: e635837ff104fb3d9e09cab9e1b63dd6fedf657d
https://github.com/yast/yast-python-bindings/commit/e635837ff104fb3d9e09cab9...
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: c021144e90b0d53799fb9fb985003afc62cddbfe
https://github.com/yast/yast-python-bindings/commit/c021144e90b0d53799fb9fb9...
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: beec86b9d3cdca3e7328caf4df20f62daf782f8c
https://github.com/yast/yast-python-bindings/commit/beec86b9d3cdca3e7328caf4...
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: 10c79954c03687b416b8f1ce49d6c520a66dd058
https://github.com/yast/yast-python-bindings/commit/10c79954c03687b416b8f1ce...
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: b744fbead9e292dfcea5f73362a7bbbe1a45d434
https://github.com/yast/yast-python-bindings/commit/b744fbead9e292dfcea5f733...
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: 452806ae31fc8b2acdb2cec61f9f0fb65218be44
https://github.com/yast/yast-python-bindings/commit/452806ae31fc8b2acdb2cec6...
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: 60ee955ebcdefc96fc26f710829f720d196e1deb
https://github.com/yast/yast-python-bindings/commit/60ee955ebcdefc96fc26f710...
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 #46 from noelpower/master_examples_fixup
Master examples fixup
Compare: https://github.com/yast/yast-python-bindings/compare/e33d39ed3f4d...60ee955e...