Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

230 righe
15 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>install_lib Package &mdash; WNFramework v1.8 documentation</title>
  7. <link rel="stylesheet" href="_static/default.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: '1.8',
  13. COLLAPSE_INDEX: 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/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="top" title="WNFramework v1.8 documentation" href="index.html" />
  22. </head>
  23. <body>
  24. <div class="related">
  25. <h3>Navigation</h3>
  26. <ul>
  27. <li class="right" style="margin-right: 10px">
  28. <a href="genindex.html" title="General Index"
  29. accesskey="I">index</a></li>
  30. <li class="right" >
  31. <a href="py-modindex.html" title="Python Module Index"
  32. >modules</a> |</li>
  33. <li><a href="index.html">WNFramework v1.8 documentation</a> &raquo;</li>
  34. </ul>
  35. </div>
  36. <div class="document">
  37. <div class="documentwrapper">
  38. <div class="bodywrapper">
  39. <div class="body">
  40. <div class="section" id="install-lib-package">
  41. <h1>install_lib Package<a class="headerlink" href="#install-lib-package" title="Permalink to this headline">¶</a></h1>
  42. <div class="section" id="module-webnotes.install_lib.db_init">
  43. <span id="db-init-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">db_init</span></tt> Module<a class="headerlink" href="#module-webnotes.install_lib.db_init" title="Permalink to this headline">¶</a></h2>
  44. <p>Create a database from scratch (wip)</p>
  45. <dl class="class">
  46. <dt id="webnotes.install_lib.db_init.DatabaseInstance">
  47. <em class="property">class </em><tt class="descclassname">webnotes.install_lib.db_init.</tt><tt class="descname">DatabaseInstance</tt><big>(</big><em>conn=None</em>, <em>db_name=None</em><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance" title="Permalink to this definition">¶</a></dt>
  48. <dd><dl class="method">
  49. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_base_tables">
  50. <tt class="descname">create_base_tables</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_base_tables"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_base_tables" title="Permalink to this definition">¶</a></dt>
  51. <dd></dd></dl>
  52. <dl class="method">
  53. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_db_and_user">
  54. <tt class="descname">create_db_and_user</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_db_and_user"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_db_and_user" title="Permalink to this definition">¶</a></dt>
  55. <dd></dd></dl>
  56. <dl class="method">
  57. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_docfield">
  58. <tt class="descname">create_docfield</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_docfield"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_docfield" title="Permalink to this definition">¶</a></dt>
  59. <dd></dd></dl>
  60. <dl class="method">
  61. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_docformat">
  62. <tt class="descname">create_docformat</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_docformat"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_docformat" title="Permalink to this definition">¶</a></dt>
  63. <dd></dd></dl>
  64. <dl class="method">
  65. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_docperm">
  66. <tt class="descname">create_docperm</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_docperm"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_docperm" title="Permalink to this definition">¶</a></dt>
  67. <dd></dd></dl>
  68. <dl class="method">
  69. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_doctype">
  70. <tt class="descname">create_doctype</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_doctype"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_doctype" title="Permalink to this definition">¶</a></dt>
  71. <dd></dd></dl>
  72. <dl class="method">
  73. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_doctypecache">
  74. <tt class="descname">create_doctypecache</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_doctypecache"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_doctypecache" title="Permalink to this definition">¶</a></dt>
  75. <dd></dd></dl>
  76. <dl class="method">
  77. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_module_def">
  78. <tt class="descname">create_module_def</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_module_def"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_module_def" title="Permalink to this definition">¶</a></dt>
  79. <dd></dd></dl>
  80. <dl class="method">
  81. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_role">
  82. <tt class="descname">create_role</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_role"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_role" title="Permalink to this definition">¶</a></dt>
  83. <dd></dd></dl>
  84. <dl class="method">
  85. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_sessions">
  86. <tt class="descname">create_sessions</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_sessions"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_sessions" title="Permalink to this definition">¶</a></dt>
  87. <dd></dd></dl>
  88. <dl class="method">
  89. <dt id="webnotes.install_lib.db_init.DatabaseInstance.create_singles">
  90. <tt class="descname">create_singles</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.create_singles"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.create_singles" title="Permalink to this definition">¶</a></dt>
  91. <dd></dd></dl>
  92. <dl class="method">
  93. <dt id="webnotes.install_lib.db_init.DatabaseInstance.import_system_module">
  94. <tt class="descname">import_system_module</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.import_system_module"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.import_system_module" title="Permalink to this definition">¶</a></dt>
  95. <dd></dd></dl>
  96. <dl class="method">
  97. <dt id="webnotes.install_lib.db_init.DatabaseInstance.post_cleanup">
  98. <tt class="descname">post_cleanup</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/db_init.html#DatabaseInstance.post_cleanup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.db_init.DatabaseInstance.post_cleanup" title="Permalink to this definition">¶</a></dt>
  99. <dd></dd></dl>
  100. </dd></dl>
  101. </div>
  102. <div class="section" id="module-webnotes.install_lib.install">
  103. <span id="install-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">install</span></tt> Module<a class="headerlink" href="#module-webnotes.install_lib.install" title="Permalink to this headline">¶</a></h2>
  104. <dl class="class">
  105. <dt id="webnotes.install_lib.install.Installer">
  106. <em class="property">class </em><tt class="descclassname">webnotes.install_lib.install.</tt><tt class="descname">Installer</tt><big>(</big><em>root_login</em>, <em>root_password</em><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/install.html#Installer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.install.Installer" title="Permalink to this definition">¶</a></dt>
  107. <dd><dl class="method">
  108. <dt id="webnotes.install_lib.install.Installer.create_users">
  109. <tt class="descname">create_users</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/install.html#Installer.create_users"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.install.Installer.create_users" title="Permalink to this definition">¶</a></dt>
  110. <dd><p>Create Administrator / Guest</p>
  111. </dd></dl>
  112. <dl class="method">
  113. <dt id="webnotes.install_lib.install.Installer.framework_cleanups">
  114. <tt class="descname">framework_cleanups</tt><big>(</big><em>target</em><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/install.html#Installer.framework_cleanups"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.install.Installer.framework_cleanups" title="Permalink to this definition">¶</a></dt>
  115. <dd></dd></dl>
  116. <dl class="method">
  117. <dt id="webnotes.install_lib.install.Installer.import_core_module">
  118. <tt class="descname">import_core_module</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/install.html#Installer.import_core_module"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.install.Installer.import_core_module" title="Permalink to this definition">¶</a></dt>
  119. <dd><p>Imports the &#8220;Core&#8221; module from .txt file and creates
  120. Creates profile Administrator</p>
  121. </dd></dl>
  122. <dl class="method">
  123. <dt id="webnotes.install_lib.install.Installer.import_from_db">
  124. <tt class="descname">import_from_db</tt><big>(</big><em>target</em>, <em>source_path=''</em>, <em>password='admin'</em>, <em>verbose=0</em><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/install.html#Installer.import_from_db"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.install.Installer.import_from_db" title="Permalink to this definition">¶</a></dt>
  125. <dd><p>a very simplified version, just for the time being..will eventually be deprecated once the framework stabilizes.</p>
  126. </dd></dl>
  127. </dd></dl>
  128. <dl class="function">
  129. <dt id="webnotes.install_lib.install.copy_defs">
  130. <tt class="descclassname">webnotes.install_lib.install.</tt><tt class="descname">copy_defs</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/install.html#copy_defs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.install.copy_defs" title="Permalink to this definition">¶</a></dt>
  131. <dd></dd></dl>
  132. <dl class="function">
  133. <dt id="webnotes.install_lib.install.get_parser">
  134. <tt class="descclassname">webnotes.install_lib.install.</tt><tt class="descname">get_parser</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/install.html#get_parser"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.install.get_parser" title="Permalink to this definition">¶</a></dt>
  135. <dd></dd></dl>
  136. <dl class="function">
  137. <dt id="webnotes.install_lib.install.make_scheduler">
  138. <tt class="descclassname">webnotes.install_lib.install.</tt><tt class="descname">make_scheduler</tt><big>(</big><em>root_login</em>, <em>root_password</em>, <em>verbose</em><big>)</big><a class="reference internal" href="_modules/webnotes/install_lib/install.html#make_scheduler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.install_lib.install.make_scheduler" title="Permalink to this definition">¶</a></dt>
  139. <dd><p>Make the database where all scheduler events will be stored from multiple datbases
  140. See webnotes.utils.scheduler for more information</p>
  141. </dd></dl>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <div class="sphinxsidebar">
  148. <div class="sphinxsidebarwrapper">
  149. <p class="logo"><a href="index.html">
  150. <img class="logo" src="_static/wnflogo200.gif" alt="Logo"/>
  151. </a></p>
  152. <h3><a href="index.html">Table Of Contents</a></h3>
  153. <ul>
  154. <li><a class="reference internal" href="#">install_lib Package</a><ul>
  155. <li><a class="reference internal" href="#module-webnotes.install_lib.db_init"><tt class="docutils literal"><span class="pre">db_init</span></tt> Module</a></li>
  156. <li><a class="reference internal" href="#module-webnotes.install_lib.install"><tt class="docutils literal"><span class="pre">install</span></tt> Module</a></li>
  157. </ul>
  158. </li>
  159. </ul>
  160. <h3>This Page</h3>
  161. <ul class="this-page-menu">
  162. <li><a href="_sources/webnotes.install_lib.txt"
  163. rel="nofollow">Show Source</a></li>
  164. </ul>
  165. <div id="searchbox" style="display: none">
  166. <h3>Quick search</h3>
  167. <form class="search" action="search.html" method="get">
  168. <input type="text" name="q" size="18" />
  169. <input type="submit" value="Go" />
  170. <input type="hidden" name="check_keywords" value="yes" />
  171. <input type="hidden" name="area" value="default" />
  172. </form>
  173. <p class="searchtip" style="font-size: 90%">
  174. Enter search terms or a module, class or function name.
  175. </p>
  176. </div>
  177. <script type="text/javascript">$('#searchbox').show(0);</script>
  178. </div>
  179. </div>
  180. <div class="clearer"></div>
  181. </div>
  182. <div class="related">
  183. <h3>Navigation</h3>
  184. <ul>
  185. <li class="right" style="margin-right: 10px">
  186. <a href="genindex.html" title="General Index"
  187. >index</a></li>
  188. <li class="right" >
  189. <a href="py-modindex.html" title="Python Module Index"
  190. >modules</a> |</li>
  191. <li><a href="index.html">WNFramework v1.8 documentation</a> &raquo;</li>
  192. </ul>
  193. </div>
  194. <div class="footer">
  195. &copy; Copyright 2011, Rushabh Mehta, Web Notes Technologies.
  196. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
  197. </div>
  198. </body>
  199. </html>