celery.fields.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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>Django Fields - celery.fields &mdash; Celery v0.3.20 (unstable) documentation</title>
  7. <link rel="stylesheet" href="../static/nature.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: '0.3.20 (unstable)',
  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="Celery v0.3.20 (unstable) documentation" href="../index.html" />
  21. <link rel="up" title="Module API Reference" href="index.html" />
  22. <link rel="next" title="Celery Worker Daemon - celery.bin.celeryd" href="celery.bin.celeryd.html" />
  23. <link rel="prev" title="Django Models - celery.models" href="celery.models.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="../modindex.html" title="Global Module Index"
  34. accesskey="M">modules</a> |</li>
  35. <li class="right" >
  36. <a href="celery.bin.celeryd.html" title="Celery Worker Daemon - celery.bin.celeryd"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="celery.models.html" title="Django Models - celery.models"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="../index.html">Celery v0.3.20 (unstable) documentation</a> &raquo;</li>
  42. <li><a href="index.html" accesskey="U">Module API Reference</a> &raquo;</li>
  43. </ul>
  44. </div>
  45. <div class="document">
  46. <div class="documentwrapper">
  47. <div class="bodywrapper">
  48. <div class="body">
  49. <div class="section" id="module-celery.fields">
  50. <h1>Django Fields - celery.fields<a class="headerlink" href="#module-celery.fields" title="Permalink to this headline">¶</a></h1>
  51. <p>Custom Django Model Fields.</p>
  52. <dl class="class">
  53. <dt id="celery.fields.PickledObject">
  54. <em class="property">
  55. class </em><tt class="descclassname">celery.fields.</tt><tt class="descname">PickledObject</tt><a class="headerlink" href="#celery.fields.PickledObject" title="Permalink to this definition">¶</a></dt>
  56. <dd>A subclass of string so it can be told whether a string is
  57. a pickled object or not (if the object is an instance of this class
  58. then it must [well, should] be a pickled one).</dd></dl>
  59. <dl class="class">
  60. <dt id="celery.fields.PickledObjectField">
  61. <em class="property">
  62. class </em><tt class="descclassname">celery.fields.</tt><tt class="descname">PickledObjectField</tt><big>(</big><em>verbose_name=None</em>, <em>name=None</em>, <em>primary_key=False</em>, <em>max_length=None</em>, <em>unique=False</em>, <em>blank=False</em>, <em>null=False</em>, <em>db_index=False</em>, <em>rel=None</em>, <em>default=&lt;class django.db.models.fields.NOT_PROVIDED at 0x20c0120&gt;</em>, <em>editable=True</em>, <em>serialize=True</em>, <em>unique_for_date=None</em>, <em>unique_for_month=None</em>, <em>unique_for_year=None</em>, <em>choices=None</em>, <em>help_text=''</em>, <em>db_column=None</em>, <em>db_tablespace=None</em>, <em>auto_created=False</em><big>)</big><a class="headerlink" href="#celery.fields.PickledObjectField" title="Permalink to this definition">¶</a></dt>
  63. <dd><p>A field that automatically pickles/unpickles its value.</p>
  64. <dl class="method">
  65. <dt id="celery.fields.PickledObjectField.get_db_prep_lookup">
  66. <tt class="descname">get_db_prep_lookup</tt><big>(</big><em>lookup_type</em>, <em>value</em><big>)</big><a class="headerlink" href="#celery.fields.PickledObjectField.get_db_prep_lookup" title="Permalink to this definition">¶</a></dt>
  67. <dd>get_db_prep_lookup</dd></dl>
  68. <dl class="method">
  69. <dt id="celery.fields.PickledObjectField.get_db_prep_save">
  70. <tt class="descname">get_db_prep_save</tt><big>(</big><em>value</em><big>)</big><a class="headerlink" href="#celery.fields.PickledObjectField.get_db_prep_save" title="Permalink to this definition">¶</a></dt>
  71. <dd>get_db_prep_save</dd></dl>
  72. <dl class="method">
  73. <dt id="celery.fields.PickledObjectField.get_internal_type">
  74. <tt class="descname">get_internal_type</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.fields.PickledObjectField.get_internal_type" title="Permalink to this definition">¶</a></dt>
  75. <dd>The database field type used by this field.</dd></dl>
  76. <dl class="method">
  77. <dt id="celery.fields.PickledObjectField.to_python">
  78. <tt class="descname">to_python</tt><big>(</big><em>value</em><big>)</big><a class="headerlink" href="#celery.fields.PickledObjectField.to_python" title="Permalink to this definition">¶</a></dt>
  79. <dd>Convert the database value to a python value.</dd></dl>
  80. </dd></dl>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="sphinxsidebar">
  86. <div class="sphinxsidebarwrapper">
  87. <h4>Previous topic</h4>
  88. <p class="topless"><a href="celery.models.html"
  89. title="previous chapter">Django Models - celery.models</a></p>
  90. <h4>Next topic</h4>
  91. <p class="topless"><a href="celery.bin.celeryd.html"
  92. title="next chapter">Celery Worker Daemon - celery.bin.celeryd</a></p>
  93. <h3>This Page</h3>
  94. <ul class="this-page-menu">
  95. <li><a href="../sources/reference/celery.fields.txt"
  96. rel="nofollow">Show Source</a></li>
  97. </ul>
  98. <div id="searchbox" style="display: none">
  99. <h3>Quick search</h3>
  100. <form class="search" action="../search.html" method="get">
  101. <input type="text" name="q" size="18" />
  102. <input type="submit" value="Go" />
  103. <input type="hidden" name="check_keywords" value="yes" />
  104. <input type="hidden" name="area" value="default" />
  105. </form>
  106. <p class="searchtip" style="font-size: 90%">
  107. Enter search terms or a module, class or function name.
  108. </p>
  109. </div>
  110. <script type="text/javascript">$('#searchbox').show(0);</script>
  111. </div>
  112. </div>
  113. <div class="clearer"></div>
  114. </div>
  115. <div class="related">
  116. <h3>Navigation</h3>
  117. <ul>
  118. <li class="right" style="margin-right: 10px">
  119. <a href="../genindex.html" title="General Index"
  120. >index</a></li>
  121. <li class="right" >
  122. <a href="../modindex.html" title="Global Module Index"
  123. >modules</a> |</li>
  124. <li class="right" >
  125. <a href="celery.bin.celeryd.html" title="Celery Worker Daemon - celery.bin.celeryd"
  126. >next</a> |</li>
  127. <li class="right" >
  128. <a href="celery.models.html" title="Django Models - celery.models"
  129. >previous</a> |</li>
  130. <li><a href="../index.html">Celery v0.3.20 (unstable) documentation</a> &raquo;</li>
  131. <li><a href="index.html" >Module API Reference</a> &raquo;</li>
  132. </ul>
  133. </div>
  134. <div class="footer">
  135. &copy; Copyright 2009, Ask Solem.
  136. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.2.
  137. </div>
  138. </body>
  139. </html>