No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

911 líneas
71 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>webnotes 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. <link rel="next" title="install_lib Package" href="webnotes.install_lib.html" />
  23. <link rel="prev" title="page Package" href="core.page.html" />
  24. </head>
  25. <body>
  26. <div class="related">
  27. <h3>Navigation</h3>
  28. <ul>
  29. <li class="right" style="margin-right: 10px">
  30. <a href="genindex.html" title="General Index"
  31. accesskey="I">index</a></li>
  32. <li class="right" >
  33. <a href="py-modindex.html" title="Python Module Index"
  34. >modules</a> |</li>
  35. <li class="right" >
  36. <a href="webnotes.install_lib.html" title="install_lib Package"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="core.page.html" title="page Package"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="index.html">WNFramework v1.8 documentation</a> &raquo;</li>
  42. </ul>
  43. </div>
  44. <div class="document">
  45. <div class="documentwrapper">
  46. <div class="bodywrapper">
  47. <div class="body">
  48. <div class="section" id="webnotes-package">
  49. <h1>webnotes Package<a class="headerlink" href="#webnotes-package" title="Permalink to this headline">¶</a></h1>
  50. <div class="section" id="id1">
  51. <h2><a class="reference internal" href="#module-webnotes" title="webnotes"><tt class="xref py py-mod docutils literal"><span class="pre">webnotes</span></tt></a> Package<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
  52. <span class="target" id="module-webnotes"></span><dl class="exception">
  53. <dt id="webnotes.ValidationError">
  54. <em class="property">exception </em><tt class="descclassname">webnotes.</tt><tt class="descname">ValidationError</tt><a class="reference internal" href="_modules/webnotes.html#ValidationError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.ValidationError" title="Permalink to this definition">¶</a></dt>
  55. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  56. </dd></dl>
  57. <dl class="data">
  58. <dt id="webnotes.add_cookies">
  59. <tt class="descclassname">webnotes.</tt><tt class="descname">add_cookies</tt><a class="headerlink" href="#webnotes.add_cookies" title="Permalink to this definition">¶</a></dt>
  60. <dd><p>Dictionary of additional cookies appended by custom code</p>
  61. </dd></dl>
  62. <dl class="data">
  63. <dt id="webnotes.conn">
  64. <tt class="descclassname">webnotes.</tt><tt class="descname">conn</tt><a class="headerlink" href="#webnotes.conn" title="Permalink to this definition">¶</a></dt>
  65. <dd><p>The database connection <a class="reference internal" href="#webnotes.db.Database" title="webnotes.db.Database"><tt class="xref py py-class docutils literal"><span class="pre">webnotes.db.Database</span></tt></a> setup by <tt class="xref py py-mod docutils literal"><span class="pre">auth</span></tt></p>
  66. </dd></dl>
  67. <dl class="function">
  68. <dt id="webnotes.create_folder">
  69. <tt class="descclassname">webnotes.</tt><tt class="descname">create_folder</tt><big>(</big><em>path</em><big>)</big><a class="reference internal" href="_modules/webnotes.html#create_folder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.create_folder" title="Permalink to this definition">¶</a></dt>
  70. <dd><p>Wrapper function for os.makedirs (does not throw exception if directory exists)</p>
  71. </dd></dl>
  72. <dl class="data">
  73. <dt id="webnotes.debug_log">
  74. <tt class="descclassname">webnotes.</tt><tt class="descname">debug_log</tt><a class="headerlink" href="#webnotes.debug_log" title="Permalink to this definition">¶</a></dt>
  75. <dd><p>List of exceptions to be shown in the <em class="xref std std-term">Error Console</em></p>
  76. </dd></dl>
  77. <dl class="function">
  78. <dt id="webnotes.errprint">
  79. <tt class="descclassname">webnotes.</tt><tt class="descname">errprint</tt><big>(</big><em>msg</em><big>)</big><a class="reference internal" href="_modules/webnotes.html#errprint"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.errprint" title="Permalink to this definition">¶</a></dt>
  80. <dd><p>Append to the <tt class="xref py py-data docutils literal"><span class="pre">debug</span> <span class="pre">log</span></tt></p>
  81. </dd></dl>
  82. <dl class="data">
  83. <dt id="webnotes.form">
  84. <tt class="descclassname">webnotes.</tt><tt class="descname">form</tt><a class="headerlink" href="#webnotes.form" title="Permalink to this definition">¶</a></dt>
  85. <dd><p>The cgi.FieldStorage() object (Dictionary representing the formdata from the URL)</p>
  86. </dd></dl>
  87. <dl class="function">
  88. <dt id="webnotes.getTraceback">
  89. <tt class="descclassname">webnotes.</tt><tt class="descname">getTraceback</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes.html#getTraceback"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.getTraceback" title="Permalink to this definition">¶</a></dt>
  90. <dd></dd></dl>
  91. <dl class="function">
  92. <dt id="webnotes.get_env_vars">
  93. <tt class="descclassname">webnotes.</tt><tt class="descname">get_env_vars</tt><big>(</big><em>env_var</em><big>)</big><a class="reference internal" href="_modules/webnotes.html#get_env_vars"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.get_env_vars" title="Permalink to this definition">¶</a></dt>
  94. <dd></dd></dl>
  95. <dl class="function">
  96. <dt id="webnotes.get_files_path">
  97. <tt class="descclassname">webnotes.</tt><tt class="descname">get_files_path</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes.html#get_files_path"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.get_files_path" title="Permalink to this definition">¶</a></dt>
  98. <dd></dd></dl>
  99. <dl class="function">
  100. <dt id="webnotes.get_index_path">
  101. <tt class="descclassname">webnotes.</tt><tt class="descname">get_index_path</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes.html#get_index_path"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.get_index_path" title="Permalink to this definition">¶</a></dt>
  102. <dd></dd></dl>
  103. <dl class="function">
  104. <dt id="webnotes.is_apache_user">
  105. <tt class="descclassname">webnotes.</tt><tt class="descname">is_apache_user</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes.html#is_apache_user"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.is_apache_user" title="Permalink to this definition">¶</a></dt>
  106. <dd></dd></dl>
  107. <dl class="data">
  108. <dt id="webnotes.is_testing">
  109. <tt class="descclassname">webnotes.</tt><tt class="descname">is_testing</tt><a class="headerlink" href="#webnotes.is_testing" title="Permalink to this definition">¶</a></dt>
  110. <dd><p>Flag to identify if system is in <em class="xref std std-term">Testing Mode</em></p>
  111. </dd></dl>
  112. <dl class="data">
  113. <dt id="webnotes.message_log">
  114. <tt class="descclassname">webnotes.</tt><tt class="descname">message_log</tt><a class="headerlink" href="#webnotes.message_log" title="Permalink to this definition">¶</a></dt>
  115. <dd><p>List of messages to be shown to the user in a popup box at the end of the request</p>
  116. </dd></dl>
  117. <dl class="function">
  118. <dt id="webnotes.msgprint">
  119. <tt class="descclassname">webnotes.</tt><tt class="descname">msgprint</tt><big>(</big><em>msg</em>, <em>small=0</em>, <em>raise_exception=0</em><big>)</big><a class="reference internal" href="_modules/webnotes.html#msgprint"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.msgprint" title="Permalink to this definition">¶</a></dt>
  120. <dd><p>Append to the <a class="reference internal" href="#webnotes.message_log" title="webnotes.message_log"><tt class="xref py py-data docutils literal"><span class="pre">message_log</span></tt></a></p>
  121. </dd></dl>
  122. <dl class="data">
  123. <dt id="webnotes.response">
  124. <tt class="descclassname">webnotes.</tt><tt class="descname">response</tt><a class="headerlink" href="#webnotes.response" title="Permalink to this definition">¶</a></dt>
  125. <dd><p>The JSON response object. Default is:</p>
  126. <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span><span class="s">&#39;message&#39;</span><span class="p">:</span><span class="s">&#39;&#39;</span><span class="p">,</span> <span class="s">&#39;exc&#39;</span><span class="p">:</span><span class="s">&#39;&#39;</span><span class="p">}</span>
  127. </pre></div>
  128. </div>
  129. </dd></dl>
  130. <dl class="data">
  131. <dt id="webnotes.session">
  132. <tt class="descclassname">webnotes.</tt><tt class="descname">session</tt><a class="headerlink" href="#webnotes.session" title="Permalink to this definition">¶</a></dt>
  133. <dd><p>Global session dictionary.</p>
  134. <ul class="simple">
  135. <li>session[&#8216;user&#8217;] - Current user</li>
  136. <li>session[&#8216;data&#8217;] - Returns a dictionary of the session cache</li>
  137. </ul>
  138. </dd></dl>
  139. <dl class="function">
  140. <dt id="webnotes.set_as_account_master">
  141. <tt class="descclassname">webnotes.</tt><tt class="descname">set_as_account_master</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes.html#set_as_account_master"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.set_as_account_master" title="Permalink to this definition">¶</a></dt>
  142. <dd></dd></dl>
  143. <dl class="function">
  144. <dt id="webnotes.set_as_admin">
  145. <tt class="descclassname">webnotes.</tt><tt class="descname">set_as_admin</tt><big>(</big><em>db_name=None</em>, <em>ac_name=None</em><big>)</big><a class="reference internal" href="_modules/webnotes.html#set_as_admin"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.set_as_admin" title="Permalink to this definition">¶</a></dt>
  146. <dd></dd></dl>
  147. <dl class="function">
  148. <dt id="webnotes.set_as_admin_session">
  149. <tt class="descclassname">webnotes.</tt><tt class="descname">set_as_admin_session</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes.html#set_as_admin_session"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.set_as_admin_session" title="Permalink to this definition">¶</a></dt>
  150. <dd></dd></dl>
  151. <dl class="function">
  152. <dt id="webnotes.set_as_administrator">
  153. <tt class="descclassname">webnotes.</tt><tt class="descname">set_as_administrator</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes.html#set_as_administrator"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.set_as_administrator" title="Permalink to this definition">¶</a></dt>
  154. <dd></dd></dl>
  155. <dl class="function">
  156. <dt id="webnotes.setup_logging">
  157. <tt class="descclassname">webnotes.</tt><tt class="descname">setup_logging</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes.html#setup_logging"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.setup_logging" title="Permalink to this definition">¶</a></dt>
  158. <dd></dd></dl>
  159. <dl class="data">
  160. <dt id="webnotes.version">
  161. <tt class="descclassname">webnotes.</tt><tt class="descname">version</tt><a class="headerlink" href="#webnotes.version" title="Permalink to this definition">¶</a></dt>
  162. <dd><p>&#8220;v170&#8221;</p>
  163. </dd></dl>
  164. </div>
  165. <div class="section" id="module-webnotes.auth">
  166. <span id="auth-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">auth</span></tt> Module<a class="headerlink" href="#module-webnotes.auth" title="Permalink to this headline">¶</a></h2>
  167. <dl class="class">
  168. <dt id="webnotes.auth.CookieManager">
  169. <em class="property">class </em><tt class="descclassname">webnotes.auth.</tt><tt class="descname">CookieManager</tt><a class="reference internal" href="_modules/webnotes/auth.html#CookieManager"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.CookieManager" title="Permalink to this definition">¶</a></dt>
  170. <dd><dl class="method">
  171. <dt id="webnotes.auth.CookieManager.get_incoming_cookies">
  172. <tt class="descname">get_incoming_cookies</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#CookieManager.get_incoming_cookies"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.CookieManager.get_incoming_cookies" title="Permalink to this definition">¶</a></dt>
  173. <dd></dd></dl>
  174. <dl class="method">
  175. <dt id="webnotes.auth.CookieManager.set_cookies">
  176. <tt class="descname">set_cookies</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#CookieManager.set_cookies"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.CookieManager.set_cookies" title="Permalink to this definition">¶</a></dt>
  177. <dd></dd></dl>
  178. <dl class="method">
  179. <dt id="webnotes.auth.CookieManager.set_remember_me">
  180. <tt class="descname">set_remember_me</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#CookieManager.set_remember_me"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.CookieManager.set_remember_me" title="Permalink to this definition">¶</a></dt>
  181. <dd></dd></dl>
  182. </dd></dl>
  183. <dl class="class">
  184. <dt id="webnotes.auth.HTTPRequest">
  185. <em class="property">class </em><tt class="descclassname">webnotes.auth.</tt><tt class="descname">HTTPRequest</tt><a class="reference internal" href="_modules/webnotes/auth.html#HTTPRequest"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.HTTPRequest" title="Permalink to this definition">¶</a></dt>
  186. <dd><dl class="method">
  187. <dt id="webnotes.auth.HTTPRequest.get_ac_name">
  188. <tt class="descname">get_ac_name</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#HTTPRequest.get_ac_name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.HTTPRequest.get_ac_name" title="Permalink to this definition">¶</a></dt>
  189. <dd></dd></dl>
  190. <dl class="method">
  191. <dt id="webnotes.auth.HTTPRequest.set_db">
  192. <tt class="descname">set_db</tt><big>(</big><em>ac_name=None</em><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#HTTPRequest.set_db"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.HTTPRequest.set_db" title="Permalink to this definition">¶</a></dt>
  193. <dd></dd></dl>
  194. <dl class="method">
  195. <dt id="webnotes.auth.HTTPRequest.setup_profile">
  196. <tt class="descname">setup_profile</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#HTTPRequest.setup_profile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.HTTPRequest.setup_profile" title="Permalink to this definition">¶</a></dt>
  197. <dd></dd></dl>
  198. </dd></dl>
  199. <dl class="class">
  200. <dt id="webnotes.auth.LoginManager">
  201. <em class="property">class </em><tt class="descclassname">webnotes.auth.</tt><tt class="descname">LoginManager</tt><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager" title="Permalink to this definition">¶</a></dt>
  202. <dd><dl class="method">
  203. <dt id="webnotes.auth.LoginManager.authenticate">
  204. <tt class="descname">authenticate</tt><big>(</big><em>user=None</em>, <em>pwd=None</em><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager.authenticate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager.authenticate" title="Permalink to this definition">¶</a></dt>
  205. <dd></dd></dl>
  206. <dl class="method">
  207. <dt id="webnotes.auth.LoginManager.call_on_logout_event">
  208. <tt class="descname">call_on_logout_event</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager.call_on_logout_event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager.call_on_logout_event" title="Permalink to this definition">¶</a></dt>
  209. <dd></dd></dl>
  210. <dl class="method">
  211. <dt id="webnotes.auth.LoginManager.load_control_panel">
  212. <tt class="descname">load_control_panel</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager.load_control_panel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager.load_control_panel" title="Permalink to this definition">¶</a></dt>
  213. <dd></dd></dl>
  214. <dl class="method">
  215. <dt id="webnotes.auth.LoginManager.login_as_guest">
  216. <tt class="descname">login_as_guest</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager.login_as_guest"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager.login_as_guest" title="Permalink to this definition">¶</a></dt>
  217. <dd></dd></dl>
  218. <dl class="method">
  219. <dt id="webnotes.auth.LoginManager.logout">
  220. <tt class="descname">logout</tt><big>(</big><em>arg=''</em><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager.logout"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager.logout" title="Permalink to this definition">¶</a></dt>
  221. <dd></dd></dl>
  222. <dl class="method">
  223. <dt id="webnotes.auth.LoginManager.post_login">
  224. <tt class="descname">post_login</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager.post_login"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager.post_login" title="Permalink to this definition">¶</a></dt>
  225. <dd></dd></dl>
  226. <dl class="method">
  227. <dt id="webnotes.auth.LoginManager.run_trigger">
  228. <tt class="descname">run_trigger</tt><big>(</big><em>method='on_login'</em><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager.run_trigger"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager.run_trigger" title="Permalink to this definition">¶</a></dt>
  229. <dd></dd></dl>
  230. <dl class="method">
  231. <dt id="webnotes.auth.LoginManager.validate_ip_address">
  232. <tt class="descname">validate_ip_address</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#LoginManager.validate_ip_address"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.LoginManager.validate_ip_address" title="Permalink to this definition">¶</a></dt>
  233. <dd></dd></dl>
  234. </dd></dl>
  235. <dl class="class">
  236. <dt id="webnotes.auth.Session">
  237. <em class="property">class </em><tt class="descclassname">webnotes.auth.</tt><tt class="descname">Session</tt><big>(</big><em>user=None</em><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session" title="Permalink to this definition">¶</a></dt>
  238. <dd><dl class="method">
  239. <dt id="webnotes.auth.Session.add_status_column">
  240. <tt class="descname">add_status_column</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session.add_status_column"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session.add_status_column" title="Permalink to this definition">¶</a></dt>
  241. <dd></dd></dl>
  242. <dl class="method">
  243. <dt id="webnotes.auth.Session.check_expired">
  244. <tt class="descname">check_expired</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session.check_expired"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session.check_expired" title="Permalink to this definition">¶</a></dt>
  245. <dd></dd></dl>
  246. <dl class="method">
  247. <dt id="webnotes.auth.Session.get_ipinfo">
  248. <tt class="descname">get_ipinfo</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session.get_ipinfo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session.get_ipinfo" title="Permalink to this definition">¶</a></dt>
  249. <dd></dd></dl>
  250. <dl class="method">
  251. <dt id="webnotes.auth.Session.insert_session_record">
  252. <tt class="descname">insert_session_record</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session.insert_session_record"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session.insert_session_record" title="Permalink to this definition">¶</a></dt>
  253. <dd></dd></dl>
  254. <dl class="method">
  255. <dt id="webnotes.auth.Session.load">
  256. <tt class="descname">load</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session.load" title="Permalink to this definition">¶</a></dt>
  257. <dd></dd></dl>
  258. <dl class="method">
  259. <dt id="webnotes.auth.Session.resume">
  260. <tt class="descname">resume</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session.resume"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session.resume" title="Permalink to this definition">¶</a></dt>
  261. <dd></dd></dl>
  262. <dl class="method">
  263. <dt id="webnotes.auth.Session.start">
  264. <tt class="descname">start</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session.start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session.start" title="Permalink to this definition">¶</a></dt>
  265. <dd></dd></dl>
  266. <dl class="method">
  267. <dt id="webnotes.auth.Session.update">
  268. <tt class="descname">update</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/auth.html#Session.update"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.auth.Session.update" title="Permalink to this definition">¶</a></dt>
  269. <dd></dd></dl>
  270. </dd></dl>
  271. </div>
  272. <div class="section" id="module-webnotes.db">
  273. <span id="db-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">db</span></tt> Module<a class="headerlink" href="#module-webnotes.db" title="Permalink to this headline">¶</a></h2>
  274. <dl class="class">
  275. <dt id="webnotes.db.Database">
  276. <em class="property">class </em><tt class="descclassname">webnotes.db.</tt><tt class="descname">Database</tt><big>(</big><em>host=''</em>, <em>user=''</em>, <em>password=''</em>, <em>ac_name=''</em>, <em>use_default=0</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database" title="Permalink to this definition">¶</a></dt>
  277. <dd><p>Open a database connection with the given parmeters, if use_default is True, use the
  278. login details from <cite>defs.py</cite>. This is called by the request handler and is accessible using
  279. the <cite>conn</cite> global variable. the <cite>sql</cite> method is also global to run queries</p>
  280. <dl class="method">
  281. <dt id="webnotes.db.Database.add_multi_tenant_condition">
  282. <tt class="descname">add_multi_tenant_condition</tt><big>(</big><em>query</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.add_multi_tenant_condition"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.add_multi_tenant_condition" title="Permalink to this definition">¶</a></dt>
  283. <dd></dd></dl>
  284. <dl class="method">
  285. <dt id="webnotes.db.Database.begin">
  286. <tt class="descname">begin</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.begin"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.begin" title="Permalink to this definition">¶</a></dt>
  287. <dd></dd></dl>
  288. <dl class="method">
  289. <dt id="webnotes.db.Database.check_transaction_status">
  290. <tt class="descname">check_transaction_status</tt><big>(</big><em>query</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.check_transaction_status"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.check_transaction_status" title="Permalink to this definition">¶</a></dt>
  291. <dd><p>Update <em>in_transaction</em> and check if &#8220;START TRANSACTION&#8221; is not called twice</p>
  292. </dd></dl>
  293. <dl class="method">
  294. <dt id="webnotes.db.Database.close">
  295. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.close" title="Permalink to this definition">¶</a></dt>
  296. <dd><p>Close my connection</p>
  297. </dd></dl>
  298. <dl class="method">
  299. <dt id="webnotes.db.Database.commit">
  300. <tt class="descname">commit</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.commit"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.commit" title="Permalink to this definition">¶</a></dt>
  301. <dd></dd></dl>
  302. <dl class="method">
  303. <dt id="webnotes.db.Database.connect">
  304. <tt class="descname">connect</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.connect"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.connect" title="Permalink to this definition">¶</a></dt>
  305. <dd><p>Connect to a database</p>
  306. </dd></dl>
  307. <dl class="method">
  308. <dt id="webnotes.db.Database.convert_to_lists">
  309. <tt class="descname">convert_to_lists</tt><big>(</big><em>res</em>, <em>formatted=0</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.convert_to_lists"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.convert_to_lists" title="Permalink to this definition">¶</a></dt>
  310. <dd><p>Convert the given result set to a list of lists (with cleaned up dates and decimals)</p>
  311. </dd></dl>
  312. <dl class="method">
  313. <dt id="webnotes.db.Database.convert_to_simple_type">
  314. <tt class="descname">convert_to_simple_type</tt><big>(</big><em>v</em>, <em>formatted=0</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.convert_to_simple_type"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.convert_to_simple_type" title="Permalink to this definition">¶</a></dt>
  315. <dd></dd></dl>
  316. <dl class="method">
  317. <dt id="webnotes.db.Database.exists">
  318. <tt class="descname">exists</tt><big>(</big><em>dt</em>, <em>dn</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.exists"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.exists" title="Permalink to this definition">¶</a></dt>
  319. <dd><p>Returns true if the record exists</p>
  320. </dd></dl>
  321. <dl class="method">
  322. <dt id="webnotes.db.Database.fetch_as_dict">
  323. <tt class="descname">fetch_as_dict</tt><big>(</big><em>formatted=0</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.fetch_as_dict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.fetch_as_dict" title="Permalink to this definition">¶</a></dt>
  324. <dd><p>Internal - get results as dictionary</p>
  325. </dd></dl>
  326. <dl class="method">
  327. <dt id="webnotes.db.Database.field_exists">
  328. <tt class="descname">field_exists</tt><big>(</big><em>dt</em>, <em>fn</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.field_exists"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.field_exists" title="Permalink to this definition">¶</a></dt>
  329. <dd><p>Returns True if <cite>fn</cite> exists in <cite>DocType</cite> <cite>dt</cite></p>
  330. </dd></dl>
  331. <dl class="method">
  332. <dt id="webnotes.db.Database.get_db_login">
  333. <tt class="descname">get_db_login</tt><big>(</big><em>ac_name</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.get_db_login"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.get_db_login" title="Permalink to this definition">¶</a></dt>
  334. <dd></dd></dl>
  335. <dl class="method">
  336. <dt id="webnotes.db.Database.get_description">
  337. <tt class="descname">get_description</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.get_description"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.get_description" title="Permalink to this definition">¶</a></dt>
  338. <dd><p>Get metadata of the last query</p>
  339. </dd></dl>
  340. <dl class="method">
  341. <dt id="webnotes.db.Database.get_global">
  342. <tt class="descname">get_global</tt><big>(</big><em>key</em>, <em>user='__global'</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.get_global"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.get_global" title="Permalink to this definition">¶</a></dt>
  343. <dd></dd></dl>
  344. <dl class="method">
  345. <dt id="webnotes.db.Database.get_testing_tables">
  346. <tt class="descname">get_testing_tables</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.get_testing_tables"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.get_testing_tables" title="Permalink to this definition">¶</a></dt>
  347. <dd><p>Get list of all tables for which <cite>tab</cite> is to be replaced by <cite>test</cite> before a query is executed</p>
  348. </dd></dl>
  349. <dl class="method">
  350. <dt id="webnotes.db.Database.get_value">
  351. <tt class="descname">get_value</tt><big>(</big><em>doctype</em>, <em>docname</em>, <em>fieldname</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.get_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.get_value" title="Permalink to this definition">¶</a></dt>
  352. <dd><p>Get a single / multiple value from a record.</p>
  353. <p>For Single DocType, let docname be = None</p>
  354. </dd></dl>
  355. <dl class="method">
  356. <dt id="webnotes.db.Database.replace_tab_by_test">
  357. <tt class="descname">replace_tab_by_test</tt><big>(</big><em>query</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.replace_tab_by_test"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.replace_tab_by_test" title="Permalink to this definition">¶</a></dt>
  358. <dd><p>Relace all <tt class="docutils literal"><span class="pre">tab</span></tt> + doctype to <tt class="docutils literal"><span class="pre">test</span></tt> + doctype</p>
  359. </dd></dl>
  360. <dl class="method">
  361. <dt id="webnotes.db.Database.rollback">
  362. <tt class="descname">rollback</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.rollback"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.rollback" title="Permalink to this definition">¶</a></dt>
  363. <dd></dd></dl>
  364. <dl class="method">
  365. <dt id="webnotes.db.Database.set">
  366. <tt class="descname">set</tt><big>(</big><em>doc</em>, <em>field</em>, <em>val</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.set" title="Permalink to this definition">¶</a></dt>
  367. <dd></dd></dl>
  368. <dl class="method">
  369. <dt id="webnotes.db.Database.set_global">
  370. <tt class="descname">set_global</tt><big>(</big><em>key</em>, <em>val</em>, <em>user='__global'</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.set_global"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.set_global" title="Permalink to this definition">¶</a></dt>
  371. <dd></dd></dl>
  372. <dl class="method">
  373. <dt id="webnotes.db.Database.set_value">
  374. <tt class="descname">set_value</tt><big>(</big><em>dt</em>, <em>dn</em>, <em>field</em>, <em>val</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.set_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.set_value" title="Permalink to this definition">¶</a></dt>
  375. <dd></dd></dl>
  376. <dl class="method">
  377. <dt id="webnotes.db.Database.sql">
  378. <tt class="descname">sql</tt><big>(</big><em>query</em>, <em>values=()</em>, <em>as_dict=0</em>, <em>as_list=0</em>, <em>formatted=0</em>, <em>ignore_no_table=1</em>, <em>debug=0</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.sql"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.sql" title="Permalink to this definition">¶</a></dt>
  379. <dd><ul class="simple">
  380. <li>Execute a <cite>query</cite>, with given <cite>values</cite></li>
  381. <li>returns as a dictionary if as_dict = 1</li>
  382. <li>returns as a list of lists (with cleaned up dates and decimals) if as_list = 1</li>
  383. </ul>
  384. </dd></dl>
  385. <dl class="method">
  386. <dt id="webnotes.db.Database.use">
  387. <tt class="descname">use</tt><big>(</big><em>db_name</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.use"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.use" title="Permalink to this definition">¶</a></dt>
  388. <dd><p><cite>USE</cite> db_name</p>
  389. </dd></dl>
  390. <dl class="method">
  391. <dt id="webnotes.db.Database.validate_query">
  392. <tt class="descname">validate_query</tt><big>(</big><em>q</em><big>)</big><a class="reference internal" href="_modules/webnotes/db.html#Database.validate_query"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.db.Database.validate_query" title="Permalink to this definition">¶</a></dt>
  393. <dd></dd></dl>
  394. </dd></dl>
  395. </div>
  396. <div class="section" id="module-webnotes.defs">
  397. <span id="defs-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">defs</span></tt> Module<a class="headerlink" href="#module-webnotes.defs" title="Permalink to this headline">¶</a></h2>
  398. </div>
  399. <div class="section" id="module-webnotes.defs_template">
  400. <span id="defs-template-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">defs_template</span></tt> Module<a class="headerlink" href="#module-webnotes.defs_template" title="Permalink to this headline">¶</a></h2>
  401. </div>
  402. <div class="section" id="module-webnotes.handler">
  403. <span id="handler-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">handler</span></tt> Module<a class="headerlink" href="#module-webnotes.handler" title="Permalink to this headline">¶</a></h2>
  404. <dl class="function">
  405. <dt id="webnotes.handler.backupdb">
  406. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">backupdb</tt><big>(</big><em>form_dict</em>, <em>session</em><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#backupdb"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.backupdb" title="Permalink to this definition">¶</a></dt>
  407. <dd></dd></dl>
  408. <dl class="function">
  409. <dt id="webnotes.handler.cleanup_docs">
  410. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">cleanup_docs</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#cleanup_docs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.cleanup_docs" title="Permalink to this definition">¶</a></dt>
  411. <dd></dd></dl>
  412. <dl class="function">
  413. <dt id="webnotes.handler.compressBuf">
  414. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">compressBuf</tt><big>(</big><em>buf</em><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#compressBuf"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.compressBuf" title="Permalink to this definition">¶</a></dt>
  415. <dd></dd></dl>
  416. <dl class="function">
  417. <dt id="webnotes.handler.dt_map">
  418. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">dt_map</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#dt_map"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.dt_map" title="Permalink to this definition">¶</a></dt>
  419. <dd></dd></dl>
  420. <dl class="function">
  421. <dt id="webnotes.handler.get_file">
  422. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">get_file</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#get_file"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.get_file" title="Permalink to this definition">¶</a></dt>
  423. <dd></dd></dl>
  424. <dl class="function">
  425. <dt id="webnotes.handler.get_graph">
  426. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">get_graph</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#get_graph"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.get_graph" title="Permalink to this definition">¶</a></dt>
  427. <dd></dd></dl>
  428. <dl class="function">
  429. <dt id="webnotes.handler.get_template">
  430. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">get_template</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#get_template"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.get_template" title="Permalink to this definition">¶</a></dt>
  431. <dd></dd></dl>
  432. <dl class="function">
  433. <dt id="webnotes.handler.import_csv">
  434. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">import_csv</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#import_csv"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.import_csv" title="Permalink to this definition">¶</a></dt>
  435. <dd></dd></dl>
  436. <dl class="function">
  437. <dt id="webnotes.handler.load_month_events">
  438. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">load_month_events</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#load_month_events"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.load_month_events" title="Permalink to this definition">¶</a></dt>
  439. <dd></dd></dl>
  440. <dl class="function">
  441. <dt id="webnotes.handler.logout">
  442. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">logout</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#logout"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.logout" title="Permalink to this definition">¶</a></dt>
  443. <dd></dd></dl>
  444. <dl class="function">
  445. <dt id="webnotes.handler.reset_password">
  446. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">reset_password</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#reset_password"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.reset_password" title="Permalink to this definition">¶</a></dt>
  447. <dd></dd></dl>
  448. <dl class="function">
  449. <dt id="webnotes.handler.resume_session">
  450. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">resume_session</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#resume_session"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.resume_session" title="Permalink to this definition">¶</a></dt>
  451. <dd></dd></dl>
  452. <dl class="function">
  453. <dt id="webnotes.handler.runserverobj">
  454. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">runserverobj</tt><big>(</big><em>arg=None</em><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#runserverobj"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.runserverobj" title="Permalink to this definition">¶</a></dt>
  455. <dd></dd></dl>
  456. <dl class="function">
  457. <dt id="webnotes.handler.startup">
  458. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">startup</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#startup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.startup" title="Permalink to this definition">¶</a></dt>
  459. <dd></dd></dl>
  460. <dl class="function">
  461. <dt id="webnotes.handler.upload_many">
  462. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">upload_many</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#upload_many"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.upload_many" title="Permalink to this definition">¶</a></dt>
  463. <dd></dd></dl>
  464. <dl class="function">
  465. <dt id="webnotes.handler.uploadfile">
  466. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">uploadfile</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#uploadfile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.uploadfile" title="Permalink to this definition">¶</a></dt>
  467. <dd></dd></dl>
  468. <dl class="function">
  469. <dt id="webnotes.handler.validate_cmd">
  470. <tt class="descclassname">webnotes.handler.</tt><tt class="descname">validate_cmd</tt><big>(</big><em>cmd</em><big>)</big><a class="reference internal" href="_modules/webnotes/handler.html#validate_cmd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.handler.validate_cmd" title="Permalink to this definition">¶</a></dt>
  471. <dd></dd></dl>
  472. </div>
  473. <div class="section" id="module-webnotes.profile">
  474. <span id="profile-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">profile</span></tt> Module<a class="headerlink" href="#module-webnotes.profile" title="Permalink to this headline">¶</a></h2>
  475. <dl class="class">
  476. <dt id="webnotes.profile.Profile">
  477. <em class="property">class </em><tt class="descclassname">webnotes.profile.</tt><tt class="descname">Profile</tt><big>(</big><em>name=''</em><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile" title="Permalink to this definition">¶</a></dt>
  478. <dd><p>A profile object is created at the beginning of every request with details of the use.
  479. The global profile object is <cite>webnotes.user</cite></p>
  480. <dl class="method">
  481. <dt id="webnotes.profile.Profile.get_allow_list">
  482. <tt class="descname">get_allow_list</tt><big>(</big><em>key</em><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_allow_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_allow_list" title="Permalink to this definition">¶</a></dt>
  483. <dd><p>Internal - get list of DocType where <cite>key</cite> is allowed. Key is either &#8216;read&#8217;, &#8216;write&#8217; or &#8216;create&#8217;</p>
  484. </dd></dl>
  485. <dl class="method">
  486. <dt id="webnotes.profile.Profile.get_create_list">
  487. <tt class="descname">get_create_list</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_create_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_create_list" title="Permalink to this definition">¶</a></dt>
  488. <dd><p>Get list of DocTypes the user can create. Will filter DocTypes tagged with &#8216;not_in_create&#8217; and table</p>
  489. </dd></dl>
  490. <dl class="method">
  491. <dt id="webnotes.profile.Profile.get_defaults">
  492. <tt class="descname">get_defaults</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_defaults"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_defaults" title="Permalink to this definition">¶</a></dt>
  493. <dd><p>Get the user&#8217;s default values based on user and role profile</p>
  494. </dd></dl>
  495. <dl class="method">
  496. <dt id="webnotes.profile.Profile.get_hide_tips">
  497. <tt class="descname">get_hide_tips</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_hide_tips"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_hide_tips" title="Permalink to this definition">¶</a></dt>
  498. <dd></dd></dl>
  499. <dl class="method">
  500. <dt id="webnotes.profile.Profile.get_home_page">
  501. <tt class="descname">get_home_page</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_home_page"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_home_page" title="Permalink to this definition">¶</a></dt>
  502. <dd><p>Get the name of the user&#8217;s home page from the <cite>Control Panel</cite></p>
  503. </dd></dl>
  504. <dl class="method">
  505. <dt id="webnotes.profile.Profile.get_random_password">
  506. <tt class="descname">get_random_password</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_random_password"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_random_password" title="Permalink to this definition">¶</a></dt>
  507. <dd><p>Generate a random password</p>
  508. </dd></dl>
  509. <dl class="method">
  510. <dt id="webnotes.profile.Profile.get_read_list">
  511. <tt class="descname">get_read_list</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_read_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_read_list" title="Permalink to this definition">¶</a></dt>
  512. <dd><p>Get list of DocTypes the user can read</p>
  513. </dd></dl>
  514. <dl class="method">
  515. <dt id="webnotes.profile.Profile.get_report_list">
  516. <tt class="descname">get_report_list</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_report_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_report_list" title="Permalink to this definition">¶</a></dt>
  517. <dd></dd></dl>
  518. <dl class="method">
  519. <dt id="webnotes.profile.Profile.get_roles">
  520. <tt class="descname">get_roles</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_roles"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_roles" title="Permalink to this definition">¶</a></dt>
  521. <dd><p>get list of roles</p>
  522. </dd></dl>
  523. <dl class="method">
  524. <dt id="webnotes.profile.Profile.get_write_list">
  525. <tt class="descname">get_write_list</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.get_write_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.get_write_list" title="Permalink to this definition">¶</a></dt>
  526. <dd><p>Get list of DocTypes the user can write</p>
  527. </dd></dl>
  528. <dl class="method">
  529. <dt id="webnotes.profile.Profile.load_from_session">
  530. <tt class="descname">load_from_session</tt><big>(</big><em>d</em><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.load_from_session"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.load_from_session" title="Permalink to this definition">¶</a></dt>
  531. <dd><p>Setup the user profile from the dictionary saved in the session (generated by <cite>load_profile</cite>)</p>
  532. </dd></dl>
  533. <dl class="method">
  534. <dt id="webnotes.profile.Profile.load_profile">
  535. <tt class="descname">load_profile</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.load_profile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.load_profile" title="Permalink to this definition">¶</a></dt>
  536. <dd><p>Return a dictionary of user properites to be stored in the session</p>
  537. </dd></dl>
  538. <dl class="method">
  539. <dt id="webnotes.profile.Profile.reset_password">
  540. <tt class="descname">reset_password</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.reset_password"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.reset_password" title="Permalink to this definition">¶</a></dt>
  541. <dd><p>Reset the user&#8217;s password and send an email</p>
  542. </dd></dl>
  543. <dl class="method">
  544. <dt id="webnotes.profile.Profile.send_email">
  545. <tt class="descname">send_email</tt><big>(</big><em>subj</em>, <em>mess</em>, <em>email</em><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.send_email"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.send_email" title="Permalink to this definition">¶</a></dt>
  546. <dd></dd></dl>
  547. <dl class="method">
  548. <dt id="webnotes.profile.Profile.update_recent">
  549. <tt class="descname">update_recent</tt><big>(</big><em>dt</em>, <em>dn</em><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#Profile.update_recent"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.Profile.update_recent" title="Permalink to this definition">¶</a></dt>
  550. <dd><p>Update the user&#8217;s <cite>Recent</cite> list with the given <cite>dt</cite> and <cite>dn</cite></p>
  551. </dd></dl>
  552. </dd></dl>
  553. <dl class="function">
  554. <dt id="webnotes.profile.get_user_img">
  555. <tt class="descclassname">webnotes.profile.</tt><tt class="descname">get_user_img</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/profile.html#get_user_img"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.profile.get_user_img" title="Permalink to this definition">¶</a></dt>
  556. <dd></dd></dl>
  557. </div>
  558. <div class="section" id="module-webnotes.session_cache">
  559. <span id="session-cache-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">session_cache</span></tt> Module<a class="headerlink" href="#module-webnotes.session_cache" title="Permalink to this headline">¶</a></h2>
  560. <dl class="function">
  561. <dt id="webnotes.session_cache.build">
  562. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">build</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#build"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.build" title="Permalink to this definition">¶</a></dt>
  563. <dd></dd></dl>
  564. <dl class="function">
  565. <dt id="webnotes.session_cache.clear">
  566. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">clear</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#clear"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.clear" title="Permalink to this definition">¶</a></dt>
  567. <dd></dd></dl>
  568. <dl class="function">
  569. <dt id="webnotes.session_cache.clear_cache">
  570. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">clear_cache</tt><big>(</big><em>user=''</em><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#clear_cache"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.clear_cache" title="Permalink to this definition">¶</a></dt>
  571. <dd></dd></dl>
  572. <dl class="function">
  573. <dt id="webnotes.session_cache.dump">
  574. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">dump</tt><big>(</big><em>sd</em>, <em>country</em><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#dump"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.dump" title="Permalink to this definition">¶</a></dt>
  575. <dd></dd></dl>
  576. <dl class="function">
  577. <dt id="webnotes.session_cache.get">
  578. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">get</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.get" title="Permalink to this definition">¶</a></dt>
  579. <dd></dd></dl>
  580. <dl class="function">
  581. <dt id="webnotes.session_cache.get_letter_heads">
  582. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">get_letter_heads</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#get_letter_heads"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.get_letter_heads" title="Permalink to this definition">¶</a></dt>
  583. <dd></dd></dl>
  584. <dl class="function">
  585. <dt id="webnotes.session_cache.load">
  586. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">load</tt><big>(</big><em>country</em><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.load" title="Permalink to this definition">¶</a></dt>
  587. <dd></dd></dl>
  588. <dl class="function">
  589. <dt id="webnotes.session_cache.load_startup">
  590. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">load_startup</tt><big>(</big><em>cp</em><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#load_startup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.load_startup" title="Permalink to this definition">¶</a></dt>
  591. <dd></dd></dl>
  592. <dl class="function">
  593. <dt id="webnotes.session_cache.make_cache_table">
  594. <tt class="descclassname">webnotes.session_cache.</tt><tt class="descname">make_cache_table</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/session_cache.html#make_cache_table"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.session_cache.make_cache_table" title="Permalink to this definition">¶</a></dt>
  595. <dd></dd></dl>
  596. </div>
  597. <div class="section" id="module-webnotes.tests">
  598. <span id="tests-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">tests</span></tt> Module<a class="headerlink" href="#module-webnotes.tests" title="Permalink to this headline">¶</a></h2>
  599. <p>Run tests from modules. Sets up database connection, modules path and session before running test</p>
  600. <p>Usage: from shell, run</p>
  601. <p>python tests.py [test modules]</p>
  602. <dl class="docutils">
  603. <dt>Options:</dt>
  604. <dd>test modules: list of modules separated by space</dd>
  605. </dl>
  606. <p>if no modules are specified, it will run all &#8220;tests.py&#8221; files from all modules</p>
  607. <dl class="function">
  608. <dt id="webnotes.tests.get_tests">
  609. <tt class="descclassname">webnotes.tests.</tt><tt class="descname">get_tests</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/tests.html#get_tests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.tests.get_tests" title="Permalink to this definition">¶</a></dt>
  610. <dd><p>Returns list of test modules identified by &#8220;tests.py&#8221;</p>
  611. </dd></dl>
  612. <dl class="function">
  613. <dt id="webnotes.tests.setup">
  614. <tt class="descclassname">webnotes.tests.</tt><tt class="descname">setup</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/webnotes/tests.html#setup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#webnotes.tests.setup" title="Permalink to this definition">¶</a></dt>
  615. <dd><p>Sets up connection and session</p>
  616. </dd></dl>
  617. </div>
  618. <div class="section" id="subpackages">
  619. <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2>
  620. <div class="toctree-wrapper compound">
  621. <ul>
  622. <li class="toctree-l1"><a class="reference internal" href="webnotes.install_lib.html">install_lib Package</a><ul>
  623. <li class="toctree-l2"><a class="reference internal" href="webnotes.install_lib.html#module-webnotes.install_lib.db_init"><tt class="docutils literal"><span class="pre">db_init</span></tt> Module</a></li>
  624. <li class="toctree-l2"><a class="reference internal" href="webnotes.install_lib.html#module-webnotes.install_lib.install"><tt class="docutils literal"><span class="pre">install</span></tt> Module</a></li>
  625. </ul>
  626. </li>
  627. <li class="toctree-l1"><a class="reference internal" href="webnotes.model.html">model Package</a><ul>
  628. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#id1"><tt class="docutils literal"><span class="pre">model</span></tt> Package</a></li>
  629. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.code"><tt class="docutils literal"><span class="pre">code</span></tt> Module</a></li>
  630. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.db_schema"><tt class="docutils literal"><span class="pre">db_schema</span></tt> Module</a></li>
  631. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.doc"><tt class="docutils literal"><span class="pre">doc</span></tt> Module</a></li>
  632. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.doclist"><tt class="docutils literal"><span class="pre">doclist</span></tt> Module</a></li>
  633. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.doctype"><tt class="docutils literal"><span class="pre">doctype</span></tt> Module</a><ul>
  634. <li class="toctree-l3"><a class="reference internal" href="webnotes.model.html#id2">DocType module</a></li>
  635. </ul>
  636. </li>
  637. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.import_docs"><tt class="docutils literal"><span class="pre">import_docs</span></tt> Module</a></li>
  638. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.meta"><tt class="docutils literal"><span class="pre">meta</span></tt> Module</a></li>
  639. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.modules"><tt class="docutils literal"><span class="pre">modules</span></tt> Module</a></li>
  640. <li class="toctree-l2"><a class="reference internal" href="webnotes.model.html#module-webnotes.model.triggers"><tt class="docutils literal"><span class="pre">triggers</span></tt> Module</a></li>
  641. </ul>
  642. </li>
  643. <li class="toctree-l1"><a class="reference internal" href="webnotes.modules.html">modules Package</a><ul>
  644. <li class="toctree-l2"><a class="reference internal" href="webnotes.modules.html#id1"><tt class="docutils literal"><span class="pre">modules</span></tt> Package</a></li>
  645. <li class="toctree-l2"><a class="reference internal" href="webnotes.modules.html#module-webnotes.modules.compress"><tt class="docutils literal"><span class="pre">compress</span></tt> Module</a></li>
  646. <li class="toctree-l2"><a class="reference internal" href="webnotes.modules.html#module-webnotes.modules.export_module"><tt class="docutils literal"><span class="pre">export_module</span></tt> Module</a></li>
  647. <li class="toctree-l2"><a class="reference internal" href="webnotes.modules.html#module-webnotes.modules.import_module"><tt class="docutils literal"><span class="pre">import_module</span></tt> Module</a></li>
  648. <li class="toctree-l2"><a class="reference internal" href="webnotes.modules.html#module-webnotes.modules.module_manager"><tt class="docutils literal"><span class="pre">module_manager</span></tt> Module</a></li>
  649. <li class="toctree-l2"><a class="reference internal" href="webnotes.modules.html#module-webnotes.modules.patch"><tt class="docutils literal"><span class="pre">patch</span></tt> Module</a></li>
  650. </ul>
  651. </li>
  652. <li class="toctree-l1"><a class="reference internal" href="webnotes.multi_tenant.html">multi_tenant Package</a><ul>
  653. <li class="toctree-l2"><a class="reference internal" href="webnotes.multi_tenant.html#id1"><tt class="docutils literal"><span class="pre">multi_tenant</span></tt> Package</a></li>
  654. <li class="toctree-l2"><a class="reference internal" href="webnotes.multi_tenant.html#query-parser-module"><tt class="docutils literal"><span class="pre">query_parser</span></tt> Module</a></li>
  655. <li class="toctree-l2"><a class="reference internal" href="webnotes.multi_tenant.html#module-webnotes.multi_tenant.setup"><tt class="docutils literal"><span class="pre">setup</span></tt> Module</a></li>
  656. </ul>
  657. </li>
  658. <li class="toctree-l1"><a class="reference internal" href="webnotes.utils.html">utils Package</a><ul>
  659. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#id1"><tt class="docutils literal"><span class="pre">utils</span></tt> Package</a></li>
  660. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#archive-module"><tt class="docutils literal"><span class="pre">archive</span></tt> Module</a></li>
  661. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#backups-module"><tt class="docutils literal"><span class="pre">backups</span></tt> Module</a></li>
  662. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.cache"><tt class="docutils literal"><span class="pre">cache</span></tt> Module</a></li>
  663. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.encrypt"><tt class="docutils literal"><span class="pre">encrypt</span></tt> Module</a></li>
  664. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.file_manager"><tt class="docutils literal"><span class="pre">file_manager</span></tt> Module</a></li>
  665. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.jsmin"><tt class="docutils literal"><span class="pre">jsmin</span></tt> Module</a></li>
  666. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.nestedset"><tt class="docutils literal"><span class="pre">nestedset</span></tt> Module</a></li>
  667. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.scheduler"><tt class="docutils literal"><span class="pre">scheduler</span></tt> Module</a><ul>
  668. <li class="toctree-l3"><a class="reference internal" href="webnotes.utils.html#to-install">To install:</a></li>
  669. <li class="toctree-l3"><a class="reference internal" href="webnotes.utils.html#in-cron">In cron:</a></li>
  670. </ul>
  671. </li>
  672. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.sitemap"><tt class="docutils literal"><span class="pre">sitemap</span></tt> Module</a></li>
  673. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.transfer"><tt class="docutils literal"><span class="pre">transfer</span></tt> Module</a></li>
  674. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#module-webnotes.utils.webservice"><tt class="docutils literal"><span class="pre">webservice</span></tt> Module</a></li>
  675. <li class="toctree-l2"><a class="reference internal" href="webnotes.utils.html#subpackages">Subpackages</a><ul>
  676. <li class="toctree-l3"><a class="reference internal" href="webnotes.utils.email_lib.html">email_lib Package</a><ul>
  677. <li class="toctree-l4"><a class="reference internal" href="webnotes.utils.email_lib.html#id1"><tt class="docutils literal"><span class="pre">email_lib</span></tt> Package</a></li>
  678. <li class="toctree-l4"><a class="reference internal" href="webnotes.utils.email_lib.html#module-webnotes.utils.email_lib.form_email"><tt class="docutils literal"><span class="pre">form_email</span></tt> Module</a></li>
  679. <li class="toctree-l4"><a class="reference internal" href="webnotes.utils.email_lib.html#module-webnotes.utils.email_lib.html2text"><tt class="docutils literal"><span class="pre">html2text</span></tt> Module</a></li>
  680. <li class="toctree-l4"><a class="reference internal" href="webnotes.utils.email_lib.html#module-webnotes.utils.email_lib.receive"><tt class="docutils literal"><span class="pre">receive</span></tt> Module</a></li>
  681. <li class="toctree-l4"><a class="reference internal" href="webnotes.utils.email_lib.html#module-webnotes.utils.email_lib.send"><tt class="docutils literal"><span class="pre">send</span></tt> Module</a></li>
  682. </ul>
  683. </li>
  684. </ul>
  685. </li>
  686. </ul>
  687. </li>
  688. <li class="toctree-l1"><a class="reference internal" href="webnotes.widgets.html">widgets Package</a><ul>
  689. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.auto_master"><tt class="docutils literal"><span class="pre">auto_master</span></tt> Module</a></li>
  690. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.event"><tt class="docutils literal"><span class="pre">event</span></tt> Module</a></li>
  691. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.follow"><tt class="docutils literal"><span class="pre">follow</span></tt> Module</a></li>
  692. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.form"><tt class="docutils literal"><span class="pre">form</span></tt> Module</a></li>
  693. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.menus"><tt class="docutils literal"><span class="pre">menus</span></tt> Module</a></li>
  694. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.page"><tt class="docutils literal"><span class="pre">page</span></tt> Module</a></li>
  695. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.page_body"><tt class="docutils literal"><span class="pre">page_body</span></tt> Module</a></li>
  696. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.query_builder"><tt class="docutils literal"><span class="pre">query_builder</span></tt> Module</a></li>
  697. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.search"><tt class="docutils literal"><span class="pre">search</span></tt> Module</a></li>
  698. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.tags"><tt class="docutils literal"><span class="pre">tags</span></tt> Module</a></li>
  699. <li class="toctree-l2"><a class="reference internal" href="webnotes.widgets.html#module-webnotes.widgets.todo"><tt class="docutils literal"><span class="pre">todo</span></tt> Module</a></li>
  700. </ul>
  701. </li>
  702. </ul>
  703. </div>
  704. </div>
  705. </div>
  706. </div>
  707. </div>
  708. </div>
  709. <div class="sphinxsidebar">
  710. <div class="sphinxsidebarwrapper">
  711. <p class="logo"><a href="index.html">
  712. <img class="logo" src="_static/wnflogo200.gif" alt="Logo"/>
  713. </a></p>
  714. <h3><a href="index.html">Table Of Contents</a></h3>
  715. <ul>
  716. <li><a class="reference internal" href="#">webnotes Package</a><ul>
  717. <li><a class="reference internal" href="#id1"><tt class="docutils literal"><span class="pre">webnotes</span></tt> Package</a></li>
  718. <li><a class="reference internal" href="#module-webnotes.auth"><tt class="docutils literal"><span class="pre">auth</span></tt> Module</a></li>
  719. <li><a class="reference internal" href="#module-webnotes.db"><tt class="docutils literal"><span class="pre">db</span></tt> Module</a></li>
  720. <li><a class="reference internal" href="#module-webnotes.defs"><tt class="docutils literal"><span class="pre">defs</span></tt> Module</a></li>
  721. <li><a class="reference internal" href="#module-webnotes.defs_template"><tt class="docutils literal"><span class="pre">defs_template</span></tt> Module</a></li>
  722. <li><a class="reference internal" href="#module-webnotes.handler"><tt class="docutils literal"><span class="pre">handler</span></tt> Module</a></li>
  723. <li><a class="reference internal" href="#module-webnotes.profile"><tt class="docutils literal"><span class="pre">profile</span></tt> Module</a></li>
  724. <li><a class="reference internal" href="#module-webnotes.session_cache"><tt class="docutils literal"><span class="pre">session_cache</span></tt> Module</a></li>
  725. <li><a class="reference internal" href="#module-webnotes.tests"><tt class="docutils literal"><span class="pre">tests</span></tt> Module</a></li>
  726. <li><a class="reference internal" href="#subpackages">Subpackages</a><ul>
  727. </ul>
  728. </li>
  729. </ul>
  730. </li>
  731. </ul>
  732. <h4>Previous topic</h4>
  733. <p class="topless"><a href="core.page.html"
  734. title="previous chapter">page Package</a></p>
  735. <h4>Next topic</h4>
  736. <p class="topless"><a href="webnotes.install_lib.html"
  737. title="next chapter">install_lib Package</a></p>
  738. <h3>This Page</h3>
  739. <ul class="this-page-menu">
  740. <li><a href="_sources/webnotes.txt"
  741. rel="nofollow">Show Source</a></li>
  742. </ul>
  743. <div id="searchbox" style="display: none">
  744. <h3>Quick search</h3>
  745. <form class="search" action="search.html" method="get">
  746. <input type="text" name="q" size="18" />
  747. <input type="submit" value="Go" />
  748. <input type="hidden" name="check_keywords" value="yes" />
  749. <input type="hidden" name="area" value="default" />
  750. </form>
  751. <p class="searchtip" style="font-size: 90%">
  752. Enter search terms or a module, class or function name.
  753. </p>
  754. </div>
  755. <script type="text/javascript">$('#searchbox').show(0);</script>
  756. </div>
  757. </div>
  758. <div class="clearer"></div>
  759. </div>
  760. <div class="related">
  761. <h3>Navigation</h3>
  762. <ul>
  763. <li class="right" style="margin-right: 10px">
  764. <a href="genindex.html" title="General Index"
  765. >index</a></li>
  766. <li class="right" >
  767. <a href="py-modindex.html" title="Python Module Index"
  768. >modules</a> |</li>
  769. <li class="right" >
  770. <a href="webnotes.install_lib.html" title="install_lib Package"
  771. >next</a> |</li>
  772. <li class="right" >
  773. <a href="core.page.html" title="page Package"
  774. >previous</a> |</li>
  775. <li><a href="index.html">WNFramework v1.8 documentation</a> &raquo;</li>
  776. </ul>
  777. </div>
  778. <div class="footer">
  779. &copy; Copyright 2011, Rushabh Mehta, Web Notes Technologies.
  780. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
  781. </div>
  782. </body>
  783. </html>