| Age | Commit message (Collapse) | Author |
|
boot loader waited for only 100 ms before logging failed modules.
However, modules can now wait for deferred before completing their
loading, so this delay is increasingly getting too short.
|
|
|
|
Otherwise the display in the server log (when spammed by phantomjs) is completely useless
|
|
boot.js log:
* ``Missing dependencies``:
These modules do not appear in the page. It is possible that the JavaScript
file is not in the page or that the module name is wrong
* ``Failed modules``:
A javascript error is detected
* ``Rejected modules``:
The module returns a rejected deferred. It (and its dependent modules) is not
loaded.
* ``Rejected linked modules``:
Modules who depend on a rejected module
* ``Non loaded modules``:
Modules who depend on a missing or a failed module
|
|
Each module can return a deferred. In that case, the module is marked as loaded
only when the deferred is resolved, and its value is equal to the resolved value.
The module can be rejected (unloaded). This will be logged in the console as info.
Remove if_dom_contains from the website, the modules return a rejected deferred if
the DOM doesn't contains the seleted values.
|
|
in red when there's an error in a javascript module
|
|
dependents, and remove failed modules from the missing module list
|
|
failed modules, unloaded modules). Add odoo.init in the website to display debugging informations.
|
|
get_missing_jobs and get_waited_jobs
|
|
|
|
wrong. Adds the list of missing modules in modules can not be started.
|
|
The module system needs to know the dependencies of a given module
before executing the function. This is why the dependencies were
defined once in an array, and then were described one more times in the
call to require.
But a trick can simplify this: the boot function can parse the string
representation of the module and extract the calls to require from it.
It is more work for the processor, but it leads to simpler module
definitions.
|
|
This commit introduces a new module system for the javascript code.
Instead of using global (namespaced) variables everywhere (like
openerp.web.whatever, ...), each file declare one (or more) module
with its dependencies. Each module will be loaded after its
dependencies, and will be given a reference to the return values.
This change is a massive departure from the way the client worked
previously. It will sadly break some/most history, but I am sure that
the future git ecosystem will allow you to easily browse the history
past this revision (one can dream).
This commit feature:
* main namespace is now odoo instead of openerp
* a way to define modules and dependencies (inspired by requirejs)
* many files have been splitted in simpler subfiles
* basic support for debugging in odoo.__DEBUG__
* no global variable (i.e. nothing in window.openerp)
* many bug fixes, many new bugs
Future vision: this modularization should simplify future code
development, simplify debugging and will allow a serious testing effort
|
|
|
|
bzr revid: nicolas.vanhoren@openerp.com-20130807095457-gdm1ixzk0rcev2sg
|
|
Still has some retro-compatibility for other addons.
bzr revid: nicolas.vanhoren@openerp.com-20130806125022-bzjbtn0nqk40ak4g
|
|
bzr revid: nicolas.vanhoren@openerp.com-20130806122623-pq6bpkjk65jx0fnp
|
|
the openerp.web namespace.
bzr revid: nicolas.vanhoren@openerp.com-20130806085812-ek8v8k0x4m7ocu4f
|
|
bzr revid: nicolas.vanhoren@openerp.com-20130729092512-1ip4abjrypf74qr2
|
|
retro-compatibility layer
bzr revid: nicolas.vanhoren@openerp.com-20130726121514-ss0omrhed76ybv5a
|
|
bzr revid: odo@openerp.com-20121130175249-yrbcdsn2z1io79dz
|
|
when creating the instance, set instance.session.uid to 42 so the evaluator has something to chew on when it tries to create the evaluation context
bzr revid: xmo@openerp.com-20121120101733-b0ire11bbuywfi8u
|
|
dependencies
bzr revid: xmo@openerp.com-20121026084543-fobkc3ta5q2jc3q6
|
|
bzr revid: xmo@openerp.com-20121005124919-yfkbzk3mjm0tot4e
|
|
bzr revid: al@openerp.com-20120812222901-tjz9443oylidd7sy
|
|
corelib, as well as the standard evaluation context building (and related objects)
bzr revid: xmo@openerp.com-20120806094627-8c9lwtfkbfws2bmj
|
|
bzr revid: vme@tinyerp.com-20120730091815-scj8dt3j1tr1jpvx
|
|
bzr revid: chs@openerp.com-20120719111414-ivf6lq2iymws0ytm
|
|
template like any other widget as qweb template are loaded. This make the code cleaner as show_common() does not return a deferred anymore.
bzr revid: chs@openerp.com-20120718131004-gvn63r3ihzxyzvy3
|
|
bzr revid: fme@openerp.com-20120611091909-269ukzc2gftkwuma
|
|
bzr revid: al@openerp.com-20120505162323-ggqwrd4t1c2wcxcd
|
|
bzr revid: al@openerp.com-20120426222552-rqm974o8c9v1s4lk
|
|
bzr revid: al@openerp.com-20120409205551-pjp7caybh0os5y9j
|
|
bzr revid: al@openerp.com-20120409003901-uo5wn6lj27yb6w7x
|
|
bzr revid: al@openerp.com-20111227194405-rz3kxbib03orbpr8
|
|
bzr revid: rlo@openerp.com-20111129143911-ac4ptj0nh2nsbdqo
|
|
bzr revid: fme@openerp.com-20111109145902-cs2ivnki2t4tlcfm
|
|
bzr revid: nicolas.vanhoren@openerp.com-20111103101952-a5zk1wgi1qkd6pr3
|
|
bzr revid: sma@tinyerp.com-20110926105300-72fwa60uvvdf1qgg
bzr revid: sma@tinyerp.com-20111003112731-uobxur1ryqb5laxy
|
|
bzr revid: al@openerp.com-20110927111402-teb8bpavj4atghle
|
|
bzr revid: chs@openerp.com-20110926112623-q68d3tebr80qt6l9
|
|
bzr revid: chs@openerp.com-20110920154358-gpv2ahph6gbtlmiy
|
|
bzr revid: vme@tinyerp.com-20110914053746-ri6d5s341mm6tc7n
|
|
bzr revid: kch@tinyerp.com-20110913054406-yrjafv0qdzzijizz
|
|
mandatory to not make free-floating methods (interpreted as globals)
bzr revid: xmo@openerp.com-20110912103503-0gpou4t50i2stycp
|
|
bzr revid: kch@tinyerp.com-20110906130525-axb8e40gc1zya9a3
|
|
did not touch gantt.js, this thing's a swap, there are implicit globals which are actually used globally
bzr revid: xmo@openerp.com-20110906093139-uermn7a9vo38l3kf
|
|
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
|