Mailinglist Archive: yast-commit (864 mails)
| < Previous | Next > |
[yast-commit] r42071 - in /trunk/python-bindings: doc/python-bindings package/yast2-python-bindings.changes src/Makefile.am src/YCPDeclarations.h
- From: juhliarik@xxxxxxxxxxxxxxxx
- Date: Thu, 15 Nov 2007 11:54:32 -0000
- Message-id: <20071115115432.996C0313EC@xxxxxxxxxxxxxxxx>
Author: juhliarik
Date: Thu Nov 15 12:54:32 2007
New Revision: 42071
URL: http://svn.opensuse.org/viewcvs/yast?rev=42071&view=rev
Log:
new version 2.16.0
Modified:
trunk/python-bindings/doc/python-bindings
trunk/python-bindings/package/yast2-python-bindings.changes
trunk/python-bindings/src/Makefile.am
trunk/python-bindings/src/YCPDeclarations.h
Modified: trunk/python-bindings/doc/python-bindings
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/doc/python-bindings?rev=42071&r1=42070&r2=42071&view=diff
==============================================================================
--- trunk/python-bindings/doc/python-bindings (original)
+++ trunk/python-bindings/doc/python-bindings Thu Nov 15 12:54:32 2007
@@ -46,7 +46,7 @@
+>>> ycp.import_module('test')
True
2. How to call UI from YaST in Python
=====================================
-- there is important function: ycp.init_ui("qt")
+- there is important function: ycp.init_ui('qt')
that initialize UI from YaST
Python 2.5.1 (r251:54863, Aug 17 2007, 22:45:43)
@@ -65,13 +65,13 @@
+>>> ycp.init_ui('qt')
True
+>>> ycp.import_module('Popup')
True
+>>> ycp.Popup.Message('Example text')
@@ -88,7 +88,7 @@
+>>> ycp.SCR.Execute(ycp.Path('.target.bash_output'),'pwd')
{'exit': 0, 'stderr': '', 'stdout': '/home/user\n'}
@@ -100,16 +100,16 @@
+>>> path = Path('.my.path')
+>>> symbol = Symbol('Enabled')
What"))
+>>> term = Term('VBox',Term('Label','&Example Label'), Term('PushButton', '&So
What'))
5. Calling python module from YCP
@@ -117,4 +117,4 @@
- it works such as standart ycp module
just write "import name_module_without_postfix_py"
and you are able to call only function from python's module
-via "name_module_without_postfix_py::name_function(arg1, arg2..)"
\ No newline at end of file
+via "name_module_without_postfix_py::name_function(arg1, arg2..)"
Modified: trunk/python-bindings/package/yast2-python-bindings.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/package/yast2-python-bindings.changes?rev=42071&r1=42070&r2=42071&view=diff
==============================================================================
--- trunk/python-bindings/package/yast2-python-bindings.changes (original)
+++ trunk/python-bindings/package/yast2-python-bindings.changes Thu Nov 15
12:54:32 2007
@@ -1,4 +1,12 @@
-------------------------------------------------------------------
+Wed Nov 14 17:31:31 CET 2007 - juhliarik@xxxxxxx
+
+- Adding solution for calling python function via reference
+- Adding support for calling YCode in Sequencer from python
+- Reimplementation SCR
+- V 2.16.0
+
+-------------------------------------------------------------------
Fri Sep 9 18:00:33 CEST 2007 - juhliarik@xxxxxxx
- Adding support for calling SCR
- Adding support for ycp types symbol, term, path
Modified: trunk/python-bindings/src/Makefile.am
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/src/Makefile.am?rev=42071&r1=42070&r2=42071&view=diff
==============================================================================
--- trunk/python-bindings/src/Makefile.am (original)
+++ trunk/python-bindings/src/Makefile.am Thu Nov 15 12:54:32 2007
@@ -29,9 +29,10 @@
# binary part of the python module
libYCP_la_SOURCES = \
$(liby2lang_python_la_SOURCES) \
+ $(libYCPDeclarations_la_SOURCES) \
YCP.cc \
- PythonLogger.cc PythonLogger.h
-
+ PythonLogger.cc PythonLogger.h \
+ YPythonNamespace.cc YPythonNamespace.h
install-data-hook:
@@ -40,9 +41,7 @@
# are there enough yast libraries?
# check with y2base, integrate them like y2pm does
-# Originally, of the py2* there was only py2plugin here
-# with the assumption that it would bring in the other plugins.
-# But it does not work.
+
libYCP_la_LDFLAGS = $(PYTHON_LDFLAGS) \
-L$(libdir) -L$(plugindir) \
-Xlinker --whole-archive \
Modified: trunk/python-bindings/src/YCPDeclarations.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/src/YCPDeclarations.h?rev=42071&r1=42070&r2=42071&view=diff
==============================================================================
--- trunk/python-bindings/src/YCPDeclarations.h (original)
+++ trunk/python-bindings/src/YCPDeclarations.h Thu Nov 15 12:54:32 2007
@@ -5,6 +5,7 @@
#include <ycp/Type.h>
#include <vector>
#include <string>
+#include <memory>
/**
* This class stores information about declarations in python module which were
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Date: Thu Nov 15 12:54:32 2007
New Revision: 42071
URL: http://svn.opensuse.org/viewcvs/yast?rev=42071&view=rev
Log:
new version 2.16.0
Modified:
trunk/python-bindings/doc/python-bindings
trunk/python-bindings/package/yast2-python-bindings.changes
trunk/python-bindings/src/Makefile.am
trunk/python-bindings/src/YCPDeclarations.h
Modified: trunk/python-bindings/doc/python-bindings
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/doc/python-bindings?rev=42071&r1=42070&r2=42071&view=diff
==============================================================================
--- trunk/python-bindings/doc/python-bindings (original)
+++ trunk/python-bindings/doc/python-bindings Thu Nov 15 12:54:32 2007
@@ -46,7 +46,7 @@
->>> ycp.import_module("test")
import ycp
+>>> ycp.import_module('test')
True
@@ -56,7 +56,7 @@
ycp.test.suma(2,3)
2. How to call UI from YaST in Python
=====================================
-- there is important function: ycp.init_ui("qt")
+- there is important function: ycp.init_ui('qt')
that initialize UI from YaST
Python 2.5.1 (r251:54863, Aug 17 2007, 22:45:43)
@@ -65,13 +65,13 @@
->>> ycp.init_ui("qt")
import ycp
+>>> ycp.init_ui('qt')
True
->>> ycp.import_module("Popup")
+>>> ycp.import_module('Popup')
True
->>> ycp.Popup.Message("Example text")
+>>> ycp.Popup.Message('Example text')
@@ -88,7 +88,7 @@
->>> ycp.SCR_Execute(".target.bash_output","pwd")
import ycp
+>>> ycp.SCR.Execute(ycp.Path('.target.bash_output'),'pwd')
{'exit': 0, 'stderr': '', 'stdout': '/home/user\n'}
@@ -100,16 +100,16 @@
->>> path = Path(".my.path")
+>>> path = Path('.my.path')
->>> symbol = Symbol("Enabled")
+>>> symbol = Symbol('Enabled')
->>> term = Term("VBox",Term("Label","&Example Label"), Term("PushButton", "&So
What"))
+>>> term = Term('VBox',Term('Label','&Example Label'), Term('PushButton', '&So
What'))
5. Calling python module from YCP
@@ -117,4 +117,4 @@
- it works such as standart ycp module
just write "import name_module_without_postfix_py"
and you are able to call only function from python's module
-via "name_module_without_postfix_py::name_function(arg1, arg2..)"
\ No newline at end of file
+via "name_module_without_postfix_py::name_function(arg1, arg2..)"
Modified: trunk/python-bindings/package/yast2-python-bindings.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/package/yast2-python-bindings.changes?rev=42071&r1=42070&r2=42071&view=diff
==============================================================================
--- trunk/python-bindings/package/yast2-python-bindings.changes (original)
+++ trunk/python-bindings/package/yast2-python-bindings.changes Thu Nov 15
12:54:32 2007
@@ -1,4 +1,12 @@
-------------------------------------------------------------------
+Wed Nov 14 17:31:31 CET 2007 - juhliarik@xxxxxxx
+
+- Adding solution for calling python function via reference
+- Adding support for calling YCode in Sequencer from python
+- Reimplementation SCR
+- V 2.16.0
+
+-------------------------------------------------------------------
Fri Sep 9 18:00:33 CEST 2007 - juhliarik@xxxxxxx
- Adding support for calling SCR
- Adding support for ycp types symbol, term, path
Modified: trunk/python-bindings/src/Makefile.am
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/src/Makefile.am?rev=42071&r1=42070&r2=42071&view=diff
==============================================================================
--- trunk/python-bindings/src/Makefile.am (original)
+++ trunk/python-bindings/src/Makefile.am Thu Nov 15 12:54:32 2007
@@ -29,9 +29,10 @@
# binary part of the python module
libYCP_la_SOURCES = \
$(liby2lang_python_la_SOURCES) \
+ $(libYCPDeclarations_la_SOURCES) \
YCP.cc \
- PythonLogger.cc PythonLogger.h
-
+ PythonLogger.cc PythonLogger.h \
+ YPythonNamespace.cc YPythonNamespace.h
install-data-hook:
@@ -40,9 +41,7 @@
# are there enough yast libraries?
# check with y2base, integrate them like y2pm does
-# Originally, of the py2* there was only py2plugin here
-# with the assumption that it would bring in the other plugins.
-# But it does not work.
+
libYCP_la_LDFLAGS = $(PYTHON_LDFLAGS) \
-L$(libdir) -L$(plugindir) \
-Xlinker --whole-archive \
Modified: trunk/python-bindings/src/YCPDeclarations.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/src/YCPDeclarations.h?rev=42071&r1=42070&r2=42071&view=diff
==============================================================================
--- trunk/python-bindings/src/YCPDeclarations.h (original)
+++ trunk/python-bindings/src/YCPDeclarations.h Thu Nov 15 12:54:32 2007
@@ -5,6 +5,7 @@
#include <ycp/Type.h>
#include <vector>
#include <string>
+#include <memory>
/**
* This class stores information about declarations in python module which were
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |