9
.. i18n: Keeping the context in ORM methods
10
.. i18n: ----------------------------------
13
Keeping the context in ORM methods
14
----------------------------------
16
.. i18n: In OpenObject, the context holds very important data such as the language in
17
.. i18n: which a document must be written, whether function field needs updating or not,
21
In OpenObject, the context holds very important data such as the language in
22
which a document must be written, whether function field needs updating or not,
25
.. i18n: When calling an ORM method, you will probably already have a context - for
26
.. i18n: example the framework will provide you with one as a parameter of almost
27
.. i18n: every method.
28
.. i18n: If you do have a context, it is very important that you always pass it through
29
.. i18n: to every single method you call.
32
When calling an ORM method, you will probably already have a context - for
33
example the framework will provide you with one as a parameter of almost
35
If you do have a context, it is very important that you always pass it through
36
to every single method you call.
38
.. i18n: This rule also applies to writing ORM methods. You should expect to receive a
39
.. i18n: context as parameter, and always pass it through to every other method you call..
42
This rule also applies to writing ORM methods. You should expect to receive a
43
context as parameter, and always pass it through to every other method you call..
52
.. i18n: .. autoclass:: osv.osv.osv
54
.. i18n: :inherited-members:
55
.. i18n: :show-inheritance:
58
.. autoclass:: osv.osv.osv