~openerp-dev/openobject-doc/trunk

« back to all changes in this revision

Viewing changes to i18n/ro/source/developer/6_21_web_services/index.rst

  • Committer: Antony Lesuisse
  • Date: 2010-03-05 16:46:40 UTC
  • Revision ID: al@openerp.com-20100305164640-9b7anc1t5ujha8lw
Merge doc into feature, before deletion of both features and doc. (odo)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.. i18n: Working with Web Services
 
3
.. i18n: =========================
 
4
..
 
5
 
 
6
Working with Web Services
 
7
=========================
 
8
 
 
9
.. i18n: How to load data ?
 
10
.. i18n: ------------------
 
11
..
 
12
 
 
13
How to load data ?
 
14
------------------
 
15
 
 
16
.. i18n:    1. Postgresql
 
17
.. i18n:           * Simple, standard
 
18
.. i18n:           * Does not respect the WORKFLOW !!! 
 
19
.. i18n:    2. XML files (with –update=)
 
20
.. i18n:    3. XML-RPC
 
21
.. i18n:           * Script, same as website interface 
 
22
..
 
23
 
 
24
   1. Postgresql
 
25
          * Simple, standard
 
26
          * Does not respect the WORKFLOW !!! 
 
27
   2. XML files (with –update=)
 
28
   3. XML-RPC
 
29
          * Script, same as website interface 
 
30
 
 
31
.. i18n: How to backup/restore a Postgresql database?
 
32
..
 
33
 
 
34
How to backup/restore a Postgresql database?
 
35
 
 
36
.. i18n:     backup
 
37
..
 
38
 
 
39
    backup
 
40
 
 
41
.. i18n:         pg_dump terp >terp.sql 
 
42
..
 
43
 
 
44
        pg_dump terp >terp.sql 
 
45
 
 
46
.. i18n:         restore
 
47
..
 
48
 
 
49
        restore
 
50
 
 
51
.. i18n:         createdb terp --encoding=unicode 
 
52
.. i18n:         psql terp < terp.sql 
 
53
.. i18n:         or 
 
54
.. i18n:         psql -d terp -f terp.sql 
 
55
..
 
56
 
 
57
        createdb terp --encoding=unicode 
 
58
        psql terp < terp.sql 
 
59
        or 
 
60
        psql -d terp -f terp.sql 
 
61
 
 
62
.. i18n: The objects methods
 
63
.. i18n: -------------------
 
64
..
 
65
 
 
66
The objects methods
 
67
-------------------
 
68
 
 
69
.. i18n:    1. create({'field':'value'})
 
70
.. i18n:           * return ID created 
 
71
.. i18n:    2. search([('arg1','=','value1')...], offset=0, limit=1000)
 
72
.. i18n:           * return [IDS] found 
 
73
.. i18n:    3. read([IDS], ['field1','field2',...])
 
74
.. i18n:           * return [{'id':1, 'field1':..., 'field2':..., ...}, ...] 
 
75
.. i18n:    4. write([IDS], {'field1':'value1','field2':3})
 
76
.. i18n:           * return True 
 
77
.. i18n:    5. unlink([IDS])
 
78
.. i18n:           * return True 
 
79
..
 
80
 
 
81
   1. create({'field':'value'})
 
82
          * return ID created 
 
83
   2. search([('arg1','=','value1')...], offset=0, limit=1000)
 
84
          * return [IDS] found 
 
85
   3. read([IDS], ['field1','field2',...])
 
86
          * return [{'id':1, 'field1':..., 'field2':..., ...}, ...] 
 
87
   4. write([IDS], {'field1':'value1','field2':3})
 
88
          * return True 
 
89
   5. unlink([IDS])
 
90
          * return True 
 
91
 
 
92
.. i18n:        
 
93
.. i18n:        
 
94
..
 
95
 
 
96
        
 
97