1
// Licensed under the MIT license
2
// http://opensource.org/licenses/mit-license.php
4
// Copyright 2007, Frank Scholz <coherence@beebits.net>
10
if(typeof(Coherence) == "undefined") {
14
Coherence.Logging = Nevow.Athena.Widget.subclass('Coherence.Logging');
16
Coherence.Logging.methods(
18
function buildLogPanel(self, result) {
19
Divmod.debug("logging",'buildLogPanel ');
20
//for(var i=0; i<result.length;++i) {
21
// Divmod.debug("logging",'buildLogPanel ' + i + ' ' + result[i]);
25
function __init__(self, node) {
26
Divmod.debug("logging",'Coherence.Logging __init__');
27
Coherence.Logging.upcall(self, '__init__', node);
28
var d = self.callRemote('going_live');
29
d.addCallback(function (result) { self.buildLogPanel(result); });
30
Divmod.debug("logging",'Coherence.Logging __init__ done');