~openerp-community/openobject-doc/ksa-openobject-doc-6.0

« back to all changes in this revision

Viewing changes to i18n/ru/source/developer/2_5_Objects_Fields_Methods/methods.rst

  • Committer: Don Kirkby
  • Date: 2011-02-21 20:46:11 UTC
  • mfrom: (433.1.53 openobject-doc)
  • Revision ID: donkirkby+launpd@gmail.com-20110221204611-1ykt6dmg4k3gh5dh
[MERGE] revisions 477 to 486 from the 5.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.. i18n: ORM methods
 
3
.. i18n: ===========
 
4
..
 
5
 
 
6
ORM methods
 
7
===========
 
8
 
 
9
.. i18n: Keeping the context in ORM methods
 
10
.. i18n: ----------------------------------
 
11
..
 
12
 
 
13
Keeping the context in ORM methods
 
14
----------------------------------
 
15
 
 
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,
 
18
.. i18n: etc.
 
19
..
 
20
 
 
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,
 
23
etc.
 
24
 
 
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.
 
30
..
 
31
 
 
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 
 
34
every method.
 
35
If you do have a context, it is very important that you always pass it through
 
36
to every single method you call.
 
37
 
 
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.. 
 
40
..
 
41
 
 
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.. 
 
44
 
 
45
.. i18n: ORM methods
 
46
.. i18n: -----------
 
47
..
 
48
 
 
49
ORM methods
 
50
-----------
 
51
 
 
52
.. i18n: .. autoclass:: osv.osv.osv
 
53
.. i18n:    :members:
 
54
.. i18n:    :inherited-members:
 
55
.. i18n:    :show-inheritance:
 
56
..
 
57
 
 
58
.. autoclass:: osv.osv.osv
 
59
   :members:
 
60
   :inherited-members:
 
61
   :show-inheritance: