Browse Source

Adds missing reference pages

Ask Solem 13 years ago
parent
commit
15a932fbfe

+ 7 - 7
Changelog

@@ -15,15 +15,15 @@
 .. _v250-important:
 
 Important Notes
-===============
+---------------
 
-* The broker connection pool is now enabled by default with a limit
-  of 10 connections.
+* The broker connection pool is now enabled by default.
 
-    If you have many threads/green-threads using connections you may want
-    to tweak the limit to avoid contention.
+    The default limit is 10 connections,
+    if you have many threads/green-threads using connections you may want
+    to tweak this limit to avoid contention.
 
-    See :settings:`BROKER_POOL_LIMIT` for more information.
+    See the :setting:`BROKER_POOL_LIMIT` for more information.
 
 * AMQP Result Backend: Exchange no longer *auto delete*.
 
@@ -53,7 +53,7 @@ Important Notes
 .. _v250-news:
 
 News
-====
+----
 
 * Timezone support.
 

+ 1 - 1
celery/app/annotations.py

@@ -29,7 +29,7 @@ def prepare(annotations):
             return MapAnnotation(annotation)
         elif isinstance(annotation, basestring):
             return mpromise(instantiate, annotation)
-        return route
+        return annotation
 
     if annotations is None:
         return ()

+ 0 - 14
celery/app/base.py

@@ -18,7 +18,6 @@ import platform as _platform
 from contextlib import contextmanager
 from copy import deepcopy
 from functools import wraps
-from threading import Lock
 
 from kombu.clocks import LamportClock
 
@@ -38,19 +37,6 @@ software -> celery:%(celery_v)s kombu:%(kombu_v)s py:%(py_v)s
 settings -> transport:%(transport)s results:%(results)s
 """
 
-def pyimplementation():
-    if hasattr(_platform, "python_implementation"):
-        return _platform.python_implementation()
-    elif sys.platform.startswith("java"):
-        return "Jython %s" % (sys.platform, )
-    elif hasattr(sys, "pypy_version_info"):
-        v = ".".join(map(str, sys.pypy_version_info[:3]))
-        if sys.pypy_version_info[3:]:
-            v += "-" + "".join(map(str, sys.pypy_version_info[3:]))
-        return "PyPy %s" % (v, )
-    else:
-        return "CPython"
-
 
 class Settings(datastructures.ConfigurationView):
 

+ 11 - 0
docs/internals/reference/celery.app.annotations.rst

@@ -0,0 +1,11 @@
+==========================================
+ celery.app.annotations
+==========================================
+
+.. contents::
+    :local:
+.. currentmodule:: celery.app.annotations
+
+.. automodule:: celery.app.annotations
+    :members:
+    :undoc-members:

+ 11 - 0
docs/internals/reference/celery.security.certificate.rst

@@ -0,0 +1,11 @@
+==========================================
+ celery.security.certificate
+==========================================
+
+.. contents::
+    :local:
+.. currentmodule:: celery.security.certificate
+
+.. automodule:: celery.security.certificate
+    :members:
+    :undoc-members:

+ 11 - 0
docs/internals/reference/celery.security.key.rst

@@ -0,0 +1,11 @@
+==========================================
+ celery.security.key
+==========================================
+
+.. contents::
+    :local:
+.. currentmodule:: celery.security.key
+
+.. automodule:: celery.security.key
+    :members:
+    :undoc-members:

+ 11 - 0
docs/internals/reference/celery.security.serialization.rst

@@ -0,0 +1,11 @@
+==========================================
+ celery.security.serialization
+==========================================
+
+.. contents::
+    :local:
+.. currentmodule:: celery.security.serialization
+
+.. automodule:: celery.security.serialization
+    :members:
+    :undoc-members:

+ 11 - 0
docs/internals/reference/celery.utils.threads.rst

@@ -0,0 +1,11 @@
+==========================================
+ celery.utils.threads
+==========================================
+
+.. contents::
+    :local:
+.. currentmodule:: celery.utils.threads
+
+.. automodule:: celery.utils.threads
+    :members:
+    :undoc-members:

+ 5 - 0
docs/internals/reference/index.rst

@@ -35,6 +35,10 @@
     celery.backends.cassandra
     celery.backends.tyrant
     celery.execute.trace
+    celery.app.annotations
+    celery.security.certificate
+    celery.security.key
+    celery.security.serialization
     celery.datastructures
     celery.routes
     celery.log
@@ -51,6 +55,7 @@
     celery.utils.compat
     celery.utils.patch
     celery.utils.serialization
+    celery.utils.threads
     celery.utils.timer2
     celery.utils.dispatch
     celery.utils.dispatch.signal

+ 11 - 0
docs/reference/celery.security.rst

@@ -0,0 +1,11 @@
+========================
+ celery.security
+========================
+
+.. contents::
+    :local:
+.. currentmodule:: celery.security
+
+.. automodule:: celery.security
+    :members:
+    :undoc-members:

+ 1 - 0
docs/reference/index.rst

@@ -21,6 +21,7 @@
     celery.task.http
     celery.schedules
     celery.signals
+    celery.security
     celery.utils.mail
     celery.exceptions
     celery.loaders