~unifield-team/unifield-web/us-1026

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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
===============================================================================
eTiny - Web Client of OpenERP, the Enterprise Management Software
===============================================================================

    1. Introduction
    2. Linux Installation
    3. eTiny as service (Linux)
    4. Windows Installation
    5. eTiny + HTTPS
    6. Web browser compatibilities
    7. Support

-------------------------------------------------------------------------------
1. INTRODUCTION
-------------------------------------------------------------------------------

eTiny is the official web client of OpenERP developed by Tiny and Axelor.
It's built on TurboGears (http://www.turbogears.org).

Features:

    - High Performance
    - Light weight
    - Easy deployment
    - Clean & Ergonomic
    - Ajax enabled
    
eTiny is known to work with all major web browsers available today, including
Firefox, IE6, IE7, Safari3 and Opera9.

-------------------------------------------------------------------------------
2. LINUX INSTALLATION
-------------------------------------------------------------------------------

Here is the installation instructions for Debian based Linux distributions.
Tested on Debian Etch and Ubuntu Feisty/Gutsy. The procedure might work with 
other Linux or similar distributions. See the docs on how to install the 
specified Packages on your favourite distro.

Prerequisites:

   1. Python >= 2.4
   2. OpenERP Server >= 4.2.1
   3. TurboGears >= 1.0.3.2
   4. matplotlib >= 0.87
   5. Python Imaging Library (PIL) 

OpenERP Server:

    To install OpenERP Server, please follow the instructions provided in 
    the official OpenERP Installation guide.

TurboGears:

    $ wget http://www.turbogears.org/download/tgsetup.py
    $ python2.4 tgsetup.py
    
or

    $ wget http://peak.telecommunity.com/dist/ez_setup.py
    $ python2.4 ez_setup.py
    $ easy_install-2.4 TurboGears==1.0.3.2

Matplotlib 0.87:

    $ apt-get install python-matplotlib

Python Imaging Library (PIL):

    $ apt-get install python-imaging

eTiny 1.0:

    $ easy_install-2.4 eTiny
    
or 
    
    $ easy_install-2.4 http://openerp.com/download/stable/source/eTiny-1.0.tar.gz

Configuration:

    Locate the `config/default.cfg` in the installed `eTiny EGG`, and make 
    appropriate changes, especially:

    [openerp]
    server = "localhost"
    port = 8070
    protocol = "socket"

    where:

    server is the OpenERP server host...
    port is the OpenERP server port...
    protocol is the protocol to be used (socket, http or https)

Now start the eTiny server with `start-openerp` command, like:

    $ start-openerp

If you see message showing `cherrypy._cperror.NotReady: Port not free.` make
sure no other application is running on the specified port (8080 is default).

You can change port for `eTiny` by changing `server.socket_port` value in
`config/default.cfg`.

If everything is fine, open your favourite web browser and type 
http://localhost:8080, and your can see welcome page with login screen.

Don't forget to enable cookies !

Of course, OpenERP Server must be running at that time. You should create a
database from the DBAdmin interface by clicking on Manage button that you can
see besides the Database selection box. After creating a new database login
with the admin/admin or demo/demo to see the eTiny in action...


-------------------------------------------------------------------------------
3. Run eTiny as service (Linux):
-------------------------------------------------------------------------------

This has been tested on `ubuntu gutsy` only.

    $ cp /path/to/eTiny-1.0-py2.4.egg/scripts/etiny-server /etc/init.d
    $ cp /path/to/eTiny-1.0-py2.4.egg/config/default.cfg /etc/etiny-server.cfg

edit `/etc/init.d/etiny-server`:

    USER="terp"

and `/etc/etiny-server.cfg`:

    args="('server.log',)" ==> args="('/var/log/etiny-server.log',)"

Now run following command to start eTiny automatically on system startup.

    $ sudo update-rc.d etiny-server

Start eTiny deamon:

    $ sudo /etc/init.d/etiny-server start

-------------------------------------------------------------------------------
4. WINDOWS INSTALLATION
-------------------------------------------------------------------------------

