libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r799701 - in /websites/staging/libcloud/trunk/content: upgrade-notes-0-7.html upgrade-notes.html
Date Sun, 04 Dec 2011 19:38:13 GMT
Author: buildbot
Date: Sun Dec  4 19:38:12 2011
New Revision: 799701

Log:
Staging update by buildbot

Added:
    websites/staging/libcloud/trunk/content/upgrade-notes-0-7.html
Modified:
    websites/staging/libcloud/trunk/content/upgrade-notes.html

Added: websites/staging/libcloud/trunk/content/upgrade-notes-0-7.html
==============================================================================
--- websites/staging/libcloud/trunk/content/upgrade-notes-0-7.html (added)
+++ websites/staging/libcloud/trunk/content/upgrade-notes-0-7.html Sun Dec  4 19:38:12 2011
@@ -0,0 +1,152 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+  <title>Apache Libcloud Python library - Upgrade Notes - Libcloud 0.7</title>
+  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
+  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
+  <script src="/js/clearlink.js" type="text/javascript"></script>
+  <script src="/js/libcloud.js" type="text/javascript"></script>
+  <script src="/js/jquery.tweet.js" type="text/javascript"></script>
+  <script src="/js/twitter.js" type="text/javascript"></script>
+  <link rel="stylesheet" href="/css/screen.css" type="text/css">
+  <link rel="stylesheet" href="/css/libcloud.css" type="text/css">
+  <link rel="stylesheet" href="/css/code.css" type="text/css">
+  <link rel="stylesheet" href="/css/jquery.tweet.css" type="text/css">
+  <link rel="icon" type="image/png" href="/images/favicon.png"/>
+  <script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-23580482-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+  })();
+</script>
+
+</head>
+<body>
+  <div class="container">
+    <div id="header" class="span-24 last">
+      
+      <h1>Apache Libcloud <span>a unified interface to the cloud</span></h1>
+      
+    </div>
+
+    <div id="banner" class="span-24 last">
+      
+      <h2>Upgrade Notes - Libcloud 0.7</h2>
+      
+    </div>
+
+    <div id="feature" class="container">
+      
+      
+    </div>
+
+    
+    <div id="sidebar" class="span-8 border">
+      
+<div id="menu">
+    <h2><a href="/">home</a></h2>
+<h2><a href="/news.html">news</a></h2>
+<h2><a href="/about.html">about</a></h2>
+<h2><a href="/getting-started.html">getting started</a></h2>
+<h2><a href="/docs/">documentation</a></h2>
+<h2><a href="/whos-using.html">who's using libcloud?</a></h2>
+<h2><a href="/community-resources.html">community resources</a></h2>
+<h2><a href="/devinfo.html">developer information</a></h2>
+<h2><a href="/contributing.html">contributing</a></h2>
+<h2><a href="/downloads.html">downloads</a></h2>
+
+</div>
+
+
+
+<h3>Get it</h3>
+<div id="get-it">
+    Latest stable: <a href="/downloads.html">0.6.2</a> (November 17th, 2011)<br
/>
+    Includes new DNS api and more!
+</div>
+
+<h3>Need help?</h3>
+<div id="help">
+    <a href="http://webchat.freenode.net/?channels=libcloud&uio=d4">#libcloud @
freenode</a><br /><a
+        href="mailto:users-subscribe@libcloud.apache.org">users@libcloud.apache.org</a>
+</div>
+
+<h3>What's going on</h3>
+<div id="twitter"></div>
+
+<h3>Links</h3>
+<div id="apache-logo">
+  <a href="http://www.apache.org/"><img src="images/apache_logo.gif" alt="Apache
+      Software Foundation" /></a>
+</div>
+
+
+
+    </div>
+    
+
+    <div id="main" class="span-16 last">
+      
+      <h2 id="upgrading_from_06x">Upgrading from 0.6.x</h2>
+<h3 id="changes">Changes</h3>
+<ul>
+<li>For consistency, <code>public_ip</code> and <code>private_ip</code>
attribute on the <code>Node</code> object
+have been renamed to <code>public_ips</code> and <code>private_ips</code>
respectively.</li>
+</ul>
+<p>In 0.7 you can still access those attributes using the old way, but this option
+will be removed in the next major release.</p>
+<p>Note: If you have places in your code where you directly instantiate a <code>Node</code>
+class, you need to update it.</p>
+<p>Old code:</p>
+<div class="codehilite"><pre><span class="n">node</span> <span
class="o">=</span> <span class="n">Node</span><span class="p">(</span><span
class="nb">id</span><span class="o">=</span><span class="s">&#39;1&#39;</span><span
class="p">,</span> <span class="n">name</span><span class="o">=</span><span
class="s">&#39;test node&#39;</span><span class="p">,</span>
<span class="n">state</span><span class="o">=</span><span class="n">NodeState</span><span
class="o">.</span><span class="n">PENDING</span><span class="p">,</span>
+            <span class="n">private_ip</span><span class="o">=</span><span
class="p">[</span><span class="s">&#39;10.0.0.1&#39;</span><span
class="p">],</span> <span class="n">public_ip</span><span class="o">=</span><span
class="p">[</span><span class="s">&#39;88.77.66.77&#39;</span><span
class="p">],</span>
+            <span class="n">driver</span><span class="o">=</span><span
class="n">driver</span><span class="p">)</span>
+</pre></div>
+
+
+<p>Updated code:</p>
+<div class="codehilite"><pre><span class="n">node</span> <span
class="o">=</span> <span class="n">Node</span><span class="p">(</span><span
class="nb">id</span><span class="o">=</span><span class="s">&#39;1&#39;</span><span
class="p">,</span> <span class="n">name</span><span class="o">=</span><span
class="s">&#39;test node&#39;</span><span class="p">,</span>
<span class="n">state</span><span class="o">=</span><span class="n">NodeState</span><span
class="o">.</span><span class="n">PENDING</span><span class="p">,</span>
+            <span class="n">private_ips</span><span class="o">=</span><span
class="p">[</span><span class="s">&#39;10.0.0.1&#39;</span><span
class="p">],</span> <span class="n">public_ips</span><span class="o">=</span><span
class="p">[</span><span class="s">&#39;88.77.66.77&#39;</span><span
class="p">],</span>
+            <span class="n">driver</span><span class="o">=</span><span
class="n">driver</span><span class="p">)</span>
+</pre></div>
+
+
+<ul>
+<li>Old deprecated paths have been removed. If you still haven't updated your
+code you need to do it now, otherwise it won't work with 0.7 and future releases.</li>
+</ul>
+<p>Bellow is a list of old paths and their new locations:</p>
+<ul>
+<li><code>libcloud.base</code> -&gt; <code>libcloud.compute.base</code></li>
+<li><code>libcloud.deployment</code> -&gt; <code>libcloud.compute.deployment</code></li>
+<li><code>libcloud.drivers.*</code> -&gt; <code>libcloud.compute.drivers.*</code></li>
+<li><code>libcloud.ssh</code> -&gt; <code>libcloud.compute.ssh</code></li>
+<li><code>libcloud.types</code> -&gt; <code>libcloud.compute.types</code></li>
+<li><code>libcloud.providers</code> -&gt; <code>libcloud.compute.providers</code></li>
+</ul>
+<p>In the contrib directory you can also find a simple bash script which can perform
+a search and replace for you - <a href="https://svn.apache.org/repos/asf/libcloud/trunk/contrib/migrate_paths.sh">migrate_paths.py</a>.</p>
+      
+    </div>
+
+    <div id="footer" class="span-24">
+    <a href="http://www.apache.org/licenses/">License</a> | <a
+    href="/security.html">Security</a> | <a
+    href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a> |
+<a href="http://www.apache.org/foundation/thanks.html">Thanks</a> | <a
+    href="/credits.html">Credits</a> | <a href="/sitemap.html">Sitemap</a><br
/><br />
+
+Copyright © 2009-2011, <a href="http://apache.org/">The Apache Software Foundation</a><br
/>
+Apache Libcloud, Libcloud, Apache, the Apache feather, and the Apache Libcloud
+project logo are trademarks of the Apache Software Foundation. All other marks mentioned
may be trademarks or registered trademarks of their respective owners.
+
+    </div>
+  </div>
+</body>
+</html>

Modified: websites/staging/libcloud/trunk/content/upgrade-notes.html
==============================================================================
--- websites/staging/libcloud/trunk/content/upgrade-notes.html (original)
+++ websites/staging/libcloud/trunk/content/upgrade-notes.html Sun Dec  4 19:38:12 2011
@@ -98,6 +98,7 @@
 one. It also describes backward incompatible or semi-incompatible changes
 and how to preserve the old behavior when this is possible.</p>
 <ul>
+<li><a href="/upgrade-notes-0-7.html">Libcloud 0.7</a></li>
 <li><a href="/upgrade-notes-0-6.html">Libcloud 0.6</a></li>
 </ul>
       



Mime
View raw message