You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

191 line
8.7 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>doctype — DocType &mdash; Documentation</title>
  7. <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '',
  12. VERSION: '',
  13. COLLAPSE_MODINDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/doctools.js"></script>
  20. <link rel="top" title="Documentation" href="index.html" />
  21. <link rel="up" title="Server Side Internals" href="server_side_internals.html" />
  22. <link rel="next" title="code — Code Execution Module" href="code.html" />
  23. <link rel="prev" title="doclist — Doclist Module" href="doclist.html" />
  24. </head>
  25. <body>
  26. <div style="background-color: #FFF; text-align: left; padding: 8px 0px"><img src="_static/banner300910.gif"></div>
  27. <div class="related">
  28. <h3>Navigation</h3>
  29. <ul>
  30. <li class="right" style="margin-right: 10px">
  31. <a href="genindex.html" title="General Index"
  32. accesskey="I">index</a></li>
  33. <li class="right" >
  34. <a href="modindex.html" title="Global Module Index"
  35. accesskey="M">modules</a> |</li>
  36. <li class="right" >
  37. <a href="code.html" title="code — Code Execution Module"
  38. accesskey="N">next</a> |</li>
  39. <li class="right" >
  40. <a href="doclist.html" title="doclist — Doclist Module"
  41. accesskey="P">previous</a> |</li>
  42. <li><a href="index.html">Documentation</a> &raquo;</li>
  43. <li><a href="server_side_api.html" >3. Server Side API</a> &raquo;</li>
  44. <li><a href="server_side_internals.html" accesskey="U">Server Side Internals</a> &raquo;</li>
  45. </ul>
  46. </div>
  47. <div class="sphinxsidebar">
  48. <div class="sphinxsidebarwrapper">
  49. <h3><a href="index.html">Table Of Contents</a></h3>
  50. <ul>
  51. <li><a class="reference external" href=""><tt class="docutils literal"><span class="pre">doctype</span></tt> &#8212; DocType</a><ul>
  52. <li><a class="reference external" href="#doctype-object">_DocType object</a></li>
  53. </ul>
  54. </li>
  55. </ul>
  56. <h4>Previous topic</h4>
  57. <p class="topless"><a href="doclist.html"
  58. title="previous chapter"><tt class="docutils literal docutils literal"><span class="pre">doclist</span></tt> &#8212; Doclist Module</a></p>
  59. <h4>Next topic</h4>
  60. <p class="topless"><a href="code.html"
  61. title="next chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">code</span></tt> &#8212; Code Execution Module</a></p>
  62. <h3>This Page</h3>
  63. <ul class="this-page-menu">
  64. <li><a href="_sources/doctype.txt"
  65. rel="nofollow">Show Source</a></li>
  66. </ul>
  67. <div id="searchbox" style="display: none">
  68. <h3>Quick search</h3>
  69. <form class="search" action="search.html" method="get">
  70. <input type="text" name="q" size="18" />
  71. <input type="submit" value="Go" />
  72. <input type="hidden" name="check_keywords" value="yes" />
  73. <input type="hidden" name="area" value="default" />
  74. </form>
  75. <p class="searchtip" style="font-size: 90%">
  76. Enter search terms or a module, class or function name.
  77. </p>
  78. </div>
  79. <script type="text/javascript">$('#searchbox').show(0);</script>
  80. </div>
  81. </div>
  82. <div class="document">
  83. <div class="documentwrapper">
  84. <div class="bodywrapper">
  85. <div class="body">
  86. <div class="section" id="module-doctype">
  87. <h1><tt class="xref docutils literal"><span class="pre">doctype</span></tt> &#8212; DocType<a class="headerlink" href="#module-doctype" title="Permalink to this headline">¶</a></h1>
  88. <div class="section" id="doctype-object">
  89. <h2>_DocType object<a class="headerlink" href="#doctype-object" title="Permalink to this headline">¶</a></h2>
  90. <dl class="method">
  91. <dt id="doctype.get">
  92. <tt class="descclassname">doctype.</tt><tt class="descname">get</tt><big>(</big><em>dt</em><big>)</big><a class="headerlink" href="#doctype.get" title="Permalink to this definition">¶</a></dt>
  93. <dd>returns a <a class="reference external" href="glossary.html#term-doclist"><em class="xref">doclist</em></a> of <a class="reference external" href="glossary.html#term-doctype"><em class="xref">DocType</em></a>, <cite>dt</cite></dd></dl>
  94. <dl class="class">
  95. <dt id="doctype._DocType">
  96. <em class="property">class </em><tt class="descclassname">doctype.</tt><tt class="descname">_DocType</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#doctype._DocType" title="Permalink to this definition">¶</a></dt>
  97. <dd><p>The _DocType object is created internally using the module&#8217;s <cite>get</cite> method.</p>
  98. <dl class="attribute">
  99. <dt id="doctype._DocType.name">
  100. <tt class="descname">name</tt><a class="headerlink" href="#doctype._DocType.name" title="Permalink to this definition">¶</a></dt>
  101. <dd>name of the doctype</dd></dl>
  102. <dl class="method">
  103. <dt id="doctype._DocType.is_modified">
  104. <tt class="descname">is_modified</tt><big>(</big><big>)</big><a class="headerlink" href="#doctype._DocType.is_modified" title="Permalink to this definition">¶</a></dt>
  105. <dd><p>returns 3 objects:</p>
  106. <ul class="simple">
  107. <li>last modified date of the <cite>DocType</cite></li>
  108. <li>whether the doctypes is modified after it was cached</li>
  109. <li>last modified date of the <cite>DocType</cite> from the cache</li>
  110. </ul>
  111. </dd></dl>
  112. <dl class="method">
  113. <dt id="doctype._DocType.get_parent_dt">
  114. <tt class="descname">get_parent_dt</tt><big>(</big><big>)</big><a class="headerlink" href="#doctype._DocType.get_parent_dt" title="Permalink to this definition">¶</a></dt>
  115. <dd>return the <strong>first</strong> parent DocType of the current doctype</dd></dl>
  116. <dl class="method">
  117. <dt id="doctype._DocType.make_doclist">
  118. <tt class="descname">make_doclist</tt><big>(</big><big>)</big><a class="headerlink" href="#doctype._DocType.make_doclist" title="Permalink to this definition">¶</a></dt>
  119. <dd><p>returns the <a class="reference external" href="glossary.html#term-doclist"><em class="xref">doclist</em></a> for consumption by the client</p>
  120. <ul class="simple">
  121. <li>it cleans up the server code</li>
  122. <li>executes all <cite>$import</cite> tags in client code</li>
  123. <li>replaces <cite>link:</cite> in the <cite>Select</cite> fields</li>
  124. <li>loads all related <cite>Search Criteria</cite></li>
  125. <li>updates the cache</li>
  126. </ul>
  127. </dd></dl>
  128. </dd></dl>
  129. <dl class="method">
  130. <dt>
  131. <tt class="descclassname">doctype.</tt><tt class="descname">get</tt><big>(</big><big>)</big></dt>
  132. <dd>execute <cite>Request</cite> to load a <cite>DocType</cite></dd></dl>
  133. <dl class="method">
  134. <dt id="doctype.update_doctype">
  135. <tt class="descclassname">doctype.</tt><tt class="descname">update_doctype</tt><big>(</big><em>doclist</em><big>)</big><a class="headerlink" href="#doctype.update_doctype" title="Permalink to this definition">¶</a></dt>
  136. <dd><p>method to be called to update the DocType</p>
  137. <ul class="simple">
  138. <li>creates field names from labels</li>
  139. <li>updates schema</li>
  140. <li>saves compiled code</li>
  141. <li>marks cache for clearing</li>
  142. </ul>
  143. </dd></dl>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <div class="clearer"></div>
  150. </div>
  151. <div class="related">
  152. <h3>Navigation</h3>
  153. <ul>
  154. <li class="right" style="margin-right: 10px">
  155. <a href="genindex.html" title="General Index"
  156. >index</a></li>
  157. <li class="right" >
  158. <a href="modindex.html" title="Global Module Index"
  159. >modules</a> |</li>
  160. <li class="right" >
  161. <a href="code.html" title="code — Code Execution Module"
  162. >next</a> |</li>
  163. <li class="right" >
  164. <a href="doclist.html" title="doclist — Doclist Module"
  165. >previous</a> |</li>
  166. <li><a href="index.html">Documentation</a> &raquo;</li>
  167. <li><a href="server_side_api.html" >3. Server Side API</a> &raquo;</li>
  168. <li><a href="server_side_internals.html" >Server Side Internals</a> &raquo;</li>
  169. </ul>
  170. </div>
  171. <div class="footer">
  172. &copy; Copyright 2010, Rushabh Mehta.
  173. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
  174. </div>
  175. </body>
  176. </html>