summaryrefslogtreecommitdiff
path: root/addons/base/static/src/js/boot.js
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-09-05 13:03:09 +0200
committerAntony Lesuisse <al@openerp.com>2011-09-05 13:03:09 +0200
commitbedfc48dcfb066e61209337235e339975dd093d0 (patch)
treefd1bab7b9f21380f1aa3ca7675018f13b4d9e652 /addons/base/static/src/js/boot.js
parent272424894a91aa136952cf88ef206afab5b5505c (diff)
rename base into web part1
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
Diffstat (limited to 'addons/base/static/src/js/boot.js')
-rw-r--r--addons/base/static/src/js/boot.js67
1 files changed, 0 insertions, 67 deletions
diff --git a/addons/base/static/src/js/boot.js b/addons/base/static/src/js/boot.js
deleted file mode 100644
index e6c9fab0831..00000000000
--- a/addons/base/static/src/js/boot.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/*---------------------------------------------------------
- * OpenERP Web Boostrap Code
- *---------------------------------------------------------*/
-
-/**
- * @name openerp
- * @namespace openerp
- * @namespace window.openerp
- */
-(function() {
- if (this.openerp)
- return;
- var session_counter = 0;
-
- var openerp = this.openerp = {
- // Per session namespace
- // openerp.<module> will map to
- // openerp.sessions.sessionname.<module> using a closure
- sessions: {},
- /**
- * OpenERP instance constructor
- *
- * @param {Boolean} skip_init if true, skips the built-in initialization
- */
- init: function(skip_init) {
- var new_instance = {
- // links to the global openerp
- _openerp: openerp,
- // Only base will be loaded, the rest will be by loaded by
- // openerp.base.Connection on the first connection
- _modules_loaded: false,
- // this unique id will be replaced by hostname_databasename by
- // openerp.base.Connection on the first connection
- _session_id: "session" + session_counter++,
- base: {},
- web_mobile: {}
- };
- openerp.sessions[new_instance._session_id] = new_instance;
- if (!skip_init){
- openerp.base(new_instance);
- }
- return new_instance;
- }
- };
-})();
-
-/*---------------------------------------------------------
- * OpenERP Web base module split
- *---------------------------------------------------------*/
-
-openerp.base = function(instance) {
- openerp.base.core(instance);
- if (openerp.base.dates) {
- openerp.base.dates(instance);
- }
- openerp.base.formats(instance);
- openerp.base.chrome(instance);
- openerp.base.data(instance);
- files = ["views","search","list","form","list_editable","web_mobile","view_tree","data_export"];
- for(i=0; i<files.length; i++) {
- if(openerp.base[files[i]]) {
- openerp.base[files[i]](instance);
- }
- }
-};
-
-// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax: