Mailinglist Archive: yast-commit (322 mails)

< Previous Next >
[yast-commit] r57212 - /trunk/storage/libstorage/bindings/python/graph.py
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Sat, 16 May 2009 11:53:13 -0000
  • Message-id: <E1M5IS1-0008C1-5s@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Sat May 16 13:53:12 2009
New Revision: 57212

URL: http://svn.opensuse.org/viewcvs/yast?rev=57212&view=rev
Log:
- added example

Added:
trunk/storage/libstorage/bindings/python/graph.py (with props)

Added: trunk/storage/libstorage/bindings/python/graph.py
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/bindings/python/graph.py?rev=57212&view=auto
==============================================================================
--- trunk/storage/libstorage/bindings/python/graph.py (added)
+++ trunk/storage/libstorage/bindings/python/graph.py Sat May 16 13:53:12 2009
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+
+from LibStorage import Environment, createStorageInterface, saveGraph,
destroyStorageInterface
+
+
+env = Environment(True)
+
+c = createStorageInterface(env)
+
+saveGraph(c, "storage.gv")
+
+destroyStorageInterface(c)

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages