Permalink
Browse files

Logging subsystem added

  • Loading branch information...
1 parent 19d9e44 commit f7e4cff70c1a573f60931fbeae2851e4bf4b7ce2 @lusis committed Sep 18, 2010
Showing with 120 additions and 8,230 deletions.
  1. +2 −0 .gitignore
  2. +13 −0 contrib/doc2ghpages
  3. BIN docs/_build/doctrees/amqp.doctree
  4. BIN docs/_build/doctrees/client.doctree
  5. BIN docs/_build/doctrees/couch.doctree
  6. BIN docs/_build/doctrees/encryption.doctree
  7. BIN docs/_build/doctrees/environment.pickle
  8. BIN docs/_build/doctrees/exceptions.doctree
  9. BIN docs/_build/doctrees/index.doctree
  10. BIN docs/_build/doctrees/intro.doctree
  11. BIN docs/_build/doctrees/intro/intro.doctree
  12. BIN docs/_build/doctrees/messaging.doctree
  13. BIN docs/_build/doctrees/messaging/amqp.doctree
  14. BIN docs/_build/doctrees/messaging/modules.doctree
  15. BIN docs/_build/doctrees/modules.doctree
  16. BIN docs/_build/doctrees/persistence.doctree
  17. BIN docs/_build/doctrees/persistence/couch.doctree
  18. BIN docs/_build/doctrees/persistence/modules.doctree
  19. BIN docs/_build/doctrees/plugins.doctree
  20. BIN docs/_build/doctrees/runner.doctree
  21. BIN docs/_build/doctrees/server.doctree
  22. BIN docs/_build/doctrees/vogeler-client.doctree
  23. BIN docs/_build/doctrees/vogeler-runner.doctree
  24. BIN docs/_build/doctrees/vogeler-server.doctree
  25. +0 −4 docs/_build/html/.buildinfo
  26. +0 −98 docs/_build/html/_modules/index.html
  27. +0 −134 docs/_build/html/_modules/vogeler/client.html
  28. +0 −205 docs/_build/html/_modules/vogeler/db/couch.html
  29. +0 −96 docs/_build/html/_modules/vogeler/encryption.html
  30. +0 −116 docs/_build/html/_modules/vogeler/exceptions.html
  31. +0 −136 docs/_build/html/_modules/vogeler/persistence.html
  32. +0 −177 docs/_build/html/_modules/vogeler/plugins.html
  33. +0 −92 docs/_build/html/_modules/vogeler/queue.html
  34. +0 −152 docs/_build/html/_modules/vogeler/queue/amqp.html
  35. +0 −118 docs/_build/html/_modules/vogeler/runner.html
  36. +0 −131 docs/_build/html/_modules/vogeler/server.html
  37. +0 −15 docs/_build/html/_sources/amqp.txt
  38. +0 −12 docs/_build/html/_sources/client.txt
  39. 0 docs/_build/html/_sources/couch.txt
  40. +0 −12 docs/_build/html/_sources/encryption.txt
  41. +0 −12 docs/_build/html/_sources/exceptions.txt
  42. +0 −27 docs/_build/html/_sources/index.txt
  43. +0 −319 docs/_build/html/_sources/intro.txt
  44. +0 −319 docs/_build/html/_sources/intro/intro.txt
  45. 0 docs/_build/html/_sources/messaging.txt
  46. +0 −23 docs/_build/html/_sources/messaging/amqp.txt
  47. +0 −12 docs/_build/html/_sources/messaging/modules.txt
  48. +0 −18 docs/_build/html/_sources/modules.txt
  49. +0 −12 docs/_build/html/_sources/persistence.txt
  50. +0 −12 docs/_build/html/_sources/persistence/couch.txt
  51. +0 −12 docs/_build/html/_sources/persistence/modules.txt
  52. +0 −12 docs/_build/html/_sources/plugins.txt
  53. +0 −12 docs/_build/html/_sources/runner.txt
  54. +0 −12 docs/_build/html/_sources/server.txt
  55. 0 docs/_build/html/_sources/vogeler-client.txt
  56. 0 docs/_build/html/_sources/vogeler-runner.txt
  57. 0 docs/_build/html/_sources/vogeler-server.txt
  58. +0 −509 docs/_build/html/_static/basic.css
  59. +0 −256 docs/_build/html/_static/default.css
  60. +0 −247 docs/_build/html/_static/doctools.js
  61. BIN docs/_build/html/_static/file.png
  62. +0 −154 docs/_build/html/_static/jquery.js
  63. BIN docs/_build/html/_static/minus.png
  64. BIN docs/_build/html/_static/plus.png
  65. +0 −62 docs/_build/html/_static/pygments.css
  66. +0 −518 docs/_build/html/_static/searchtools.js
  67. +0 −148 docs/_build/html/_static/sidebar.js
  68. +0 −16 docs/_build/html/_static/underscore.js
  69. +0 −124 docs/_build/html/amqp.html
  70. +0 −208 docs/_build/html/client.html
  71. +0 −86 docs/_build/html/couch.html
  72. +0 −136 docs/_build/html/encryption.html
  73. +0 −186 docs/_build/html/exceptions.html
  74. +0 −249 docs/_build/html/genindex.html
  75. +0 −184 docs/_build/html/index.html
  76. +0 −362 docs/_build/html/intro.html
  77. +0 −378 docs/_build/html/intro/intro.html
  78. +0 −112 docs/_build/html/messaging.html
  79. +0 −180 docs/_build/html/messaging/amqp.html
  80. +0 −137 docs/_build/html/messaging/modules.html
  81. +0 −161 docs/_build/html/modules.html
  82. BIN docs/_build/html/objects.inv
  83. +0 −132 docs/_build/html/persistence.html
  84. +0 −197 docs/_build/html/persistence/couch.html
  85. +0 −137 docs/_build/html/persistence/modules.html
  86. +0 −143 docs/_build/html/plugins.html
  87. +0 −148 docs/_build/html/py-modindex.html
  88. +0 −143 docs/_build/html/runner.html
  89. +0 −102 docs/_build/html/search.html
  90. +0 −1 docs/_build/html/searchindex.js
  91. +0 −153 docs/_build/html/server.html
  92. +0 −112 docs/_build/html/vogeler-client.html
  93. +0 −112 docs/_build/html/vogeler-runner.html
  94. +0 −112 docs/_build/html/vogeler-server.html
  95. +4 −3 docs/conf.py
  96. +19 −0 docs/log.rst
  97. +1 −1 docs/messaging/amqp.rst
  98. +1 −1 docs/messaging/modules.rst
  99. +1 −1 docs/persistence/couch.rst
  100. +3 −3 scripts/vogeler-client
  101. +1 −1 setup.py
  102. +10 −5 vogeler/client.py
  103. +45 −0 vogeler/log.py
  104. +10 −7 vogeler/plugins.py
  105. +6 −1 vogeler/runner.py
  106. +4 −2 vogeler/server.py