Prerequisites

    1. Python >= 2.4
    2. OpenERP Server 4.2.x
    3. TurboGears >= 1.0.3.2
    4. matplotlib >= 0.87
    5. Python Imaging Library (PIL)

Python:

    Download and Install Python 2.4 and make sure that the dirs 
    `C:\Python24;C:\Python24\Script` are in PATH environment.

OpenERP Server:

    To install OpenERP Server, please follow the instructions provided in 
    the official OpenERP Installation guide.

TurboGears:

    Install setuptools package from http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c7.win32-py2.4.exe

    > easy_install TurboGears==1.0.3.2

Matplotlib:

    Download and install matplotlib 0.91 from: http://downloads.sourceforge.net/matplotlib/matplotlib-0.91.0.win32-py2.4.exe

Python Imaging Library (PIL):

    If you have installed OpenERP server on the same machine you already have
    installed Python Imaging Library (PIL). If not do install it from: http://effbot.org/downloads/PIL-1.1.6.win32-py2.4.exe

eTiny:

    > easy_install-2.4 eTiny
    
or

    > easy_install-2.4 http://openerp.com/download/stable/source/eTiny-1.0.tar.gz

Configuration:

    Locate the `config/default.cfg` in the installed `eTiny egg`, and make 
    appropriate changes, especially:

    [openerp]
    server = "localhost"
    port = 8070
    protocol = "socket"

    where:

    server is the OpenERP server host...
    port is the OpenERP server port...
    protocol is the protocol to be used (socket, http or https)

Now start the eTiny server with `start-openerp` command, like:

    > start-openerp

If you see message showing `cherrypy._cperror.NotReady: Port not free.` make
sure no other application is running on the specified port (8080 is default).

You can change port for `eTiny` by changing `server.socket_port` value in
`config/default.cfg`.

If everything is fine, open your favourite web browser and type 
http://localhost:8080, and your can see welcome page with login screen.

Don't forget to enable cookies !

Of course, OpenERP Server must be running at that time. You should create a
database from the DBAdmin interface by clicking on Manage button that you can
see besides the Database selection box. After creating a new database login
with the admin/admin or demo/demo to see the eTiny in action...

-------------------------------------------------------------------------------
5. eTiny + HTTPS (Linux)
-------------------------------------------------------------------------------

The following text describes how to configure eTiny for production environment
over HTTPS with Apache2.

mod_proxy + mod_ssl (Apache2)

    See Apache manual for more information.

Apache configuration:

    <VirtualHost *:443>

        SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/apache.pem

        <Proxy *>
            Order deny,allow
            Allow from all
        </Proxy>

        ProxyRequests Off

        ProxyPass        /   http://127.0.0.1:8080
        ProxyPassReverse /   http://127.0.0.1:8080

    </VirtualHost>

eTiny configuration:

    base_url_filter.on = True
    base_url_filter.use_x_forwarded_host = False
    base_url_filter.base_url = "https://www.example.com"

Block the eTiny server port (firewall):

On Linux do this:

    $ iptables -A INPUT -i lo -j ACCEPT
    $ iptables -A INPUT -p tcp --dport 8080 -j REJECT

    IMP: Don't block the localhost/121.0.0.1 (the first rule)

Notes:

    This method only works if you want your eTiny application at the root of 
    your server (https://www.example.com). eTiny currently can't be deployed 
    under a subdirectory, e.g. http://www.example.com/openerp.

    To overcome with the issue you can go with `subdomain`, like:

        https://openerp.example.com

    See: http://openerp.org/wiki/index.php/InstallationManual/WebClientHTTPS

-------------------------------------------------------------------------------
6. WEB BROWSER COMPATIBILITIES
-------------------------------------------------------------------------------

`eTiny` is known to work best with `Mozilla` based web browsers.

Here is the list of supported browsers.

    1. Firefox 1.5 or greater
    2. Internet Explorer 6.0/7.0
    3. Opera 9.0
    4. Safari 3.0

-------------------------------------------------------------------------------
7. SUPPORT
-------------------------------------------------------------------------------

    1. http://openerp.com
    2. http://axelor.com

-------------------------------------------------------------------------------
Copyright (C) 2007-TODAY TIny ERP Pvt. Ltd. All Rights Reserved.