~openerp-commiter/openobject-server/trunk-amp-branch

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

ADMIN_PASSWD='admin'
method_1() {
    cat '-' << EOF
<xml>
<methodCall>
    <methodName>set_loglevel</methodName>
    <params>
        <param><value><string>$ADMIN_PASSWD</string></value>
        </param>
        <param>
        <value><string>$1</string></value>
        </param>
    </params>
</methodCall>
EOF
}
LEVEL=10

if [ -n "$1" ] ; then LEVEL=$1 ; fi

method_1 $LEVEL | POST -c 'text/xml' http://localhost:8069/xmlrpc/common
#eof