* Updated DB mappings of File/Files getting closer to the one of Image/Images
* Disabled ip address property in LogEntry (will be removed in the long run) * Removed custom property from Skin (still needs some care) * Removed commented code
This commit is contained in:
parent
29ca787190
commit
9b4a5bc10e
17 changed files with 68 additions and 84 deletions
|
@ -93,6 +93,23 @@ jala.i18n.setLocaleGetter(function() {
|
|||
return res.handlers.site.getLocale();
|
||||
});
|
||||
|
||||
function onStart() {
|
||||
// FIXME: Does database exist?
|
||||
/*var db = getDBConnection("antville");
|
||||
var rows = db.executeRetrieval("select min(id) as id from site");
|
||||
rows.next();
|
||||
var id = rows.getColumnItem("id");
|
||||
//Packages.helma.main.Server.getServer().stopApplication(app.name);
|
||||
rows.release();*/
|
||||
|
||||
// call onStart methods of modules
|
||||
for (var i in app.modules) {
|
||||
if (app.modules[i].onStart)
|
||||
app.modules[i].onStart();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
function defineConstants(ctor /*, arguments */) {
|
||||
var constants = [], name;
|
||||
for (var i=1; i<arguments.length; i+=1) {
|
||||
|
@ -115,23 +132,6 @@ function disableMacro(ctor, name) {
|
|||
return ctor.prototype[name + "_macro"] = idle;
|
||||
}
|
||||
|
||||
function onStart() {
|
||||
// FIXME: Does database exist?
|
||||
/*var db = getDBConnection("antville");
|
||||
var rows = db.executeRetrieval("select min(id) as id from site");
|
||||
rows.next();
|
||||
var id = rows.getColumnItem("id");
|
||||
//Packages.helma.main.Server.getServer().stopApplication(app.name);
|
||||
rows.release();*/
|
||||
|
||||
// call onStart methods of modules
|
||||
for (var i in app.modules) {
|
||||
if (app.modules[i].onStart)
|
||||
app.modules[i].onStart();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
function scheduler() {
|
||||
flushLog();
|
||||
Stories.flushRequests();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue