* 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:
Tobi Schäfer 2008-04-16 23:11:47 +00:00
parent 29ca787190
commit 9b4a5bc10e
17 changed files with 68 additions and 84 deletions

View file

@ -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();