Bug 308213

Summary: yast2-python-bindings has cumbersome call syntax
Product: [openSUSE] openSUSE 10.3 Reporter: Martin Vidner <mvidner>
Component: YaST2Assignee: Jozef Uhliarik <juhliarik>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None    
Version: Beta 3   
Target Milestone: ---   
Hardware: All   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Martin Vidner 2007-09-06 13:32:22 UTC
Currently one must write:
  ycp.run("UI", "AskForExistingDirectory", "/", "Where Is My Home?")
instead of the natural
  UI.AskForExistingDirectory("/", "Where Is My Home?")

It is because a YaST Namespace lacks a method to enumerate all its functions.
That will be a simple addition to yast2-core, not affecting other code.

yast2-python-bindings is currently a leaf package.
Comment 1 Martin Vidner 2007-09-06 15:51:31 UTC
I have submitted yast2-core-2.15.11 with a new API SymbolTable::forEach.
Now y-p-b can use it.
Comment 2 Jozef Uhliarik 2007-09-14 16:24:22 UTC
this is fixed in new version of yast2-python-bindings 2.15.3