From b2764c3d9469cc0a3f4de006d237ebb54f42ded7 Mon Sep 17 00:00:00 2001
From: Daniel Veillard <veillard@redhat.com>
Date: Thu, 26 Jan 2006 12:11:32 +0000
Subject: [PATCH] * TODO: updated * docs/search.php: use the new web site
 design * python/generator.py: fix a generation bug on python keyword Daniel

---
 ChangeLog           |   6 ++
 TODO                |  20 +++++-
 docs/search.php     | 146 ++++++++++++++++++++++++--------------------
 python/generator.py |   2 +
 4 files changed, 108 insertions(+), 66 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 67b1137f0e..33441c327a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jan 26 13:10:43 CET 2006 Daniel Veillard <veillard@redhat.com>
+
+	* TODO: updated
+	* docs/search.php: use the new web site design
+	* python/generator.py: fix a generation bug on python keyword
+
 Tue Jan 24 11:44:53 CET 2006 Karel Zak <kzak@redhat.com> 
 
 	* src/libvir_sym.version: add virDeomainRestore and virDomainSave
diff --git a/TODO b/TODO
index 3c30be02fa..25d83fc4f3 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,22 @@
-- nearly everything at this point
+Absolute TODOs:
+- fix the python bindings
+- Create() API, how do we best keep flexibility and allow various
+  specific environment and space for evolution (VMX)
+- thread protection, reentrancy, refcounting, etc ...
+- documentation and examples on using the toolkit
+- Error API. probably similar to libxml2 structured API
+
+TODO:
+- track change of xend API, XML-RPC, UUID based lookup and naming
+- API for the Node: extracting informations, selecting scheduling policy
+- better resources allocation APIs (%CPU, set memory)
+
+Probable TODOs:
+- event on big domain state change (create, crashed, paused, shutdown, destroy)
+- bindings for more languages
+
+Would-be-nice TODO:
+- support for QEmu and other virtualization engines
 
 Done:
 - make dist and make rpm targets
diff --git a/docs/search.php b/docs/search.php
index a8b034c305..6e2ef9d5fa 100644
--- a/docs/search.php
+++ b/docs/search.php
@@ -1,63 +1,17 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel="SHORTCUT ICON" href="/favicon.ico">
-<style type="text/css"><!--
-TD {font-family: Verdana,Arial,Helvetica}
-BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
-H1 {font-family: Verdana,Arial,Helvetica}
-H2 {font-family: Verdana,Arial,Helvetica}
-H3 {font-family: Verdana,Arial,Helvetica}
-A:link, A:visited, A:active { text-decoration: underline }
---></style>
-<title>Search the documentation on Libvir.org</title>
-</head>
-<body bgcolor="#8b7765" text="#000000" link="#000000" vlink="#000000">
-<table border="0" width="100%" cellpadding="5" cellspacing="0" align="center"><tr>
-<td width="180">
-<a href="http://www.redhat.com/"><img src="redhat.gif" alt="Red Hat Logo"></a>
-</td>
-<td><table border="0" width="90%" cellpadding="2" cellspacing="0" align="center" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#fffacd"><tr><td align="center">
-<h1>Libvir the virtualization library</h1>
-<h2>Search engine</h2>
-</td></tr></table></td></tr></table></td>
-</tr></table>
-<table border="0" cellpadding="4" cellspacing="0" width="100%" align="center"><tr><td bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr>
-<td valign="top" width="200" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td>
-<table width="100%" border="0" cellspacing="1" cellpadding="3">
-<tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Main Menu</b></center></td></tr>
-<tr><td bgcolor="#fffacd"><ul>
-<li><a href="index.html">Home</a></li>
-<li><a href="intro.html">Introduction</a></li>
-<li><a href="FAQ.html">FAQ</a></li>
-<li><a href="bugs.html">Reporting bugs and getting help</a></li>
-<li><a href="downloads.html">Downloads</a></li>
-<li><a href="news.html">News</a></li>
-<li>
-<a href="xml.html">flat page</a>, <a href="site.xsl">stylesheet</a>
-</li>
-</ul></td></tr>
-</table>
-<table width="100%" border="0" cellspacing="1" cellpadding="3">
-<tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>API Indexes</b></center></td></tr>
-<tr><td bgcolor="#fffacd"><ul>
-<li><a href="APIchunk0.html">Alphabetic</a></li>
-<li><a href="APIconstructors.html">Constructors</a></li>
-<li><a href="APIfunctions.html">Functions/Types</a></li>
-<li><a href="APIfiles.html">Modules</a></li>
-<li><a href="APIsymbols.html">Symbols</a></li>
-</ul></td></tr>
-</table>
-<table width="100%" border="0" cellspacing="1" cellpadding="3">
-<tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Related links</b></center></td></tr>
-<tr><td bgcolor="#fffacd"><ul>
-<li><a href="https://www.redhat.com/archives/libvir-list/">Mail archive</a></li>
-<li><a href="http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html">Xen project</a></li>
-</ul></td></tr>
-</table>
-</td></tr></table></td>
-<td valign="top" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table border="0" cellpadding="3" cellspacing="1" width="100%"><tr><td bgcolor="#fffacd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+    <link rel="stylesheet" type="text/css" href="libvir.css" />
+    <link rel="SHORTCUT ICON" href="/32favicon.png" />
+    <title>Search the documentation on Libvir.org</title>
+  </head>
+  <body>
+    <div id="container">
+      <div id="intro">
+        <div id="adjustments">
+          <p class="p1"></p>
+        </div>
+        <div id="content">
 <?php
     $query = $HTTP_GET_VARS[ "query" ];
     $scope = $HTTP_GET_VARS[ "scope" ];
