/usr/share/doc/tryton-server-doc/html/_sources/ref/pool.rst.txt is in tryton-server-doc 4.6.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | .. _ref-pool:
.. module:: trytond.pool
====
Pool
====
.. class:: Pool([database_name])
The Pool store the instances of models, wizards and reports per database.
Static methods:
.. staticmethod:: Pool.register(klass[, type])
Register a class of type (default: `model`).
Class methods:
.. classmethod:: Pool.start()
Start the pool by registering all Tryton modules found.
.. classmethod:: Pool.stop(database_name)
Stop the pool by removing instances for the database.
.. classmethod:: Pool.database_list()
List all started database.
Instance methods:
.. method:: Pool.get(name[, type])
Return the named instance of type from the pool.
.. method:: Pool.iterobject([type])
Return an interator over instances names.
.. method:: Pool.fill(module)
Fill the pool with the registered class from the module and return a list
of classes for each type in a dictionary.
.. method:: Pool.setup([classes])
Call all setup methods of the classes provided or for all the registered
classes.
========
PoolMeta
========
.. class:: PoolMeta
The PoolMeta is a metaclass helper to setup __name__ on class to be registered
in the Pool.
========
PoolBase
========
.. class:: PoolBase
The base class of registered class that will be setup.
|