View
@@ -7,3 +7,5 @@ dist/*
vogeler.egg-info/*
build/*
setup.cfg
+_build
+.build
View
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+git checkout master
+(cd docs;
+ rm -rf .build;
+ make html;
+ (cd .build/html;
+ sphinx-to-github;))
+git checkout gh-pages
+cp -r docs/.build/html/* .
+git commit . -m "Autogenerated documentation for github."
+git push origin gh-pages
+git checkout master
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +0,0 @@
-# Sphinx build info version 1
-# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: e2b9123e5e3666919e78c8d3b9b4f4a5
-tags: fbb0d17656682115ca4d033fb2f83ba1
@@ -1,98 +0,0 @@
-
-
-<!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=utf-8" />
-
- <title>Overview: module code &mdash; Vogeler v0.8.7 documentation</title>
- <link rel="stylesheet" href="../_static/default.css" type="text/css" />
- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
- <script type="text/javascript">
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT: '../',
- VERSION: '0.8.7',
- COLLAPSE_INDEX: false,
- FILE_SUFFIX: '.html',
- HAS_SOURCE: true
- };
- </script>
- <script type="text/javascript" src="../_static/jquery.js"></script>
- <script type="text/javascript" src="../_static/underscore.js"></script>
- <script type="text/javascript" src="../_static/doctools.js"></script>
- <link rel="top" title="Vogeler v0.8.7 documentation" href="../index.html" />
- </head>
- <body>
- <div class="related">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="../py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li><a href="../index.html">Vogeler v0.8.7 documentation</a> &raquo;</li>
- </ul>
- </div>
-
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body">
-
- <h1>All modules for which code is available</h1>
-<ul><li><a href="vogeler/client.html">vogeler.client</a></li>
-<li><a href="vogeler/db/couch.html">vogeler.db.couch</a></li>
-<li><a href="vogeler/encryption.html">vogeler.encryption</a></li>
-<li><a href="vogeler/exceptions.html">vogeler.exceptions</a></li>
-<li><a href="vogeler/persistence.html">vogeler.persistence</a></li>
-<li><a href="vogeler/plugins.html">vogeler.plugins</a></li>
-<li><a href="vogeler/queue.html">vogeler.queue</a></li>
-<ul><li><a href="vogeler/queue/amqp.html">vogeler.queue.amqp</a></li>
-</ul><li><a href="vogeler/runner.html">vogeler.runner</a></li>
-<li><a href="vogeler/server.html">vogeler.server</a></li>
-</ul>
-
- </div>
- </div>
- </div>
- <div class="sphinxsidebar">
- <div class="sphinxsidebarwrapper">
-<div id="searchbox" style="display: none">
- <h3>Quick search</h3>
- <form class="search" action="../search.html" method="get">
- <input type="text" name="q" size="18" />
- <input type="submit" value="Go" />
- <input type="hidden" name="check_keywords" value="yes" />
- <input type="hidden" name="area" value="default" />
- </form>
- <p class="searchtip" style="font-size: 90%">
- Enter search terms or a module, class or function name.
- </p>
-</div>
-<script type="text/javascript">$('#searchbox').show(0);</script>
- </div>
- </div>
- <div class="clearer"></div>
- </div>
- <div class="related">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../genindex.html" title="General Index"
- >index</a></li>
- <li class="right" >
- <a href="../py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li><a href="../index.html">Vogeler v0.8.7 documentation</a> &raquo;</li>
- </ul>
- </div>
- <div class="footer">
- &copy; Copyright 2010, John E. Vincent.
- Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.3.
- </div>
- </body>
-</html>
@@ -1,134 +0,0 @@
-
-
-<!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=utf-8" />
-
- <title>vogeler.client &mdash; Vogeler v0.8.7 documentation</title>
- <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
- <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
- <script type="text/javascript">
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT: '../../',
- VERSION: '0.8.7',
- COLLAPSE_INDEX: false,
- FILE_SUFFIX: '.html',
- HAS_SOURCE: true
- };
- </script>
- <script type="text/javascript" src="../../_static/jquery.js"></script>
- <script type="text/javascript" src="../../_static/underscore.js"></script>
- <script type="text/javascript" src="../../_static/doctools.js"></script>
- <link rel="top" title="Vogeler v0.8.7 documentation" href="../../index.html" />
- <link rel="up" title="Module code" href="../index.html" />
- </head>
- <body>
- <div class="related">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="../../py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li><a href="../../index.html">Vogeler v0.8.7 documentation</a> &raquo;</li>
- <li><a href="../index.html" accesskey="U">Module code</a> &raquo;</li>
- </ul>
- </div>
-
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body">
-
- <h1>Source code for vogeler.client</h1><div class="highlight"><pre>
-<span class="kn">import</span> <span class="nn">json</span>
-
-<span class="kn">from</span> <span class="nn">vogeler.exceptions</span> <span class="kn">import</span> <span class="n">VogelerClientException</span>
-<span class="kn">from</span> <span class="nn">vogeler.messaging</span> <span class="kn">import</span> <span class="n">amqp</span>
-
-<div class="viewcode-block" id="VogelerClient"><a class="viewcode-back" href="../../client.html#vogeler.client.VogelerClient">[docs]</a><span class="k">class</span> <span class="nc">VogelerClient</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
- <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">callback_function</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
- <span class="k">try</span><span class="p">:</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">ch</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">queue</span> <span class="o">=</span> <span class="n">amqp</span><span class="o">.</span><span class="n">setup_client</span><span class="p">(</span><span class="n">kwargs</span><span class="p">[</span><span class="s">&#39;host&#39;</span><span class="p">],</span> <span class="n">kwargs</span><span class="p">[</span><span class="s">&#39;username&#39;</span><span class="p">],</span> <span class="n">kwargs</span><span class="p">[</span><span class="s">&#39;password&#39;</span><span class="p">])</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">callback_function</span> <span class="o">=</span> <span class="n">callback_function</span>
- <span class="k">except</span><span class="p">:</span>
- <span class="k">raise</span> <span class="n">VogelerClientException</span><span class="p">(</span><span class="s">&quot;</span><span class="se">\</span>
-<span class="s"> Error connecting to </span><span class="si">%s</span><span class="s"> as </span><span class="si">%s</span><span class="s">&quot;</span> <span class="o">%</span> <span class="p">(</span><span class="n">kwargs</span><span class="p">[</span><span class="s">&#39;host&#39;</span><span class="p">],</span> <span class="n">kwargs</span><span class="p">[</span><span class="s">&#39;username&#39;</span><span class="p">]))</span>
-
-<div class="viewcode-block" id="VogelerClient.callback"><a class="viewcode-back" href="../../client.html#vogeler.client.VogelerClient.callback">[docs]</a> <span class="k">def</span> <span class="nf">callback</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">msg</span><span class="p">):</span>
- <span class="n">message</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">loads</span><span class="p">(</span><span class="n">msg</span><span class="o">.</span><span class="n">body</span><span class="p">)</span>
- <span class="k">if</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">callback_function</span><span class="p">):</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">callback_function</span><span class="p">(</span><span class="n">message</span><span class="p">)</span>
-</div>
-<div class="viewcode-block" id="VogelerClient.monitor"><a class="viewcode-back" href="../../client.html#vogeler.client.VogelerClient.monitor">[docs]</a> <span class="k">def</span> <span class="nf">monitor</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
- <span class="k">try</span><span class="p">:</span>
- <span class="k">print</span> <span class="s">&quot;Vogeler(Client) is starting up&quot;</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">ch</span><span class="o">.</span><span class="n">basic_consume</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">queue</span><span class="p">,</span> <span class="n">callback</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">callback</span><span class="p">,</span> <span class="n">no_ack</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
- <span class="k">except</span><span class="p">:</span>
- <span class="k">raise</span> <span class="n">VogelerClientException</span><span class="p">(</span><span class="s">&quot;Error consuming queue&quot;</span><span class="p">)</span>
-
- <span class="k">while</span> <span class="bp">self</span><span class="o">.</span><span class="n">ch</span><span class="o">.</span><span class="n">callbacks</span><span class="p">:</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">ch</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>
-</div>
-<div class="viewcode-block" id="VogelerClient.message"><a class="viewcode-back" href="../../client.html#vogeler.client.VogelerClient.message">[docs]</a> <span class="k">def</span> <span class="nf">message</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">message</span><span class="p">,</span> <span class="n">durable</span><span class="o">=</span><span class="bp">True</span><span class="p">):</span>
- <span class="k">print</span> <span class="s">&quot;Vogeler(Client) is sending a message&quot;</span>
- <span class="n">msg</span> <span class="o">=</span> <span class="n">amqp</span><span class="o">.</span><span class="n">amqp</span><span class="o">.</span><span class="n">Message</span><span class="p">(</span><span class="n">json</span><span class="o">.</span><span class="n">dumps</span><span class="p">(</span><span class="n">message</span><span class="p">))</span>
- <span class="k">if</span> <span class="n">durable</span> <span class="o">==</span> <span class="bp">True</span><span class="p">:</span>
- <span class="n">msg</span><span class="o">.</span><span class="n">properties</span><span class="p">[</span><span class="s">&#39;delivery_mode&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="mi">2</span>
- <span class="k">try</span><span class="p">:</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">ch</span><span class="o">.</span><span class="n">basic_publish</span><span class="p">(</span><span class="n">msg</span><span class="p">,</span> <span class="n">exchange</span><span class="o">=</span><span class="n">amqp</span><span class="o">.</span><span class="n">master_exchange</span><span class="p">)</span>
- <span class="k">except</span><span class="p">:</span>
- <span class="k">raise</span> <span class="n">VogelerClientException</span><span class="p">(</span><span class="s">&quot;Error publishing message to queue&quot;</span><span class="p">)</span>
-</div>
-<div class="viewcode-block" id="VogelerClient.close"><a class="viewcode-back" href="../../client.html#vogeler.client.VogelerClient.close">[docs]</a> <span class="k">def</span> <span class="nf">close</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">ch</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
-
-<span class="c"># vim: set ts=4 et sw=4 sts=4 sta filetype=python :</span></div></div>
-</pre></div>
-
- </div>
- </div>
- </div>
- <div class="sphinxsidebar">
- <div class="sphinxsidebarwrapper">
-<div id="searchbox" style="display: none">
- <h3>Quick search</h3>
- <form class="search" action="../../search.html" method="get">
- <input type="text" name="q" size="18" />
- <input type="submit" value="Go" />
- <input type="hidden" name="check_keywords" value="yes" />
- <input type="hidden" name="area" value="default" />
- </form>
- <p class="searchtip" style="font-size: 90%">
- Enter search terms or a module, class or function name.
- </p>
-</div>
-<script type="text/javascript">$('#searchbox').show(0);</script>
- </div>
- </div>
- <div class="clearer"></div>
- </div>
- <div class="related">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../genindex.html" title="General Index"
- >index</a></li>
- <li class="right" >
- <a href="../../py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li><a href="../../index.html">Vogeler v0.8.7 documentation</a> &raquo;</li>
- <li><a href="../index.html" >Module code</a> &raquo;</li>
- </ul>
- </div>
- <div class="footer">
- &copy; Copyright 2010, John E. Vincent.
- Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.3.
- </div>
- </body>
-</html>
Oops, something went wrong.

0 comments on commit f7e4cff

Please sign in to comment.