Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

196 linhas
7.8 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Web Notes Framework &mdash; Documentation</title>
  7. <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '',
  12. VERSION: '',
  13. COLLAPSE_MODINDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/doctools.js"></script>
  20. <link rel="top" title="Documentation" href="index.html" />
  21. <link rel="up" title="1. Introduction" href="intro.html" />
  22. <link rel="next" title="Concepts" href="concepts.html" />
  23. <link rel="prev" title="1. Introduction" href="intro.html" />
  24. </head>
  25. <body>
  26. <div style="background-color: #FFF; text-align: left; padding: 8px 0px"><img src="_static/banner300910.gif"></div>
  27. <div class="related">
  28. <h3>Navigation</h3>
  29. <ul>
  30. <li class="right" style="margin-right: 10px">
  31. <a href="genindex.html" title="General Index"
  32. accesskey="I">index</a></li>
  33. <li class="right" >
  34. <a href="modindex.html" title="Global Module Index"
  35. accesskey="M">modules</a> |</li>
  36. <li class="right" >
  37. <a href="concepts.html" title="Concepts"
  38. accesskey="N">next</a> |</li>
  39. <li class="right" >
  40. <a href="intro.html" title="1. Introduction"
  41. accesskey="P">previous</a> |</li>
  42. <li><a href="index.html">Documentation</a> &raquo;</li>
  43. <li><a href="intro.html" accesskey="U">1. Introduction</a> &raquo;</li>
  44. </ul>
  45. </div>
  46. <div class="sphinxsidebar">
  47. <div class="sphinxsidebarwrapper">
  48. <h3><a href="index.html">Table Of Contents</a></h3>
  49. <ul>
  50. <li><a class="reference external" href="">Web Notes Framework</a><ul>
  51. <li><a class="reference external" href="#why-web-notes-framework">Why Web Notes Framework?</a></li>
  52. <li><a class="reference external" href="#see-it-in-action">See it in action</a></li>
  53. <li><a class="reference external" href="#setting-up-and-installing">Setting Up and Installing</a></li>
  54. </ul>
  55. </li>
  56. </ul>
  57. <h4>Previous topic</h4>
  58. <p class="topless"><a href="intro.html"
  59. title="previous chapter">1. Introduction</a></p>
  60. <h4>Next topic</h4>
  61. <p class="topless"><a href="concepts.html"
  62. title="next chapter">Concepts</a></p>
  63. <h3>This Page</h3>
  64. <ul class="this-page-menu">
  65. <li><a href="_sources/webnotes_intro.txt"
  66. rel="nofollow">Show Source</a></li>
  67. </ul>
  68. <div id="searchbox" style="display: none">
  69. <h3>Quick search</h3>
  70. <form class="search" action="search.html" method="get">
  71. <input type="text" name="q" size="18" />
  72. <input type="submit" value="Go" />
  73. <input type="hidden" name="check_keywords" value="yes" />
  74. <input type="hidden" name="area" value="default" />
  75. </form>
  76. <p class="searchtip" style="font-size: 90%">
  77. Enter search terms or a module, class or function name.
  78. </p>
  79. </div>
  80. <script type="text/javascript">$('#searchbox').show(0);</script>
  81. </div>
  82. </div>
  83. <div class="document">
  84. <div class="documentwrapper">
  85. <div class="bodywrapper">
  86. <div class="body">
  87. <div class="section" id="web-notes-framework">
  88. <h1>Web Notes Framework<a class="headerlink" href="#web-notes-framework" title="Permalink to this headline">¶</a></h1>
  89. <div class="section" id="why-web-notes-framework">
  90. <h2>Why Web Notes Framework?<a class="headerlink" href="#why-web-notes-framework" title="Permalink to this headline">¶</a></h2>
  91. <p>This question was not relevant in 2005 when the Framework started being developed, now however,
  92. there are many popular frameworks beginning with Ruby on Rails, Django, GWT etc. Does it make sense to look
  93. at yet another framework? We think yes, here are a few reasons:</p>
  94. <ul class="simple">
  95. <li>It is a pure meta-data framework, not based on templates that most frameworks support, taking automation
  96. the next level</li>
  97. <li>It has back-end and front-end integrated with built-in AJAX</li>
  98. <li>It has more features out-of-the box than any other framework</li>
  99. <li>It is extremely light weight and runs on Apache-CGI</li>
  100. </ul>
  101. </div>
  102. <div class="section" id="see-it-in-action">
  103. <h2>See it in action<a class="headerlink" href="#see-it-in-action" title="Permalink to this headline">¶</a></h2>
  104. <p>Go to <a class="reference external" href="http://wnframework.org">http://wnframework.org</a> for more info</p>
  105. </div>
  106. <div class="section" id="setting-up-and-installing">
  107. <h2>Setting Up and Installing<a class="headerlink" href="#setting-up-and-installing" title="Permalink to this headline">¶</a></h2>
  108. <blockquote>
  109. <ol class="arabic">
  110. <li><p class="first">Pre-requisites</p>
  111. <ol class="arabic simple">
  112. <li>Python</li>
  113. <li>MySQL</li>
  114. <li>MySQL-Python</li>
  115. </ol>
  116. </li>
  117. <li><p class="first">Setting Up Apache</p>
  118. <p>Changes to httpd.conf to enable execution of CGI files from anywhere</p>
  119. <ol class="arabic">
  120. <li><p class="first">Add ExecCGI to Options directive</p>
  121. </li>
  122. <li><p class="first">Uncomment AddHandler for ExecCGI</p>
  123. </li>
  124. <li><p class="first">Add (to block python files from being directly viewed):</p>
  125. <div class="highlight-python"><pre>RewriteEngine on
  126. RewriteRule \.py - [F]</pre>
  127. </div>
  128. </li>
  129. </ol>
  130. </li>
  131. <li><p class="first">Setting Up Framework</p>
  132. <ol class="arabic">
  133. <li><p class="first">Download the framework to your &#8220;www&#8221; folder:</p>
  134. <div class="highlight-python"><pre>svn checkout http://wnframework.googlecode.com/svn/trunk/v170/</pre>
  135. </div>
  136. </li>
  137. <li><p class="first">Set mysql root login details in: cgi-bin/defs.py</p>
  138. </li>
  139. <li><p class="first">Go to the cgi-bin python create the base account:</p>
  140. <div class="highlight-python"><div class="highlight"><pre><span class="kn">import</span> <span class="nn">server</span>
  141. <span class="n">server</span><span class="o">.</span><span class="n">create_account</span><span class="p">(</span><span class="s">&#39;accounts&#39;</span><span class="p">)</span>
  142. </pre></div>
  143. </div>
  144. </li>
  145. </ol>
  146. </li>
  147. <li><p class="first">Start the apache webserver and go to your browser:</p>
  148. <blockquote>
  149. <p>localhost/login.html</p>
  150. <p>account: accounts
  151. login: Administrator
  152. password: admin</p>
  153. </blockquote>
  154. </li>
  155. </ol>
  156. <p><strong>You are set!</strong></p>
  157. </blockquote>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <div class="clearer"></div>
  164. </div>
  165. <div class="related">
  166. <h3>Navigation</h3>
  167. <ul>
  168. <li class="right" style="margin-right: 10px">
  169. <a href="genindex.html" title="General Index"
  170. >index</a></li>
  171. <li class="right" >
  172. <a href="modindex.html" title="Global Module Index"
  173. >modules</a> |</li>
  174. <li class="right" >
  175. <a href="concepts.html" title="Concepts"
  176. >next</a> |</li>
  177. <li class="right" >
  178. <a href="intro.html" title="1. Introduction"
  179. >previous</a> |</li>
  180. <li><a href="index.html">Documentation</a> &raquo;</li>
  181. <li><a href="intro.html" >1. Introduction</a> &raquo;</li>
  182. </ul>
  183. </div>
  184. <div class="footer">
  185. &copy; Copyright 2010, Rushabh Mehta.
  186. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
  187. </div>
  188. </body>
  189. </html>