~openerp-dev/openobject-client-web/trunk-proto61-pos

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
Coding style
------------

Javascript
    http://javascript.crockford.com/code.html with the following amendements:
    - Line Length should be 160 (132?), dont split at 80, rationale in 2011 we all use 16/9 screens

    http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml ?

Modules Conventions
-------------------

addons/<modulename>/controllers/ python controller
addons/<modulename>/controllers/main.py main python controller is there is only one (or should it be <modulename>.py ?)
addons/<modulename>/static/ static directory (directly served by the web server)
addons/<modulename>/static/<external_library>/ directory containing an external javascrip library respect the directory structure of upstream is this directory
addons/<modulename>/static/openerp/ module specfic static files
addons/<modulename>/static/openerp/js/ module specific javscript files
addons/<modulename>/static/openerp/css/ module specific css files
addons/<modulename>/static/openerp/img/ module specific images files
addons/<modulename>/static/openerp/ other files
addons/<modulename>/__openerp__.py module manifest referencing js and css files


Dependecies
-----------
Depends on

install "CherryPy>=3.1.2" "-d cherrypy"
install "simplejson>=2.0.9" "-d simplejson"

Maybe soon on

#install "Babel>=0.9.4" "-d babel"
#install "pytz>=2009j" "-d pytz"

Probably not anymore on:

#install "Mako>=0.2.4" "-d mako"
#install "formencode>=1.2.2" "-d formencode"
#install "pyparsing>=1.5.2" "-f pyparsing.py"
#install "xlwt>=0.7" "-d xlwt"