@@ -286,9 +240,71 @@ A:link, A:visited, A:active { text-decoration: underline }
 	}
     }
 ?>
-
-</td></tr></table></td></tr></table></td></tr></table></td>
-</tr></table></td></tr></table>
-</body>
+        </div>
+      </div>
+      <div class="linkList">
+        <div class="llinks">
+          <h3 class="links">
+            <span>main menu</span>
+          </h3>
+          <ul>
+            <li>
+              <a href="index.html">Home</a>
+            </li>
+            <li>
+              <a href="news.html">Releases</a>
+            </li>
+            <li>
+              <a href="intro.html">Introduction</a>
+            </li>
+            <li>
+              <a href="architecture.html">libvir architecture</a>
+            </li>
+            <li>
+              <a href="downloads.html">Downloads</a>
+            </li>
+            <li>
+              <a href="FAQ.html">FAQ</a>
+            </li>
+            <li>
+              <a href="bugs.html">Reporting bugs and getting help</a>
+            </li>
+            <li>
+              <a style="font-weight:bold" href="html/index.html">API Menu</a>
+            </li>
+            <li>
+              <a href="ChangeLog.html">Recent Changes</a>
+            </li>
+          </ul>
+        </div>
+        <div class="llinks">
+          <h3 class="links">
+            <span>related links</span>
+          </h3>
+          <ul>
+            <li>
+              <a href="https://www.redhat.com/archives/libvir-list/">Mail archive</a>
+            </li>
+            <li>
+              <a href="http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html">Xen project</a>
+            </li>
+            <li>
+              <form action="search.php" enctype="application/x-www-form-urlencoded" method="get">
+                <input name="query" type="text" size="12" value="Search..." />
+                <input name="submit" type="submit" value="Go" />
+              </form>
+            </li>
+            <li>
+              <a href="http://xmlsoft.org/">
+                <img src="Libxml2-Logo-90x34.gif" alt="Made with Libxml2 Logo" />
+              </a>
+            </li>
+          </ul>
+        </div>
+      </div>
+      <div id="bottom">
+        <p class="p1"></p>
+      </div>
+    </div>
+  </body>
 </html>
-
diff --git a/python/generator.py b/python/generator.py
index 59b42678ea..b489b568d2 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -134,6 +134,8 @@ class docParser:
                 self.function_arg_info = None
                 if attrs.has_key('name'):
                     self.function_arg_name = attrs['name']
+		    if self.function_arg_name == 'from':
+		        self.function_arg_name = 'frm'
                 if attrs.has_key('type'):
                     self.function_arg_type = attrs['type']
                 if attrs.has_key('info'):