~ubuntu-branches/ubuntu/hardy/coherence/hardy

« back to all changes in this revision

Viewing changes to coherence/web/static/Coherence.Logging.js

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2007-08-02 10:48:40 UTC
  • Revision ID: james.westby@ubuntu.com-20070802104840-ip4jij6unufqno1p
Tags: upstream-0.4.0
ImportĀ upstreamĀ versionĀ 0.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Licensed under the MIT license
 
2
// http://opensource.org/licenses/mit-license.php
 
3
//
 
4
// Copyright 2007, Frank Scholz <coherence@beebits.net>
 
5
 
 
6
// import Nevow.Athena
 
7
 
 
8
// import MochiKit
 
9
 
 
10
if(typeof(Coherence) == "undefined") {
 
11
    Coherence = {};
 
12
}
 
13
 
 
14
Coherence.Logging = Nevow.Athena.Widget.subclass('Coherence.Logging');
 
15
 
 
16
Coherence.Logging.methods(
 
17
 
 
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]);
 
22
    //}
 
23
},
 
24
 
 
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');
 
31
}
 
32
 
 
33
);