svn commit: samba r20925 - in
branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse:
.
idra at samba.org
idra at samba.org
Sat Jan 20 23:30:33 GMT 2007
Author: idra
Date: 2007-01-20 23:30:32 +0000 (Sat, 20 Jan 2007)
New Revision: 20925
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20925
Log:
Rename file following naming qooxdoo's convention
Added:
branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js
Removed:
branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/ldifViewer.js
Changeset:
Copied: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js (from rev 20924, branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/ldifViewer.js)
Deleted: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/ldifViewer.js
===================================================================
--- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/ldifViewer.js 2007-01-20 18:38:37 UTC (rev 20924)
+++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/ldifViewer.js 2007-01-20 23:30:32 UTC (rev 20925)
@@ -1,84 +0,0 @@
-/*
- * Copyright::
- * (C) 2006 by Simo Sorce
- *
- * License:
- * GPL v2 or later
- */
-
-/**
- * Swat LDB Browser class graphical user interface
- */
-
-qx.OO.defineClass("swat.module.ldbbrowse.ldifViewer", qx.ui.embed.HtmlEmbed,
-function()
-{
- qx.ui.embed.HtmlEmbed.call(this, "");
-
- this.setStyleProperty("whiteSpace", "nowrap");
- this.setStyleProperty("textOverflow", "ellipsis");
-
- this.setOverflow("auto");
- this.setSelectable(true);
-
- this.innerText = "";
-});
-
-//qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "???" });
-
-qx.OO.addProperty({ name : "innerText", type : "string" });
-
-swat.module.ldbbrowse.ldifViewer.empty = {
- html : "",
- innerText : ""
-}
-
-qx.Proto.reset = function() {
- this.innerText = "";
- this.setHtml("");
-}
-
-qx.Proto._update = function() {
- this.setHtml("<pre>" + this.innerText + "</pre>");
-}
-
-qx.Proto.appendComment = function(aText) {
- this.innerText = this.innerText + "# " + a Text + "\n\n";
- this._update();
-}
-
-qx.Proto.appendObject = function(o) {
-
- // First print the Object name as comment
- // TODO: Prettify it later
- var ldifRecord = "# " + o["dn"] + "\n";
-
- // Now the dn
- ldifRecord = ldifRecord + "dn: " + o["dn"] + "\n";
-
- // Now the attributes;
- for (var field in o)
- {
-
- // If it's multi-valued (type is an array)...
- if (typeof(o[field]) == "object")
- {
- // ... then add each value with same name
- var a = o[field];
- for (var i = 0; i < a.length; i++)
- {
- ldifRecord = ldifRecord + field + ": " + a[i] + "\n";
- }
- }
- else // single-valued
- {
- ldifRecord = ldifRecord + field + ": " + o[field] + "\n";
- }
- }
-
- // Terminate the record with an empty line
- ldifRecord = ldifRecord + "\n";
-
- this.innerText = this.innerText + ldifRecord;
- this._update();
-}
More information about the samba-cvs
mailing list