tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkuhn...@apache.org
Subject svn commit: r618461 [25/43] - in /tapestry/tapestry4/trunk/tapestry-framework/src/js: dojo-0.4.3-custom-4.1.5/ dojo-0.4.3-custom-4.1.5/nls/ dojo-0.4.3-custom-4.1.5/src/ dojo-0.4.3-custom-4.1.5/src/animation/ dojo-0.4.3-custom-4.1.5/src/cal/ dojo-0.4.3-...
Date Mon, 04 Feb 2008 22:08:37 GMT
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/Logger.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/Logger.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/Logger.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/Logger.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,203 @@
+dojo.provide("dojo.logging.Logger");
+dojo.provide("dojo.logging.LogFilter");
+dojo.provide("dojo.logging.Record");
+dojo.provide("dojo.log");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.lang.declare");
+dojo.logging.Record=function(_1,_2){
+this.level=_1;
+this.message="";
+this.msgArgs=[];
+this.time=new Date();
+if(dojo.lang.isArray(_2)){
+if(_2.length>0&&dojo.lang.isString(_2[0])){
+this.message=_2.shift();
+}
+this.msgArgs=_2;
+}else{
+this.message=_2;
+}
+};
+dojo.logging.LogFilter=function(_3){
+this.passChain=_3||"";
+this.filter=function(_4){
+return true;
+};
+};
+dojo.logging.Logger=function(){
+this.cutOffLevel=0;
+this.propagate=true;
+this.parent=null;
+this.data=[];
+this.filters=[];
+this.handlers=[];
+};
+dojo.extend(dojo.logging.Logger,{_argsToArr:function(_5){
+var _6=[];
+for(var x=0;x<_5.length;x++){
+_6.push(_5[x]);
+}
+return _6;
+},setLevel:function(_8){
+this.cutOffLevel=parseInt(_8);
+},isEnabledFor:function(_9){
+return parseInt(_9)>=this.cutOffLevel;
+},getEffectiveLevel:function(){
+if((this.cutOffLevel==0)&&(this.parent)){
+return this.parent.getEffectiveLevel();
+}
+return this.cutOffLevel;
+},addFilter:function(_a){
+this.filters.push(_a);
+return this.filters.length-1;
+},removeFilterByIndex:function(_b){
+if(this.filters[_b]){
+delete this.filters[_b];
+return true;
+}
+return false;
+},removeFilter:function(_c){
+for(var x=0;x<this.filters.length;x++){
+if(this.filters[x]===_c){
+delete this.filters[x];
+return true;
+}
+}
+return false;
+},removeAllFilters:function(){
+this.filters=[];
+},filter:function(_e){
+for(var x=0;x<this.filters.length;x++){
+if((this.filters[x]["filter"])&&(!this.filters[x].filter(_e))||(_e.level<this.cutOffLevel)){
+return false;
+}
+}
+return true;
+},addHandler:function(_10){
+this.handlers.push(_10);
+return this.handlers.length-1;
+},handle:function(rec){
+if((!this.filter(rec))||(rec.level<this.cutOffLevel)){
+return false;
+}
+for(var x=0;x<this.handlers.length;x++){
+if(this.handlers[x]["handle"]){
+this.handlers[x].handle(rec);
+}
+}
+return true;
+},log:function(lvl,msg){
+if((this.propagate)&&(this.parent)&&(this.parent.rec.level>=this.cutOffLevel)){
+this.parent.log(lvl,msg);
+return false;
+}
+this.handle(new dojo.logging.Record(lvl,msg));
+return true;
+},debug:function(msg){
+return this.logType("DEBUG",this._argsToArr(arguments));
+},info:function(msg){
+return this.logType("INFO",this._argsToArr(arguments));
+},warning:function(msg){
+return this.logType("WARNING",this._argsToArr(arguments));
+},error:function(msg){
+return this.logType("ERROR",this._argsToArr(arguments));
+},critical:function(msg){
+return this.logType("CRITICAL",this._argsToArr(arguments));
+},exception:function(msg,e,_1c){
+if(e){
+var _1d=[e.name,(e.description||e.message)];
+if(e.fileName){
+_1d.push(e.fileName);
+_1d.push("line "+e.lineNumber);
+}
+msg+=" "+_1d.join(" : ");
+}
+this.logType("ERROR",msg);
+if(!_1c){
+throw e;
+}
+},logType:function(_1e,_1f){
+return this.log.apply(this,[dojo.logging.log.getLevel(_1e),_1f]);
+},warn:function(){
+this.warning.apply(this,arguments);
+},err:function(){
+this.error.apply(this,arguments);
+},crit:function(){
+this.critical.apply(this,arguments);
+}});
+dojo.logging.LogHandler=function(_20){
+this.cutOffLevel=(_20)?_20:0;
+this.formatter=null;
+this.data=[];
+this.filters=[];
+};
+dojo.lang.extend(dojo.logging.LogHandler,{setFormatter:function(_21){
+dojo.unimplemented("setFormatter");
+},flush:function(){
+},close:function(){
+},handleError:function(){
+dojo.deprecated("dojo.logging.LogHandler.handleError","use handle()","0.6");
+},handle:function(_22){
+if((this.filter(_22))&&(_22.level>=this.cutOffLevel)){
+this.emit(_22);
+}
+},emit:function(_23){
+dojo.unimplemented("emit");
+}});
+void (function(){
+var _24=["setLevel","addFilter","removeFilterByIndex","removeFilter","removeAllFilters","filter"];
+var tgt=dojo.logging.LogHandler.prototype;
+var src=dojo.logging.Logger.prototype;
+for(var x=0;x<_24.length;x++){
+tgt[_24[x]]=src[_24[x]];
+}
+})();
+dojo.logging.log=new dojo.logging.Logger();
+dojo.logging.log.levels=[{"name":"DEBUG","level":1},{"name":"INFO","level":2},{"name":"WARNING","level":3},{"name":"ERROR","level":4},{"name":"CRITICAL","level":5}];
+dojo.logging.log.loggers={};
+dojo.logging.log.getLogger=function(_28){
+if(!this.loggers[_28]){
+this.loggers[_28]=new dojo.logging.Logger();
+this.loggers[_28].parent=this;
+}
+return this.loggers[_28];
+};
+dojo.logging.log.getLevelName=function(lvl){
+for(var x=0;x<this.levels.length;x++){
+if(this.levels[x].level==lvl){
+return this.levels[x].name;
+}
+}
+return null;
+};
+dojo.logging.log.getLevel=function(_2b){
+for(var x=0;x<this.levels.length;x++){
+if(this.levels[x].name.toUpperCase()==_2b.toUpperCase()){
+return this.levels[x].level;
+}
+}
+return null;
+};
+dojo.declare("dojo.logging.MemoryLogHandler",dojo.logging.LogHandler,{initializer:function(_2d,_2e,_2f,_30){
+dojo.logging.LogHandler.call(this,_2d);
+this.numRecords=(typeof djConfig["loggingNumRecords"]!="undefined")?djConfig["loggingNumRecords"]:((_2e)?_2e:-1);
+this.postType=(typeof djConfig["loggingPostType"]!="undefined")?djConfig["loggingPostType"]:(_2f||-1);
+this.postInterval=(typeof djConfig["loggingPostInterval"]!="undefined")?djConfig["loggingPostInterval"]:(_2f||-1);
+},emit:function(_31){
+if(!djConfig.isDebug){
+return;
+}
+var _32=String(dojo.log.getLevelName(_31.level)+": "+_31.time.toLocaleTimeString())+": "+_31.message;
+if(!dj_undef("println",dojo.hostenv)){
+dojo.hostenv.println(_32,_31.msgArgs);
+}
+this.data.push(_31);
+if(this.numRecords!=-1){
+while(this.data.length>this.numRecords){
+this.data.shift();
+}
+}
+}});
+dojo.logging.logQueueHandler=new dojo.logging.MemoryLogHandler(0,50,0,10000);
+dojo.logging.log.addHandler(dojo.logging.logQueueHandler);
+dojo.log=dojo.logging.log;

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/Logger.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/Logger.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/Logger.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/__package__.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/__package__.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,2 @@
+dojo.kwCompoundRequire({common:[["dojo.logging.Logger",false,false]],rhino:["dojo.logging.RhinoLogger"]});
+dojo.provide("dojo.logging.*");

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/__package__.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/__package__.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/__package__.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,95 @@
+dojo.provide("dojo.math");
+dojo.math.degToRad=function(x){
+return (x*Math.PI)/180;
+};
+dojo.math.radToDeg=function(x){
+return (x*180)/Math.PI;
+};
+dojo.math.factorial=function(n){
+if(n<1){
+return 0;
+}
+var _4=1;
+for(var i=1;i<=n;i++){
+_4*=i;
+}
+return _4;
+};
+dojo.math.permutations=function(n,k){
+if(n==0||k==0){
+return 1;
+}
+return (dojo.math.factorial(n)/dojo.math.factorial(n-k));
+};
+dojo.math.combinations=function(n,r){
+if(n==0||r==0){
+return 1;
+}
+return (dojo.math.factorial(n)/(dojo.math.factorial(n-r)*dojo.math.factorial(r)));
+};
+dojo.math.bernstein=function(t,n,i){
+return (dojo.math.combinations(n,i)*Math.pow(t,i)*Math.pow(1-t,n-i));
+};
+dojo.math.gaussianRandom=function(){
+var k=2;
+do{
+var i=2*Math.random()-1;
+var j=2*Math.random()-1;
+k=i*i+j*j;
+}while(k>=1);
+k=Math.sqrt((-2*Math.log(k))/k);
+return i*k;
+};
+dojo.math.mean=function(){
+var _10=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
+var _11=0;
+for(var i=0;i<_10.length;i++){
+_11+=_10[i];
+}
+return _11/_10.length;
+};
+dojo.math.round=function(_13,_14){
+if(!_14){
+var _15=1;
+}else{
+var _15=Math.pow(10,_14);
+}
+return Math.round(_13*_15)/_15;
+};
+dojo.math.sd=dojo.math.standardDeviation=function(){
+var _16=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
+return Math.sqrt(dojo.math.variance(_16));
+};
+dojo.math.variance=function(){
+var _17=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
+var _18=0,_19=0;
+for(var i=0;i<_17.length;i++){
+_18+=_17[i];
+_19+=Math.pow(_17[i],2);
+}
+return (_19/_17.length)-Math.pow(_18/_17.length,2);
+};
+dojo.math.range=function(a,b,_1d){
+if(arguments.length<2){
+b=a;
+a=0;
+}
+if(arguments.length<3){
+_1d=1;
+}
+var _1e=[];
+if(_1d>0){
+for(var i=a;i<b;i+=_1d){
+_1e.push(i);
+}
+}else{
+if(_1d<0){
+for(var i=a;i>b;i+=_1d){
+_1e.push(i);
+}
+}else{
+throw new Error("dojo.math.range: step must be non-zero");
+}
+}
+return _1e;
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/__package__.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/__package__.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,2 @@
+dojo.kwCompoundRequire({common:[["dojo.math",false,false],["dojo.math.curves",false,false],["dojo.math.points",false,false]]});
+dojo.provide("dojo.math.*");

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/__package__.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/__package__.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/__package__.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/curves.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/curves.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/curves.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/curves.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,171 @@
+dojo.provide("dojo.math.curves");
+dojo.require("dojo.math");
+dojo.math.curves={Line:function(_1,_2){
+this.start=_1;
+this.end=_2;
+this.dimensions=_1.length;
+for(var i=0;i<_1.length;i++){
+_1[i]=Number(_1[i]);
+}
+for(var i=0;i<_2.length;i++){
+_2[i]=Number(_2[i]);
+}
+this.getValue=function(n){
+var _5=new Array(this.dimensions);
+for(var i=0;i<this.dimensions;i++){
+_5[i]=((this.end[i]-this.start[i])*n)+this.start[i];
+}
+return _5;
+};
+return this;
+},Bezier:function(_7){
+this.getValue=function(_8){
+if(_8>=1){
+return this.p[this.p.length-1];
+}
+if(_8<=0){
+return this.p[0];
+}
+var _9=new Array(this.p[0].length);
+for(var k=0;j<this.p[0].length;k++){
+_9[k]=0;
+}
+for(var j=0;j<this.p[0].length;j++){
+var C=0;
+var D=0;
+for(var i=0;i<this.p.length;i++){
+C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(_8,this.p.length,i);
+}
+for(var l=0;l<this.p.length;l++){
+D+=this.p[this.p.length-1][0]*dojo.math.bernstein(_8,this.p.length,l);
+}
+_9[j]=C/D;
+}
+return _9;
+};
+this.p=_7;
+return this;
+},CatmullRom:function(_10,c){
+this.getValue=function(_12){
+var _13=_12*(this.p.length-1);
+var _14=Math.floor(_13);
+var _15=_13-_14;
+var i0=_14-1;
+if(i0<0){
+i0=0;
+}
+var i=_14;
+var i1=_14+1;
+if(i1>=this.p.length){
+i1=this.p.length-1;
+}
+var i2=_14+2;
+if(i2>=this.p.length){
+i2=this.p.length-1;
+}
+var u=_15;
+var u2=_15*_15;
+var u3=_15*_15*_15;
+var _1d=new Array(this.p[0].length);
+for(var k=0;k<this.p[0].length;k++){
+var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);
+var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);
+var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);
+var x4=this.p[i][k];
+_1d[k]=x1*u3+x2*u2+x3*u+x4;
+}
+return _1d;
+};
+if(!c){
+this.c=0.7;
+}else{
+this.c=c;
+}
+this.p=_10;
+return this;
+},Arc:function(_23,end,ccw){
+var _26=dojo.math.points.midpoint(_23,end);
+var _27=dojo.math.points.translate(dojo.math.points.invert(_26),_23);
+var rad=Math.sqrt(Math.pow(_27[0],2)+Math.pow(_27[1],2));
+var _29=dojo.math.radToDeg(Math.atan(_27[1]/_27[0]));
+if(_27[0]<0){
+_29-=90;
+}else{
+_29+=90;
+}
+dojo.math.curves.CenteredArc.call(this,_26,rad,_29,_29+(ccw?-180:180));
+},CenteredArc:function(_2a,_2b,_2c,end){
+this.center=_2a;
+this.radius=_2b;
+this.start=_2c||0;
+this.end=end;
+this.getValue=function(n){
+var _2f=new Array(2);
+var _30=dojo.math.degToRad(this.start+((this.end-this.start)*n));
+_2f[0]=this.center[0]+this.radius*Math.sin(_30);
+_2f[1]=this.center[1]-this.radius*Math.cos(_30);
+return _2f;
+};
+return this;
+},Circle:function(_31,_32){
+dojo.math.curves.CenteredArc.call(this,_31,_32,0,360);
+return this;
+},Path:function(){
+var _33=[];
+var _34=[];
+var _35=[];
+var _36=0;
+this.add=function(_37,_38){
+if(_38<0){
+dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
+}
+_33.push(_37);
+_34.push(_38);
+_36+=_38;
+computeRanges();
+};
+this.remove=function(_39){
+for(var i=0;i<_33.length;i++){
+if(_33[i]==_39){
+_33.splice(i,1);
+_36-=_34.splice(i,1)[0];
+break;
+}
+}
+computeRanges();
+};
+this.removeAll=function(){
+_33=[];
+_34=[];
+_36=0;
+};
+this.getValue=function(n){
+var _3c=false,_3d=0;
+for(var i=0;i<_35.length;i++){
+var r=_35[i];
+if(n>=r[0]&&n<r[1]){
+var _40=(n-r[0])/r[2];
+_3d=_33[i].getValue(_40);
+_3c=true;
+break;
+}
+}
+if(!_3c){
+_3d=_33[_33.length-1].getValue(1);
+}
+for(var j=0;j<i;j++){
+_3d=dojo.math.points.translate(_3d,_33[j].getValue(1));
+}
+return _3d;
+};
+function computeRanges(){
+var _42=0;
+for(var i=0;i<_34.length;i++){
+var end=_42+_34[i]/_36;
+var len=end-_42;
+_35[i]=[_42,end,len];
+_42=end;
+}
+}
+return this;
+}};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/curves.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/curves.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/curves.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/matrix.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/matrix.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/matrix.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/matrix.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,290 @@
+dojo.provide("dojo.math.matrix");
+dojo.math.matrix.iDF=0;
+dojo.math.matrix.ALMOST_ZERO=1e-10;
+dojo.math.matrix.multiply=function(a,b){
+var ay=a.length;
+var ax=a[0].length;
+var by=b.length;
+var bx=b[0].length;
+if(ax!=by){
+dojo.debug("Can't multiply matricies of sizes "+ax+","+ay+" and "+bx+","+by);
+return [[0]];
+}
+var c=[];
+for(var k=0;k<ay;k++){
+c[k]=[];
+for(var i=0;i<bx;i++){
+c[k][i]=0;
+for(var m=0;m<ax;m++){
+c[k][i]+=a[k][m]*b[m][i];
+}
+}
+}
+return c;
+};
+dojo.math.matrix.product=function(){
+if(arguments.length==0){
+dojo.debug("can't multiply 0 matrices!");
+return 1;
+}
+var _b=arguments[0];
+for(var i=1;i<arguments.length;i++){
+_b=dojo.math.matrix.multiply(_b,arguments[i]);
+}
+return _b;
+};
+dojo.math.matrix.sum=function(){
+if(arguments.length==0){
+dojo.debug("can't sum 0 matrices!");
+return 0;
+}
+var _d=dojo.math.matrix.copy(arguments[0]);
+var _e=_d.length;
+if(_e==0){
+dojo.debug("can't deal with matrices of 0 rows!");
+return 0;
+}
+var _f=_d[0].length;
+if(_f==0){
+dojo.debug("can't deal with matrices of 0 cols!");
+return 0;
+}
+for(var i=1;i<arguments.length;++i){
+var arg=arguments[i];
+if(arg.length!=_e||arg[0].length!=_f){
+dojo.debug("can't add matrices of different dimensions: first dimensions were "+_e+"x"+_f+", current dimensions are "+arg.length+"x"+arg[0].length);
+return 0;
+}
+for(var r=0;r<_e;r++){
+for(var c=0;c<_f;c++){
+_d[r][c]+=arg[r][c];
+}
+}
+}
+return _d;
+};
+dojo.math.matrix.inverse=function(a){
+if(a.length==1&&a[0].length==1){
+return [[1/a[0][0]]];
+}
+var tms=a.length;
+var m=dojo.math.matrix.create(tms,tms);
+var mm=dojo.math.matrix.adjoint(a);
+var det=dojo.math.matrix.determinant(a);
+var dd=0;
+if(det==0){
+dojo.debug("Determinant Equals 0, Not Invertible.");
+return [[0]];
+}else{
+dd=1/det;
+}
+for(var i=0;i<tms;i++){
+for(var j=0;j<tms;j++){
+m[i][j]=dd*mm[i][j];
+}
+}
+return m;
+};
+dojo.math.matrix.determinant=function(a){
+if(a.length!=a[0].length){
+dojo.debug("Can't calculate the determiant of a non-squre matrix!");
+return 0;
+}
+var tms=a.length;
+var det=1;
+var b=dojo.math.matrix.upperTriangle(a);
+for(var i=0;i<tms;i++){
+var bii=b[i][i];
+if(Math.abs(bii)<dojo.math.matrix.ALMOST_ZERO){
+return 0;
+}
+det*=bii;
+}
+det=det*dojo.math.matrix.iDF;
+return det;
+};
+dojo.math.matrix.upperTriangle=function(m){
+m=dojo.math.matrix.copy(m);
+var f1=0;
+var _24=0;
+var tms=m.length;
+var v=1;
+dojo.math.matrix.iDF=1;
+for(var col=0;col<tms-1;col++){
+if(typeof m[col][col]!="number"){
+dojo.debug("non-numeric entry found in a numeric matrix: m["+col+"]["+col+"]="+m[col][col]);
+}
+v=1;
+var _28=0;
+while((m[col][col]==0)&&!_28){
+if(col+v>=tms){
+dojo.math.matrix.iDF=0;
+_28=1;
+}else{
+for(var r=0;r<tms;r++){
+_24=m[col][r];
+m[col][r]=m[col+v][r];
+m[col+v][r]=_24;
+}
+v++;
+dojo.math.matrix.iDF*=-1;
+}
+}
+for(var row=col+1;row<tms;row++){
+if(typeof m[row][col]!="number"){
+dojo.debug("non-numeric entry found in a numeric matrix: m["+row+"]["+col+"]="+m[row][col]);
+}
+if(typeof m[col][row]!="number"){
+dojo.debug("non-numeric entry found in a numeric matrix: m["+col+"]["+row+"]="+m[col][row]);
+}
+if(m[col][col]!=0){
+var f1=(-1)*m[row][col]/m[col][col];
+for(var i=col;i<tms;i++){
+m[row][i]=f1*m[col][i]+m[row][i];
+}
+}
+}
+}
+return m;
+};
+dojo.math.matrix.create=function(a,b,_2e){
+if(!_2e){
+_2e=0;
+}
+var m=[];
+for(var i=0;i<b;i++){
+m[i]=[];
+for(var j=0;j<a;j++){
+m[i][j]=_2e;
+}
+}
+return m;
+};
+dojo.math.matrix.ones=function(a,b){
+return dojo.math.matrix.create(a,b,1);
+};
+dojo.math.matrix.zeros=function(a,b){
+return dojo.math.matrix.create(a,b,0);
+};
+dojo.math.matrix.identity=function(_36,_37){
+if(!_37){
+_37=1;
+}
+var m=[];
+for(var i=0;i<_36;i++){
+m[i]=[];
+for(var j=0;j<_36;j++){
+m[i][j]=(i==j?_37:0);
+}
+}
+return m;
+};
+dojo.math.matrix.adjoint=function(a){
+var tms=a.length;
+if(tms<=1){
+dojo.debug("Can't find the adjoint of a matrix with a dimension less than 2");
+return [[0]];
+}
+if(a.length!=a[0].length){
+dojo.debug("Can't find the adjoint of a non-square matrix");
+return [[0]];
+}
+var m=dojo.math.matrix.create(tms,tms);
+var ii=0;
+var jj=0;
+var ia=0;
+var ja=0;
+var det=0;
+var ap=dojo.math.matrix.create(tms-1,tms-1);
+for(var i=0;i<tms;i++){
+for(var j=0;j<tms;j++){
+ia=0;
+for(ii=0;ii<tms;ii++){
+if(ii==i){
+continue;
+}
+ja=0;
+for(jj=0;jj<tms;jj++){
+if(jj==j){
+continue;
+}
+ap[ia][ja]=a[ii][jj];
+ja++;
+}
+ia++;
+}
+det=dojo.math.matrix.determinant(ap);
+m[i][j]=Math.pow(-1,(i+j))*det;
+}
+}
+m=dojo.math.matrix.transpose(m);
+return m;
+};
+dojo.math.matrix.transpose=function(a){
+var m=dojo.math.matrix.create(a.length,a[0].length);
+for(var i=0;i<a.length;i++){
+for(var j=0;j<a[i].length;j++){
+m[j][i]=a[i][j];
+}
+}
+return m;
+};
+dojo.math.matrix.format=function(a,_4b){
+if(arguments.length<=1){
+_4b=5;
+}
+function format_int(x,dp){
+var fac=Math.pow(10,dp);
+var a=Math.round(x*fac)/fac;
+var b=a.toString();
+if(b.charAt(0)!="-"){
+b=" "+b;
+}
+var _51=0;
+for(var i=1;i<b.length;i++){
+if(b.charAt(i)=="."){
+_51=1;
+}
+}
+if(!_51){
+b+=".";
+}
+while(b.length<dp+3){
+b+="0";
+}
+return b;
+}
+var ya=a.length;
+var xa=ya>0?a[0].length:0;
+var _55="";
+for(var y=0;y<ya;y++){
+_55+="| ";
+for(var x=0;x<xa;x++){
+_55+=format_int(a[y][x],_4b)+" ";
+}
+_55+="|\n";
+}
+return _55;
+};
+dojo.math.matrix.copy=function(a){
+var ya=a.length;
+var xa=a[0].length;
+var m=dojo.math.matrix.create(xa,ya);
+for(var y=0;y<ya;y++){
+for(var x=0;x<xa;x++){
+m[y][x]=a[y][x];
+}
+}
+return m;
+};
+dojo.math.matrix.scale=function(k,a){
+a=dojo.math.matrix.copy(a);
+var ya=a.length;
+var xa=a[0].length;
+for(var y=0;y<ya;y++){
+for(var x=0;x<xa;x++){
+a[y][x]*=k;
+}
+}
+return a;
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/matrix.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/matrix.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/matrix.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/points.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/points.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/points.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/points.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,29 @@
+dojo.provide("dojo.math.points");
+dojo.require("dojo.math");
+dojo.math.points={translate:function(a,b){
+if(a.length!=b.length){
+dojo.raise("dojo.math.translate: points not same size (a:["+a+"], b:["+b+"])");
+}
+var c=new Array(a.length);
+for(var i=0;i<a.length;i++){
+c[i]=a[i]+b[i];
+}
+return c;
+},midpoint:function(a,b){
+if(a.length!=b.length){
+dojo.raise("dojo.math.midpoint: points not same size (a:["+a+"], b:["+b+"])");
+}
+var c=new Array(a.length);
+for(var i=0;i<a.length;i++){
+c[i]=(a[i]+b[i])/2;
+}
+return c;
+},invert:function(a){
+var b=new Array(a.length);
+for(var i=0;i<a.length;i++){
+b[i]=-a[i];
+}
+return b;
+},distance:function(a,b){
+return Math.sqrt(Math.pow(b[0]-a[0],2)+Math.pow(b[1]-a[1],2));
+}};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/points.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/points.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/math/points.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/namespaces/dojo.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/namespaces/dojo.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/namespaces/dojo.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/namespaces/dojo.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,163 @@
+/*
+	Copyright (c) 2004-2006, The Dojo Foundation
+	All Rights Reserved.
+
+	Licensed under the Academic Free License version 2.1 or above OR the
+	modified BSD license. For more information on Dojo licensing, see:
+
+		http://dojotoolkit.org/community/licensing.shtml
+*/
+
+dojo.provide("dojo.namespaces.dojo");
+dojo.require("dojo.ns");
+
+(function(){
+	// Mapping of all widget short names to their full package names
+	// This is used for widget autoloading - no dojo.require() is necessary.
+	// If you use a widget in markup or create one dynamically, then this
+	// mapping is used to find and load any dependencies not already loaded.
+	// You should use your own namespace for any custom widgets.
+	// For extra widgets you use, dojo.declare() may be used to explicitly load them.
+	// Experimental and deprecated widgets are not included in this table
+	var map = {
+		html: {
+			"accordioncontainer": "dojo.widget.AccordionContainer",
+			"animatedpng": "dojo.widget.AnimatedPng",
+			"button": "dojo.widget.Button",
+			"chart": "dojo.widget.Chart",
+			"checkbox": "dojo.widget.Checkbox",
+			"clock": "dojo.widget.Clock",
+			"colorpalette": "dojo.widget.ColorPalette",
+			"combobox": "dojo.widget.ComboBox",
+			"combobutton": "dojo.widget.Button",
+			"contentpane": "dojo.widget.ContentPane",
+			"currencytextbox": "dojo.widget.CurrencyTextbox",
+			"datepicker": "dojo.widget.DatePicker",
+			"datetextbox": "dojo.widget.DateTextbox",
+			"debugconsole": "dojo.widget.DebugConsole",
+			"dialog": "dojo.widget.Dialog",
+			"dropdownbutton": "dojo.widget.Button",
+			"dropdowndatepicker": "dojo.widget.DropdownDatePicker",
+			"dropdowntimepicker": "dojo.widget.DropdownTimePicker",
+			"emaillisttextbox": "dojo.widget.InternetTextbox",
+			"emailtextbox": "dojo.widget.InternetTextbox",
+			"editor": "dojo.widget.Editor",
+			"editor2": "dojo.widget.Editor2",
+			"filteringtable": "dojo.widget.FilteringTable",
+			"fisheyelist": "dojo.widget.FisheyeList",
+			"fisheyelistitem": "dojo.widget.FisheyeList",
+			"floatingpane": "dojo.widget.FloatingPane",
+			"modalfloatingpane": "dojo.widget.FloatingPane",
+			"form": "dojo.widget.Form",
+			"googlemap": "dojo.widget.GoogleMap",
+			"inlineeditbox": "dojo.widget.InlineEditBox",
+			"integerspinner": "dojo.widget.Spinner",
+			"integertextbox": "dojo.widget.IntegerTextbox",
+			"ipaddresstextbox": "dojo.widget.InternetTextbox",
+			"layoutcontainer": "dojo.widget.LayoutContainer",
+			"linkpane": "dojo.widget.LinkPane",
+			"popupmenu2": "dojo.widget.Menu2",
+			"menuitem2": "dojo.widget.Menu2",
+			"menuseparator2": "dojo.widget.Menu2",
+			"menubar2": "dojo.widget.Menu2",
+			"menubaritem2": "dojo.widget.Menu2",
+			"pagecontainer": "dojo.widget.PageContainer",
+			"pagecontroller": "dojo.widget.PageContainer",
+			"popupcontainer": "dojo.widget.PopupContainer",
+			"progressbar": "dojo.widget.ProgressBar",
+			"radiogroup": "dojo.widget.RadioGroup",
+			"realnumbertextbox": "dojo.widget.RealNumberTextbox",
+			"regexptextbox": "dojo.widget.RegexpTextbox",
+			"repeater": "dojo.widget.Repeater", 
+			"resizabletextarea": "dojo.widget.ResizableTextarea",
+			"richtext": "dojo.widget.RichText",
+			"select": "dojo.widget.Select",
+			"show": "dojo.widget.Show",
+			"showaction": "dojo.widget.ShowAction",
+			"showslide": "dojo.widget.ShowSlide",
+			"slidervertical": "dojo.widget.Slider",
+			"sliderhorizontal": "dojo.widget.Slider",
+			"slider":"dojo.widget.Slider",
+			"slideshow": "dojo.widget.SlideShow",
+			"sortabletable": "dojo.widget.SortableTable",
+			"splitcontainer": "dojo.widget.SplitContainer",
+			"tabcontainer": "dojo.widget.TabContainer",
+			"tabcontroller": "dojo.widget.TabContainer",
+			"taskbar": "dojo.widget.TaskBar",
+			"textbox": "dojo.widget.Textbox",
+			"timepicker": "dojo.widget.TimePicker",
+			"timetextbox": "dojo.widget.DateTextbox",
+			"titlepane": "dojo.widget.TitlePane",
+			"toaster": "dojo.widget.Toaster",
+			"toggler": "dojo.widget.Toggler",
+			"toolbar": "dojo.widget.Toolbar",
+			"toolbarcontainer": "dojo.widget.Toolbar",
+			"toolbaritem": "dojo.widget.Toolbar",
+			"toolbarbuttongroup": "dojo.widget.Toolbar",
+			"toolbarbutton": "dojo.widget.Toolbar",
+			"toolbardialog": "dojo.widget.Toolbar",
+			"toolbarmenu": "dojo.widget.Toolbar",
+			"toolbarseparator": "dojo.widget.Toolbar",
+			"toolbarspace": "dojo.widget.Toolbar",
+			"toolbarselect": "dojo.widget.Toolbar",
+			"toolbarcolordialog": "dojo.widget.Toolbar",
+			"tooltip": "dojo.widget.Tooltip",
+			"tree": "dojo.widget.Tree",
+			"treebasiccontroller": "dojo.widget.TreeBasicController",
+			"treecontextmenu": "dojo.widget.TreeContextMenu",
+			"treedisablewrapextension": "dojo.widget.TreeDisableWrapExtension",
+			"treedociconextension": "dojo.widget.TreeDocIconExtension",
+			"treeeditor": "dojo.widget.TreeEditor",
+			"treeemphasizeonselect": "dojo.widget.TreeEmphasizeOnSelect",
+			"treeexpandtonodeonselect": "dojo.widget.TreeExpandToNodeOnSelect",
+			"treelinkextension": "dojo.widget.TreeLinkExtension",
+			"treeloadingcontroller": "dojo.widget.TreeLoadingController",
+			"treemenuitem": "dojo.widget.TreeContextMenu",
+			"treenode": "dojo.widget.TreeNode",
+			"treerpccontroller": "dojo.widget.TreeRPCController",
+			"treeselector": "dojo.widget.TreeSelector",
+			"treetoggleonselect": "dojo.widget.TreeToggleOnSelect",
+			"treev3": "dojo.widget.TreeV3",
+			"treebasiccontrollerv3": "dojo.widget.TreeBasicControllerV3",
+			"treecontextmenuv3": "dojo.widget.TreeContextMenuV3",
+			"treedndcontrollerv3": "dojo.widget.TreeDndControllerV3",
+			"treeloadingcontrollerv3": "dojo.widget.TreeLoadingControllerV3",
+			"treemenuitemv3": "dojo.widget.TreeContextMenuV3",
+			"treerpccontrollerv3": "dojo.widget.TreeRpcControllerV3",
+			"treeselectorv3": "dojo.widget.TreeSelectorV3",
+			"urltextbox": "dojo.widget.InternetTextbox",
+			"usphonenumbertextbox": "dojo.widget.UsTextbox",
+			"ussocialsecuritynumbertextbox": "dojo.widget.UsTextbox",
+			"usstatetextbox": "dojo.widget.UsTextbox",
+			"usziptextbox": "dojo.widget.UsTextbox",
+			"validationtextbox": "dojo.widget.ValidationTextbox",
+			"treeloadingcontroller": "dojo.widget.TreeLoadingController",
+			"wizardcontainer": "dojo.widget.Wizard",
+			"wizardpane": "dojo.widget.Wizard",
+			"yahoomap": "dojo.widget.YahooMap"
+		},
+		svg: {
+			"chart": "dojo.widget.svg.Chart"
+		},
+		vml: {
+			"chart": "dojo.widget.vml.Chart"
+		}
+	};
+
+	dojo.addDojoNamespaceMapping = function(/*String*/shortName, /*String*/packageName){
+	// summary:
+	//	Add an entry to the mapping table for the dojo: namespace
+	//
+	// shortName: the name to be used as the widget's tag name in the dojo: namespace
+	// packageName: the path to the Javascript module in dotted package notation
+		map[shortName]=packageName;    
+	};
+	
+	function dojoNamespaceResolver(name, domain){
+		if(!domain){ domain="html"; }
+		if(!map[domain]){ return null; }
+		return map[domain][name];    
+	}
+
+	dojo.registerNamespaceResolver("dojo", dojoNamespaceResolver);
+})();

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/namespaces/dojo.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/namespaces/dojo.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/namespaces/dojo.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/ns.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/ns.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/ns.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/ns.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,87 @@
+dojo.provide("dojo.ns");
+dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(_1,_2,_3,_4){
+if(!_4||!this.namespaces[_1]){
+this.namespaces[_1]=new dojo.ns.Ns(_1,_2,_3);
+}
+},allow:function(_5){
+if(this.failed[_5]){
+return false;
+}
+if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,_5))){
+return false;
+}
+return ((_5==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,_5)));
+},get:function(_6){
+return this.namespaces[_6];
+},require:function(_7){
+var ns=this.namespaces[_7];
+if((ns)&&(this.loaded[_7])){
+return ns;
+}
+if(!this.allow(_7)){
+return false;
+}
+if(this.loading[_7]){
+dojo.debug("dojo.namespace.require: re-entrant request to load namespace \""+_7+"\" must fail.");
+return false;
+}
+var _9=dojo.require;
+this.loading[_7]=true;
+try{
+if(_7=="dojo"){
+_9("dojo.namespaces.dojo");
+}else{
+if(!dojo.hostenv.moduleHasPrefix(_7)){
+dojo.registerModulePath(_7,"../"+_7);
+}
+_9([_7,"manifest"].join("."),false,true);
+}
+if(!this.namespaces[_7]){
+this.failed[_7]=true;
+}
+}
+finally{
+this.loading[_7]=false;
+}
+return this.namespaces[_7];
+}};
+dojo.ns.Ns=function(_a,_b,_c){
+this.name=_a;
+this.module=_b;
+this.resolver=_c;
+this._loaded=[];
+this._failed=[];
+};
+dojo.ns.Ns.prototype.resolve=function(_d,_e,_f){
+if(!this.resolver||djConfig["skipAutoRequire"]){
+return false;
+}
+var _10=this.resolver(_d,_e);
+if((_10)&&(!this._loaded[_10])&&(!this._failed[_10])){
+var req=dojo.require;
+req(_10,false,true);
+if(dojo.hostenv.findModule(_10,false)){
+this._loaded[_10]=true;
+}else{
+if(!_f){
+dojo.raise("dojo.ns.Ns.resolve: module '"+_10+"' not found after loading via namespace '"+this.name+"'");
+}
+this._failed[_10]=true;
+}
+}
+return Boolean(this._loaded[_10]);
+};
+dojo.registerNamespace=function(_12,_13,_14){
+dojo.ns.register.apply(dojo.ns,arguments);
+};
+dojo.registerNamespaceResolver=function(_15,_16){
+var n=dojo.ns.namespaces[_15];
+if(n){
+n.resolver=_16;
+}
+};
+dojo.registerNamespaceManifest=function(_18,_19,_1a,_1b,_1c){
+dojo.registerModulePath(_1a,_19);
+dojo.registerNamespace(_1a,_1b,_1c);
+};
+dojo.registerNamespace("dojo","dojo.widget");

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/ns.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/ns.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/ns.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/profile.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/profile.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/profile.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/profile.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,91 @@
+dojo.provide("dojo.profile");
+dojo.profile={_profiles:{},_pns:[],start:function(_1){
+if(!this._profiles[_1]){
+this._profiles[_1]={iters:0,total:0};
+this._pns[this._pns.length]=_1;
+}else{
+if(this._profiles[_1]["start"]){
+this.end(_1);
+}
+}
+this._profiles[_1].end=null;
+this._profiles[_1].start=new Date();
+},end:function(_2){
+var ed=new Date();
+if((this._profiles[_2])&&(this._profiles[_2]["start"])){
+with(this._profiles[_2]){
+end=ed;
+total+=(end-start);
+start=null;
+iters++;
+}
+}else{
+return true;
+}
+},dump:function(_4){
+var _5=document.createElement("table");
+with(_5.style){
+border="1px solid black";
+borderCollapse="collapse";
+}
+var _6=_5.createTHead();
+var _7=_6.insertRow(0);
+var _8=["Identifier","Calls","Total","Avg"];
+for(var x=0;x<_8.length;x++){
+var _a=_7.insertCell(x);
+with(_a.style){
+backgroundColor="#225d94";
+color="white";
+borderBottom="1px solid black";
+borderRight="1px solid black";
+fontFamily="tahoma";
+fontWeight="bolder";
+paddingLeft=paddingRight="5px";
+}
+_a.appendChild(document.createTextNode(_8[x]));
+}
+for(var x=0;x<this._pns.length;x++){
+var _b=this._profiles[this._pns[x]];
+this.end(this._pns[x]);
+if(_b.iters>0){
+var _c=_5.insertRow(true);
+var _d=[this._pns[x],_b.iters,_b.total,parseInt(_b.total/_b.iters)];
+for(var y=0;y<_d.length;y++){
+var cc=_c.insertCell(y);
+cc.appendChild(document.createTextNode(_d[y]));
+with(cc.style){
+borderBottom="1px solid gray";
+paddingLeft=paddingRight="5px";
+if(x%2){
+backgroundColor="#e1f1ff";
+}
+if(y>0){
+textAlign="right";
+borderRight="1px solid gray";
+}else{
+borderRight="1px solid black";
+}
+}
+}
+}
+}
+if(_4){
+var ne=document.createElement("div");
+ne.id="profileOutputTable";
+with(ne.style){
+fontFamily="Courier New, monospace";
+fontSize="12px";
+lineHeight="16px";
+borderTop="1px solid black";
+padding="10px";
+}
+if(document.getElementById("profileOutputTable")){
+dojo.body().replaceChild(ne,document.getElementById("profileOutputTable"));
+}else{
+dojo.body().appendChild(ne);
+}
+ne.appendChild(_5);
+}
+return _5;
+}};
+dojo.profile.stop=dojo.profile.end;

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/profile.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/profile.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/profile.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/regexp.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/regexp.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/regexp.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/regexp.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,352 @@
+dojo.provide("dojo.regexp");
+dojo.evalObjPath("dojo.regexp.us",true);
+dojo.regexp.tld=function(_1){
+_1=(typeof _1=="object")?_1:{};
+if(typeof _1.allowCC!="boolean"){
+_1.allowCC=true;
+}
+if(typeof _1.allowInfra!="boolean"){
+_1.allowInfra=true;
+}
+if(typeof _1.allowGeneric!="boolean"){
+_1.allowGeneric=true;
+}
+var _2="arpa";
+var _3="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";
+var _4="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|"+"bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|"+"ec|ee|eg|er|eu|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|"+"gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|"+"la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|"+"my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|"+"re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|"+"tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";
+var a=[];
+if(_1.allowInfra){
+a.push(_2);
+}
+if(_1.allowGeneric){
+a.push(_3);
+}
+if(_1.allowCC){
+a.push(_4);
+}
+var _6="";
+if(a.length>0){
+_6="("+a.join("|")+")";
+}
+return _6;
+};
+dojo.regexp.ipAddress=function(_7){
+_7=(typeof _7=="object")?_7:{};
+if(typeof _7.allowDottedDecimal!="boolean"){
+_7.allowDottedDecimal=true;
+}
+if(typeof _7.allowDottedHex!="boolean"){
+_7.allowDottedHex=true;
+}
+if(typeof _7.allowDottedOctal!="boolean"){
+_7.allowDottedOctal=true;
+}
+if(typeof _7.allowDecimal!="boolean"){
+_7.allowDecimal=true;
+}
+if(typeof _7.allowHex!="boolean"){
+_7.allowHex=true;
+}
+if(typeof _7.allowIPv6!="boolean"){
+_7.allowIPv6=true;
+}
+if(typeof _7.allowHybrid!="boolean"){
+_7.allowHybrid=true;
+}
+var _8="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
+var _9="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
+var _a="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
+var _b="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|"+"4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";
+var _c="0[xX]0*[\\da-fA-F]{1,8}";
+var _d="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
+var _e="([\\da-fA-F]{1,4}\\:){6}"+"((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
+var a=[];
+if(_7.allowDottedDecimal){
+a.push(_8);
+}
+if(_7.allowDottedHex){
+a.push(_9);
+}
+if(_7.allowDottedOctal){
+a.push(_a);
+}
+if(_7.allowDecimal){
+a.push(_b);
+}
+if(_7.allowHex){
+a.push(_c);
+}
+if(_7.allowIPv6){
+a.push(_d);
+}
+if(_7.allowHybrid){
+a.push(_e);
+}
+var _10="";
+if(a.length>0){
+_10="("+a.join("|")+")";
+}
+return _10;
+};
+dojo.regexp.host=function(_11){
+_11=(typeof _11=="object")?_11:{};
+if(typeof _11.allowIP!="boolean"){
+_11.allowIP=true;
+}
+if(typeof _11.allowLocal!="boolean"){
+_11.allowLocal=false;
+}
+if(typeof _11.allowPort!="boolean"){
+_11.allowPort=true;
+}
+var _12="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(_11);
+var _13=(_11.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";
+var _14=_12;
+if(_11.allowIP){
+_14+="|"+dojo.regexp.ipAddress(_11);
+}
+if(_11.allowLocal){
+_14+="|localhost";
+}
+return "("+_14+")"+_13;
+};
+dojo.regexp.url=function(_15){
+_15=(typeof _15=="object")?_15:{};
+if(typeof _15.scheme=="undefined"){
+_15.scheme=[true,false];
+}
+var _16=dojo.regexp.buildGroupRE(_15.scheme,function(q){
+if(q){
+return "(https?|ftps?)\\://";
+}
+return "";
+});
+var _18="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";
+return _16+dojo.regexp.host(_15)+_18;
+};
+dojo.regexp.emailAddress=function(_19){
+_19=(typeof _19=="object")?_19:{};
+if(typeof _19.allowCruft!="boolean"){
+_19.allowCruft=false;
+}
+_19.allowPort=false;
+var _1a="([\\da-z]+[-._+&'])*[\\da-z]+";
+var _1b=_1a+"@"+dojo.regexp.host(_19);
+if(_19.allowCruft){
+_1b="<?(mailto\\:)?"+_1b+">?";
+}
+return _1b;
+};
+dojo.regexp.emailAddressList=function(_1c){
+_1c=(typeof _1c=="object")?_1c:{};
+if(typeof _1c.listSeparator!="string"){
+_1c.listSeparator="\\s;,";
+}
+var _1d=dojo.regexp.emailAddress(_1c);
+var _1e="("+_1d+"\\s*["+_1c.listSeparator+"]\\s*)*"+_1d+"\\s*["+_1c.listSeparator+"]?\\s*";
+return _1e;
+};
+dojo.regexp.integer=function(_1f){
+_1f=(typeof _1f=="object")?_1f:{};
+if(typeof _1f.signed=="undefined"){
+_1f.signed=[true,false];
+}
+if(typeof _1f.separator=="undefined"){
+_1f.separator="";
+}else{
+if(typeof _1f.groupSize=="undefined"){
+_1f.groupSize=3;
+}
+}
+var _20=dojo.regexp.buildGroupRE(_1f.signed,function(q){
+return q?"[-+]":"";
+});
+var _22=dojo.regexp.buildGroupRE(_1f.separator,function(sep){
+if(sep==""){
+return "(0|[1-9]\\d*)";
+}
+var grp=_1f.groupSize,_25=_1f.groupSize2;
+if(typeof _25!="undefined"){
+var _26="(0|[1-9]\\d{0,"+(_25-1)+"}(["+sep+"]\\d{"+_25+"})*["+sep+"]\\d{"+grp+"})";
+return ((grp-_25)>0)?"("+_26+"|(0|[1-9]\\d{0,"+(grp-1)+"}))":_26;
+}
+return "(0|[1-9]\\d{0,"+(grp-1)+"}(["+sep+"]\\d{"+grp+"})*)";
+});
+return _20+_22;
+};
+dojo.regexp.realNumber=function(_27){
+_27=(typeof _27=="object")?_27:{};
+if(typeof _27.places!="number"){
+_27.places=Infinity;
+}
+if(typeof _27.decimal!="string"){
+_27.decimal=".";
+}
+if(typeof _27.fractional=="undefined"){
+_27.fractional=[true,false];
+}
+if(typeof _27.exponent=="undefined"){
+_27.exponent=[true,false];
+}
+if(typeof _27.eSigned=="undefined"){
+_27.eSigned=[true,false];
+}
+var _28=dojo.regexp.integer(_27);
+var _29=dojo.regexp.buildGroupRE(_27.fractional,function(q){
+var re="";
+if(q&&(_27.places>0)){
+re="\\"+_27.decimal;
+if(_27.places==Infinity){
+re="("+re+"\\d+)?";
+}else{
+re=re+"\\d{"+_27.places+"}";
+}
+}
+return re;
+});
+var _2c=dojo.regexp.buildGroupRE(_27.exponent,function(q){
+if(q){
+return "([eE]"+dojo.regexp.integer({signed:_27.eSigned})+")";
+}
+return "";
+});
+return _28+_29+_2c;
+};
+dojo.regexp.currency=function(_2e){
+_2e=(typeof _2e=="object")?_2e:{};
+if(typeof _2e.signed=="undefined"){
+_2e.signed=[true,false];
+}
+if(typeof _2e.symbol=="undefined"){
+_2e.symbol="$";
+}
+if(typeof _2e.placement!="string"){
+_2e.placement="before";
+}
+if(typeof _2e.signPlacement!="string"){
+_2e.signPlacement="before";
+}
+if(typeof _2e.separator=="undefined"){
+_2e.separator=",";
+}
+if(typeof _2e.fractional=="undefined"&&typeof _2e.cents!="undefined"){
+dojo.deprecated("dojo.regexp.currency: flags.cents","use flags.fractional instead","0.5");
+_2e.fractional=_2e.cents;
+}
+if(typeof _2e.decimal!="string"){
+_2e.decimal=".";
+}
+var _2f=dojo.regexp.buildGroupRE(_2e.signed,function(q){
+if(q){
+return "[-+]";
+}
+return "";
+});
+var _31=dojo.regexp.buildGroupRE(_2e.symbol,function(_32){
+return "\\s?"+_32.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?";
+});
+switch(_2e.signPlacement){
+case "before":
+_31=_2f+_31;
+break;
+case "after":
+_31=_31+_2f;
+break;
+}
+var _33=_2e;
+_33.signed=false;
+_33.exponent=false;
+var _34=dojo.regexp.realNumber(_33);
+var _35;
+switch(_2e.placement){
+case "before":
+_35=_31+_34;
+break;
+case "after":
+_35=_34+_31;
+break;
+}
+switch(_2e.signPlacement){
+case "around":
+_35="("+_35+"|"+"\\("+_35+"\\)"+")";
+break;
+case "begin":
+_35=_2f+_35;
+break;
+case "end":
+_35=_35+_2f;
+break;
+}
+return _35;
+};
+dojo.regexp.us.state=function(_36){
+_36=(typeof _36=="object")?_36:{};
+if(typeof _36.allowTerritories!="boolean"){
+_36.allowTerritories=true;
+}
+if(typeof _36.allowMilitary!="boolean"){
+_36.allowMilitary=true;
+}
+var _37="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";
+var _38="AS|FM|GU|MH|MP|PW|PR|VI";
+var _39="AA|AE|AP";
+if(_36.allowTerritories){
+_37+="|"+_38;
+}
+if(_36.allowMilitary){
+_37+="|"+_39;
+}
+return "("+_37+")";
+};
+dojo.regexp.time=function(_3a){
+dojo.deprecated("dojo.regexp.time","Use dojo.date.parse instead","0.5");
+_3a=(typeof _3a=="object")?_3a:{};
+if(typeof _3a.format=="undefined"){
+_3a.format="h:mm:ss t";
+}
+if(typeof _3a.amSymbol!="string"){
+_3a.amSymbol="AM";
+}
+if(typeof _3a.pmSymbol!="string"){
+_3a.pmSymbol="PM";
+}
+var _3b=function(_3c){
+_3c=_3c.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
+var _3d=_3a.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
+var _3e=_3a.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
+_3c=_3c.replace("hh","(0[1-9]|1[0-2])");
+_3c=_3c.replace("h","([1-9]|1[0-2])");
+_3c=_3c.replace("HH","([01][0-9]|2[0-3])");
+_3c=_3c.replace("H","([0-9]|1[0-9]|2[0-3])");
+_3c=_3c.replace("mm","([0-5][0-9])");
+_3c=_3c.replace("m","([1-5][0-9]|[0-9])");
+_3c=_3c.replace("ss","([0-5][0-9])");
+_3c=_3c.replace("s","([1-5][0-9]|[0-9])");
+_3c=_3c.replace("t","\\s?("+_3d+"|"+_3e+")\\s?");
+return _3c;
+};
+return dojo.regexp.buildGroupRE(_3a.format,_3b);
+};
+dojo.regexp.numberFormat=function(_3f){
+_3f=(typeof _3f=="object")?_3f:{};
+if(typeof _3f.format=="undefined"){
+_3f.format="###-###-####";
+}
+var _40=function(_41){
+_41=_41.replace(/([.$*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
+_41=_41.replace(/\?/g,"\\d?");
+_41=_41.replace(/#/g,"\\d");
+return _41;
+};
+return dojo.regexp.buildGroupRE(_3f.format,_40);
+};
+dojo.regexp.buildGroupRE=function(a,re){
+if(!(a instanceof Array)){
+return re(a);
+}
+var b=[];
+for(var i=0;i<a.length;i++){
+b.push(re(a[i]));
+}
+return "("+b.join("|")+")";
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/regexp.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/regexp.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/regexp.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/Deferred.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/Deferred.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/Deferred.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/Deferred.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,5 @@
+dojo.provide("dojo.rpc.Deferred");
+dojo.require("dojo.Deferred");
+dojo.deprecated("dojo.rpc.Deferred","replaced by dojo.Deferred","0.6");
+dojo.rpc.Deferred=dojo.Deferred;
+dojo.rpc.Deferred.prototype=dojo.Deferred.prototype;

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/Deferred.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/Deferred.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/Deferred.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JotService.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JotService.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JotService.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JotService.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,14 @@
+dojo.provide("dojo.rpc.JotService");
+dojo.require("dojo.rpc.RpcService");
+dojo.require("dojo.rpc.JsonService");
+dojo.require("dojo.json");
+dojo.rpc.JotService=function(){
+this.serviceUrl="/_/jsonrpc";
+};
+dojo.inherits(dojo.rpc.JotService,dojo.rpc.JsonService);
+dojo.lang.extend(dojo.rpc.JotService,{bind:function(_1,_2,_3,_4){
+dojo.io.bind({url:_4||this.serviceUrl,content:{json:this.createRequest(_1,_2)},method:"POST",mimetype:"text/json",load:this.resultCallback(_3),error:this.errorCallback(_3),preventCache:true});
+},createRequest:function(_5,_6){
+var _7={"params":_6,"method":_5,"id":this.lastSubmissionId++};
+return dojo.json.serialize(_7);
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JotService.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JotService.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JotService.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JsonService.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JsonService.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JsonService.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JsonService.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,58 @@
+dojo.provide("dojo.rpc.JsonService");
+dojo.require("dojo.rpc.RpcService");
+dojo.require("dojo.io.*");
+dojo.require("dojo.json");
+dojo.require("dojo.lang.common");
+dojo.rpc.JsonService=function(_1){
+if(_1){
+if(dojo.lang.isString(_1)){
+this.connect(_1);
+}else{
+if(_1["smdUrl"]){
+this.connect(_1.smdUrl);
+}
+if(_1["smdStr"]){
+this.processSmd(dj_eval("("+_1.smdStr+")"));
+}
+if(_1["smdObj"]){
+this.processSmd(_1.smdObj);
+}
+if(_1["serviceUrl"]){
+this.serviceUrl=_1.serviceUrl;
+}
+if(typeof _1["strictArgChecks"]!="undefined"){
+this.strictArgChecks=_1.strictArgChecks;
+}
+}
+}
+};
+dojo.inherits(dojo.rpc.JsonService,dojo.rpc.RpcService);
+dojo.extend(dojo.rpc.JsonService,{bustCache:false,contentType:"application/json-rpc",lastSubmissionId:0,callRemote:function(_2,_3){
+var _4=new dojo.Deferred();
+this.bind(_2,_3,_4);
+return _4;
+},bind:function(_5,_6,_7,_8){
+dojo.io.bind({url:_8||this.serviceUrl,postContent:this.createRequest(_5,_6),method:"POST",contentType:this.contentType,mimetype:"text/json",load:this.resultCallback(_7),error:this.errorCallback(_7),preventCache:this.bustCache});
+},createRequest:function(_9,_a){
+var _b={"params":_a,"method":_9,"id":++this.lastSubmissionId};
+var _c=dojo.json.serialize(_b);
+dojo.debug("JsonService: JSON-RPC Request: "+_c);
+return _c;
+},parseResults:function(_d){
+if(!_d){
+return;
+}
+if(_d["Result"]!=null){
+return _d["Result"];
+}else{
+if(_d["result"]!=null){
+return _d["result"];
+}else{
+if(_d["ResultSet"]){
+return _d["ResultSet"];
+}else{
+return _d;
+}
+}
+}
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JsonService.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JsonService.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/JsonService.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/RpcService.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/RpcService.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/RpcService.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/RpcService.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,61 @@
+dojo.provide("dojo.rpc.RpcService");
+dojo.require("dojo.io.*");
+dojo.require("dojo.json");
+dojo.require("dojo.lang.func");
+dojo.require("dojo.Deferred");
+dojo.rpc.RpcService=function(_1){
+if(_1){
+this.connect(_1);
+}
+};
+dojo.lang.extend(dojo.rpc.RpcService,{strictArgChecks:true,serviceUrl:"",parseResults:function(_2){
+return _2;
+},errorCallback:function(_3){
+return function(_4,e){
+_3.errback(new Error(e.message));
+};
+},resultCallback:function(_6){
+var tf=dojo.lang.hitch(this,function(_8,_9,e){
+if(_9["error"]!=null){
+var _b=new Error(_9.error);
+_b.id=_9.id;
+_6.errback(_b);
+}else{
+var _c=this.parseResults(_9);
+_6.callback(_c);
+}
+});
+return tf;
+},generateMethod:function(_d,_e,_f){
+return dojo.lang.hitch(this,function(){
+var _10=new dojo.Deferred();
+if((this.strictArgChecks)&&(_e!=null)&&(arguments.length!=_e.length)){
+dojo.raise("Invalid number of parameters for remote method.");
+}else{
+this.bind(_d,arguments,_10,_f);
+}
+return _10;
+});
+},processSmd:function(_11){
+dojo.debug("RpcService: Processing returned SMD.");
+if(_11.methods){
+dojo.lang.forEach(_11.methods,function(m){
+if(m&&m["name"]){
+dojo.debug("RpcService: Creating Method: this.",m.name,"()");
+this[m.name]=this.generateMethod(m.name,m.parameters,m["url"]||m["serviceUrl"]||m["serviceURL"]);
+if(dojo.lang.isFunction(this[m.name])){
+dojo.debug("RpcService: Successfully created",m.name,"()");
+}else{
+dojo.debug("RpcService: Failed to create",m.name,"()");
+}
+}
+},this);
+}
+this.serviceUrl=_11.serviceUrl||_11.serviceURL;
+dojo.debug("RpcService: Dojo RpcService is ready for use.");
+},connect:function(_13){
+dojo.debug("RpcService: Attempting to load SMD document from:",_13);
+dojo.io.bind({url:_13,mimetype:"text/json",load:dojo.lang.hitch(this,function(_14,_15,e){
+return this.processSmd(_15);
+}),sync:true});
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/RpcService.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/RpcService.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/RpcService.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/YahooService.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/YahooService.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/YahooService.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/YahooService.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,28 @@
+dojo.provide("dojo.rpc.YahooService");
+dojo.require("dojo.rpc.RpcService");
+dojo.require("dojo.rpc.JsonService");
+dojo.require("dojo.json");
+dojo.require("dojo.uri.*");
+dojo.require("dojo.io.ScriptSrcIO");
+dojo.rpc.YahooService=function(_1){
+this.appId=_1;
+if(!_1){
+this.appId="dojotoolkit";
+dojo.debug("please initialize the YahooService class with your own","application ID. Using the default may cause problems during","deployment of your application");
+}
+if(djConfig["useXDomain"]&&!djConfig["yahooServiceSmdUrl"]){
+dojo.debug("dojo.rpc.YahooService: When using cross-domain Dojo builds,"+" please save yahoo.smd to your domain and set djConfig.yahooServiceSmdUrl"+" to the path on your domain to yahoo.smd");
+}
+this.connect(djConfig["yahooServiceSmdUrl"]||dojo.uri.moduleUri("dojo.rpc","yahoo.smd"));
+this.strictArgChecks=false;
+};
+dojo.inherits(dojo.rpc.YahooService,dojo.rpc.JsonService);
+dojo.lang.extend(dojo.rpc.YahooService,{strictArgChecks:false,bind:function(_2,_3,_4,_5){
+var _6=_3;
+if((dojo.lang.isArrayLike(_3))&&(_3.length==1)){
+_6=_3[0];
+}
+_6.output="json";
+_6.appid=this.appId;
+dojo.io.bind({url:_5||this.serviceUrl,transport:"ScriptSrcTransport",content:_6,jsonParamName:"callback",mimetype:"text/json",load:this.resultCallback(_4),error:this.errorCallback(_4),preventCache:true});
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/YahooService.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/YahooService.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/YahooService.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/__package__.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/__package__.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,2 @@
+dojo.kwCompoundRequire({common:[["dojo.rpc.JsonService",false,false]]});
+dojo.provide("dojo.rpc.*");

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/__package__.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/__package__.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/__package__.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/yahoo.smd
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/yahoo.smd?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/yahoo.smd (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/rpc/yahoo.smd Mon Feb  4 14:07:13 2008
@@ -0,0 +1,289 @@
+{
+	"SMDVersion":".1",
+	"objectName":"yahoo",
+	"serviceType":"JSON-P",
+	"methods":[
+		//
+		// MAPS 
+		//
+		{
+			// http://developer.yahoo.com/maps/rest/V1/mapImage.html
+			"name":"mapImage",
+			"serviceURL": "http://api.local.yahoo.com/MapsService/V1/mapImage",
+			"parameters":[
+				{ "name":"street", "type":"STRING" },
+				{ "name":"city", "type":"STRING" },
+				{ "name":"zip", "type":"INTEGER" },
+				{ "name":"location", "type":"STRING" },
+				{ "name":"longitude", "type":"FLOAT" },
+				{ "name":"latitude", "type":"FLOAT" },
+				{ "name":"image_type", "type":"STRING" },
+				{ "name":"image_width", "type":"INTEGER" },
+				{ "name":"image_height", "type":"INTEGER" },
+				{ "name":"zoom", "type":"INTEGER" },
+				{ "name":"radius", "type":"INTEGER" }
+			]
+		},
+		{
+			// http://developer.yahoo.com/traffic/rest/V1/index.html
+			"name":"trafficData",
+			"serviceURL": "http://api.local.yahoo.com/MapsService/V1/trafficData",
+			"parameters":[
+				{ "name":"street", "type":"STRING" },
+				{ "name":"city", "type":"STRING" },
+				{ "name":"zip", "type":"INTEGER" },
+				{ "name":"location", "type":"STRING" },
+				{ "name":"longitude", "type":"FLOAT" },
+				{ "name":"latitude", "type":"FLOAT" },
+				{ "name":"severity", "type":"INTEGER" },
+				{ "name":"include_map", "type":"INTEGER" },
+				{ "name":"image_type", "type":"STRING" },
+				{ "name":"image_width", "type":"INTEGER" },
+				{ "name":"image_height", "type":"INTEGER" },
+				{ "name":"zoom", "type":"INTEGER" },
+				{ "name":"radius", "type":"INTEGER" }
+			]
+		},
+		/*
+			// Yahoo's geocoding service is f'd for JSON and Y! advises that it
+			// may not be returning
+		{
+			// http://developer.yahoo.com/maps/rest/V1/geocode.html
+			"name":"geocode",
+			"serviceURL": "http://api.local.yahoo.com/MapsService/V1/geocode",
+			"parameters":[
+				{ "name":"street", "type":"STRING" },
+				{ "name":"city", "type":"STRING" },
+				{ "name":"zip", "type":"INTEGER" },
+				{ "name":"location", "type":"STRING" }
+			]
+		},
+		*/
+		//
+		// LOCAL SEARCH
+		//
+		{
+			// http://developer.yahoo.com/search/local/V3/localSearch.html
+			"name":"localSearch",
+			"serviceURL": "http://api.local.yahoo.com/LocalSearchService/V3/localSearch",
+			"parameters":[
+				{ "name":"street", "type":"STRING" },
+				{ "name":"city", "type":"STRING" },
+				{ "name":"zip", "type":"INTEGER" },
+				{ "name":"location", "type":"STRING" },
+				{ "name":"listing_id", "type":"STRING" },
+				{ "name":"sort", "type":"STRING" }, // "relevence", "title", "distance", or "rating"
+				{ "name":"start", "type":"INTEGER" },
+				{ "name":"radius", "type":"FLOAT" },
+				{ "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
+				{ "name":"longitude", "type":"FLOAT" },
+				{ "name":"latitude", "type":"FLOAT" },
+				{ "name":"category", "type":"INTEGER" },
+				{ "name":"omit_category", "type":"INTEGER" },
+				{ "name":"minimum_rating", "type":"INTEGER" }
+			]
+		},
+		//
+		// WEB SEARCH
+		//
+		{
+			// http://developer.yahoo.com/search/web/V1/webSearch.html 
+			"name":"webSearch",
+			"serviceURL": "http://api.search.yahoo.com/WebSearchService/V1/webSearch",
+			"parameters":[
+				{ "name":"query", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // defaults to "all"
+				{ "name":"region", "type":"STRING" }, // defaults to "us"
+				{ "name":"results", "type":"INTEGER" }, // defaults to 10
+				{ "name":"start", "type":"INTEGER" }, // defaults to 1
+				{ "name":"format", "type":"STRING" }, // defaults to "any", can be "html", "msword", "pdf", "ppt", "rst", "txt", or "xls"
+				{ "name":"adult_ok", "type":"INTEGER" }, // defaults to null
+				{ "name":"similar_ok", "type":"INTEGER" }, // defaults to null
+				{ "name":"language", "type":"STRING" }, // defaults to null
+				{ "name":"country", "type":"STRING" }, // defaults to null
+				{ "name":"site", "type":"STRING" }, // defaults to null
+				{ "name":"subscription", "type":"STRING" }, // defaults to null
+				{ "name":"license", "type":"STRING" } // defaults to "any"
+			]
+		},
+		{
+			// http://developer.yahoo.com/search/web/V1/spellingSuggestion.html
+			"name":"spellingSuggestion",
+			"serviceURL": "http://api.search.yahoo.com/WebSearchService/V1/spellingSuggestion",
+			"parameters":[ { "name":"query", "type":"STRING" } ]
+		},
+		{
+			// http://developer.yahoo.com/search/web/V1/relatedSuggestion.html
+			"name":"spellingSuggestion",
+			"serviceURL": "http://api.search.yahoo.com/WebSearchService/V1/relatedSuggestion",
+			"parameters":[
+				{ "name":"query", "type":"STRING" },
+				{ "name":"results", "type":"INTEGER" } // 1-50, defaults to 10
+			]
+		},
+		{
+			// http://developer.yahoo.com/search/content/V1/termExtraction.html
+			"name":"termExtraction",
+			"serviceURL": "http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction",
+			"parameters":[
+				{ "name":"query", "type":"STRING" },
+				{ "name":"context", "type":"STRING" },
+				{ "name":"results", "type":"INTEGER" } // 1-50, defaults to 10
+			]
+		},
+		{
+			// http://developer.yahoo.com/search/web/V1/contextSearch.html
+			"name":"contextSearch",
+			"serviceURL": "http://search.yahooapis.com/WebSearchService/V1/contextSearch",
+			"parameters":[
+				{ "name":"query", "type":"STRING" },
+				{ "name":"context", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // defaults to "all"
+				{ "name":"results", "type":"INTEGER" }, // defaults to 10
+				{ "name":"start", "type":"INTEGER" }, // defaults to 1
+				{ "name":"format", "type":"STRING" }, // defaults to "any", can be "html", "msword", "pdf", "ppt", "rst", "txt", or "xls"
+				{ "name":"adult_ok", "type":"INTEGER" }, // defaults to null
+				{ "name":"similar_ok", "type":"INTEGER" }, // defaults to null
+				{ "name":"language", "type":"STRING" }, // defaults to null
+				{ "name":"country", "type":"STRING" }, // defaults to null
+				{ "name":"site", "type":"STRING" }, // defaults to null
+				{ "name":"license", "type":"STRING" } // defaults to "any", could be "cc_any", "cc_commercial", "cc_modifiable"
+			]
+		},
+		//
+		// IMAGE SEARCH
+		//
+		{
+			// http://developer.yahoo.com/search/image/V1/imageSearch.html
+			"name":"imageSearch",
+			"serviceURL": "http://api.search.yahoo.com/ImageSearchService/V1/imageSearch",
+			"parameters":[
+				{ "name":"query", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // defaults to "all", can by "any" or "phrase"
+				{ "name":"results", "type":"INTEGER" }, // defaults to 10
+				{ "name":"start", "type":"INTEGER" }, // defaults to 1
+				{ "name":"format", "type":"STRING" }, // defaults to "any", can be "bmp", "gif", "jpeg", or "png"
+				{ "name":"adult_ok", "type":"INTEGER" }, // defaults to null
+				{ "name":"coloration", "type":"STRING" }, // "any", "color", or "bw"
+				{ "name":"site", "type":"STRING" } // defaults to null
+			]
+		},
+		//
+		// SITE EXPLORER
+		//
+		{
+			// http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html 
+			"name":"inlinkData",
+			"serviceURL": "http://api.search.yahoo.com/SiteExplorerService/V1/inlinkData",
+			"parameters":[
+				{ "name":"query", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // defaults to "all", can by "any" or "phrase"
+				{ "name":"entire_site", "type":"INTEGER" }, // defaults to null
+				{ "name":"omit_inlinks", "type":"STRING" }, // "domain" or "subdomain", defaults to null
+				{ "name":"results", "type":"INTEGER" }, // defaults to 50
+				{ "name":"start", "type":"INTEGER" }, // defaults to 1
+				{ "name":"site", "type":"STRING" } // defaults to null
+			]
+		},
+		{
+			// http://developer.yahoo.com/search/siteexplorer/V1/pageData.html
+			"name":"pageData",
+			"serviceURL": "http://api.search.yahoo.com/SiteExplorerService/V1/pageData",
+			"parameters":[
+				{ "name":"query", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // defaults to "all", can by "any" or "phrase"
+				{ "name":"domain_only", "type":"INTEGER" }, // defaults to null
+				{ "name":"results", "type":"INTEGER" }, // defaults to 50
+				{ "name":"start", "type":"INTEGER" }, // defaults to 1
+				{ "name":"site", "type":"STRING" } // defaults to null
+			]
+		},
+		//
+		// MUSIC SEARCH
+		//
+		{
+			// http://developer.yahoo.com/search/audio/V1/artistSearch.html
+			"name":"artistSearch",
+			"serviceURL": "http://api.search.yahoo.com/AudioSearchService/V1/artistSearch",
+			"parameters":[
+				{ "name":"artist", "type":"STRING" },
+				{ "name":"artistid", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // "all", "any", or "phrase"
+				{ "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
+				{ "name":"start", "type":"INTEGER" } // defaults to 1
+			]
+		},
+		{
+			// http://developer.yahoo.com/search/audio/V1/albumSearch.html
+			"name":"albumSearch",
+			"serviceURL": "http://api.search.yahoo.com/AudioSearchService/V1/albumSearch",
+			"parameters":[
+				{ "name":"artist", "type":"STRING" },
+				{ "name":"artistid", "type":"STRING" },
+				{ "name":"album", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // "all", "any", or "phrase"
+				{ "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
+				{ "name":"start", "type":"INTEGER" } // defaults to 1
+			]
+		},
+		{
+			// http://developer.yahoo.com/search/audio/V1/songSearch.html
+			"name":"songSearch",
+			"serviceURL": "http://api.search.yahoo.com/AudioSearchService/V1/songSearch",
+			"parameters":[
+				{ "name":"artist", "type":"STRING" },
+				{ "name":"artistid", "type":"STRING" },
+				{ "name":"album", "type":"STRING" },
+				{ "name":"albumid", "type":"STRING" },
+				{ "name":"song", "type":"STRING" },
+				{ "name":"songid", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // "all", "any", or "phrase"
+				{ "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
+				{ "name":"start", "type":"INTEGER" } // defaults to 1
+			]
+		},
+		{
+			// http://developer.yahoo.com/search/audio/V1/songDownloadLocation.html
+			"name":"songDownloadLocation",
+			"serviceURL": "http://api.search.yahoo.com/AudioSearchService/V1/songDownloadLocation",
+			"parameters":[
+				{ "name":"songid", "type":"STRING" },
+				// "source" can contain:
+				//	audiolunchbox artistdirect buymusic dmusic
+				//	emusic epitonic garageband itunes yahoo
+				//	livedownloads mp34u msn musicmatch mapster passalong
+				//	rhapsody soundclick theweb
+				{ "name":"source", "type":"STRING" },
+				{ "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
+				{ "name":"start", "type":"INTEGER" } // defaults to 1
+			]
+		},
+		//
+		// NEWS SEARCH
+		//
+		{
+			// http://developer.yahoo.com/search/news/V1/newsSearch.html
+			"name":"newsSearch",
+			"serviceURL": "http://api.search.yahoo.com/NewsSearchService/V1/newsSearch",
+			"parameters":[
+				{ "name":"query", "type":"STRING" },
+				{ "name":"type", "type":"STRING" }, // defaults to "all"
+				{ "name":"results", "type":"INTEGER" }, // defaults to 10
+				{ "name":"start", "type":"INTEGER" }, // defaults to 1
+				{ "name":"sort", "type":"STRING" }, // "rank" or "date"
+				{ "name":"language", "type":"STRING" }, // defaults to null
+				{ "name":"site", "type":"STRING" } // defaults to null
+			]
+		}
+		/*
+		{
+			// 
+			"name":"",
+			"serviceURL": "",
+			"parameters":[
+				{ "name":"street", "type":"STRING" },
+			]
+		}
+		*/
+	]
+}

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/selection/Selection.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/selection/Selection.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/selection/Selection.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/selection/Selection.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,303 @@
+dojo.provide("dojo.selection.Selection");
+dojo.require("dojo.lang.array");
+dojo.require("dojo.lang.func");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.math");
+dojo.declare("dojo.selection.Selection",null,{initializer:function(_1,_2){
+this.items=[];
+this.selection=[];
+this._pivotItems=[];
+this.clearItems();
+if(_1){
+if(_2){
+this.setItemsCollection(_1);
+}else{
+this.setItems(_1);
+}
+}
+},items:null,selection:null,lastSelected:null,allowImplicit:true,length:0,isGrowable:true,_pivotItems:null,_pivotItem:null,onSelect:function(_3){
+},onDeselect:function(_4){
+},onSelectChange:function(_5,_6){
+},_find:function(_7,_8){
+if(_8){
+return dojo.lang.find(this.selection,_7);
+}else{
+return dojo.lang.find(this.items,_7);
+}
+},isSelectable:function(_9){
+return true;
+},setItems:function(){
+this.clearItems();
+this.addItems.call(this,arguments);
+},setItemsCollection:function(_a){
+this.items=_a;
+},addItems:function(){
+var _b=dojo.lang.unnest(arguments);
+for(var i=0;i<_b.length;i++){
+this.items.push(_b[i]);
+}
+},addItemsAt:function(_d,_e){
+if(this.items.length==0){
+return this.addItems(dojo.lang.toArray(arguments,2));
+}
+if(!this.isItem(_d)){
+_d=this.items[_d];
+}
+if(!_d){
+throw new Error("addItemsAt: item doesn't exist");
+}
+var _f=this._find(_d);
+if(_f>0&&_e){
+_f--;
+}
+for(var i=2;i<arguments.length;i++){
+if(!this.isItem(arguments[i])){
+this.items.splice(_f++,0,arguments[i]);
+}
+}
+},removeItem:function(_11){
+var idx=this._find(_11);
+if(idx>-1){
+this.items.splice(idx,1);
+}
+idx=this._find(_11,true);
+if(idx>-1){
+this.selection.splice(idx,1);
+}
+},clearItems:function(){
+this.items=[];
+this.deselectAll();
+},isItem:function(_13){
+return this._find(_13)>-1;
+},isSelected:function(_14){
+return this._find(_14,true)>-1;
+},selectFilter:function(_15,_16,add,_18){
+return true;
+},update:function(_19,add,_1b,_1c){
+if(!this.isItem(_19)){
+return false;
+}
+if(this.isGrowable&&_1b){
+if((!this.isSelected(_19))&&this.selectFilter(_19,this.selection,false,true)){
+this.grow(_19);
+this.lastSelected=_19;
+}
+}else{
+if(add){
+if(this.selectFilter(_19,this.selection,true,false)){
+if(_1c){
+if(this.select(_19)){
+this.lastSelected=_19;
+}
+}else{
+if(this.toggleSelected(_19)){
+this.lastSelected=_19;
+}
+}
+}
+}else{
+this.deselectAll();
+this.select(_19);
+}
+}
+this.length=this.selection.length;
+return true;
+},grow:function(_1d,_1e){
+if(!this.isGrowable){
+return;
+}
+if(arguments.length==1){
+_1e=this._pivotItem;
+if(!_1e&&this.allowImplicit){
+_1e=this.items[0];
+}
+}
+if(!_1d||!_1e){
+return false;
+}
+var _1f=this._find(_1e);
+var _20={};
+var _21=-1;
+if(this.lastSelected){
+_21=this._find(this.lastSelected);
+var _22=_1f<_21?-1:1;
+var _23=dojo.math.range(_21,_1f,_22);
+for(var i=0;i<_23.length;i++){
+_20[_23[i]]=true;
+}
+}
+var _25=this._find(_1d);
+var _22=_1f<_25?-1:1;
+var _26=_21>=0&&_22==1?_21<_25:_21>_25;
+var _23=dojo.math.range(_25,_1f,_22);
+if(_23.length){
+for(var i=_23.length-1;i>=0;i--){
+var _27=this.items[_23[i]];
+if(this.selectFilter(_27,this.selection,false,true)){
+if(this.select(_27,true)||_26){
+this.lastSelected=_27;
+}
+if(_23[i] in _20){
+delete _20[_23[i]];
+}
+}
+}
+}else{
+this.lastSelected=_1e;
+}
+for(var i in _20){
+if(this.items[i]==this.lastSelected){
+}
+this.deselect(this.items[i]);
+}
+this._updatePivot();
+},growUp:function(){
+if(!this.isGrowable){
+return;
+}
+var idx=this._find(this.lastSelected)-1;
+while(idx>=0){
+if(this.selectFilter(this.items[idx],this.selection,false,true)){
+this.grow(this.items[idx]);
+break;
+}
+idx--;
+}
+},growDown:function(){
+if(!this.isGrowable){
+return;
+}
+var idx=this._find(this.lastSelected);
+if(idx<0&&this.allowImplicit){
+this.select(this.items[0]);
+idx=0;
+}
+idx++;
+while(idx>0&&idx<this.items.length){
+if(this.selectFilter(this.items[idx],this.selection,false,true)){
+this.grow(this.items[idx]);
+break;
+}
+idx++;
+}
+},toggleSelected:function(_2a,_2b){
+if(this.isItem(_2a)){
+if(this.select(_2a,_2b)){
+return 1;
+}
+if(this.deselect(_2a)){
+return -1;
+}
+}
+return 0;
+},select:function(_2c,_2d){
+if(this.isItem(_2c)&&!this.isSelected(_2c)&&this.isSelectable(_2c)){
+this.selection.push(_2c);
+this.lastSelected=_2c;
+this.onSelect(_2c);
+this.onSelectChange(_2c,true);
+if(!_2d){
+this._addPivot(_2c);
+}
+this.length=this.selection.length;
+return true;
+}
+return false;
+},deselect:function(_2e){
+var idx=this._find(_2e,true);
+if(idx>-1){
+this.selection.splice(idx,1);
+this.onDeselect(_2e);
+this.onSelectChange(_2e,false);
+if(_2e==this.lastSelected){
+this.lastSelected=null;
+}
+this._removePivot(_2e);
+this.length=this.selection.length;
+return true;
+}
+return false;
+},selectAll:function(){
+for(var i=0;i<this.items.length;i++){
+this.select(this.items[i]);
+}
+},deselectAll:function(){
+while(this.selection&&this.selection.length){
+this.deselect(this.selection[0]);
+}
+},selectNext:function(){
+var idx=this._find(this.lastSelected);
+while(idx>-1&&++idx<this.items.length){
+if(this.isSelectable(this.items[idx])){
+this.deselectAll();
+this.select(this.items[idx]);
+return true;
+}
+}
+return false;
+},selectPrevious:function(){
+var idx=this._find(this.lastSelected);
+while(idx-->0){
+if(this.isSelectable(this.items[idx])){
+this.deselectAll();
+this.select(this.items[idx]);
+return true;
+}
+}
+return false;
+},selectFirst:function(){
+this.deselectAll();
+var idx=0;
+while(this.items[idx]&&!this.select(this.items[idx])){
+idx++;
+}
+return this.items[idx]?true:false;
+},selectLast:function(){
+this.deselectAll();
+var idx=this.items.length-1;
+while(this.items[idx]&&!this.select(this.items[idx])){
+idx--;
+}
+return this.items[idx]?true:false;
+},_addPivot:function(_35,_36){
+this._pivotItem=_35;
+if(_36){
+this._pivotItems=[_35];
+}else{
+this._pivotItems.push(_35);
+}
+},_removePivot:function(_37){
+var i=dojo.lang.find(this._pivotItems,_37);
+if(i>-1){
+this._pivotItems.splice(i,1);
+this._pivotItem=this._pivotItems[this._pivotItems.length-1];
+}
+this._updatePivot();
+},_updatePivot:function(){
+if(this._pivotItems.length==0){
+if(this.lastSelected){
+this._addPivot(this.lastSelected);
+}
+}
+},sorted:function(){
+return dojo.lang.toArray(this.selection).sort(dojo.lang.hitch(this,function(a,b){
+var A=this._find(a),B=this._find(b);
+if(A>B){
+return 1;
+}else{
+if(A<B){
+return -1;
+}else{
+return 0;
+}
+}
+}));
+},updateSelected:function(){
+for(var i=0;i<this.selection.length;i++){
+if(this._find(this.selection[i])<0){
+var _3e=this.selection.splice(i,1);
+this._removePivot(_3e[0]);
+}
+}
+this.length=this.selection.length;
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/selection/Selection.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/selection/Selection.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/selection/Selection.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/storage.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/storage.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/storage.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/storage.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,114 @@
+dojo.provide("dojo.storage");
+dojo.require("dojo.lang.*");
+dojo.require("dojo.event.*");
+dojo.storage=new function(){
+};
+dojo.declare("dojo.storage",null,{SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",namespace:"default",onHideSettingsUI:null,initialize:function(){
+dojo.unimplemented("dojo.storage.initialize");
+},isAvailable:function(){
+dojo.unimplemented("dojo.storage.isAvailable");
+},put:function(_1,_2,_3){
+dojo.unimplemented("dojo.storage.put");
+},get:function(_4){
+dojo.unimplemented("dojo.storage.get");
+},hasKey:function(_5){
+return (this.get(_5)!=null);
+},getKeys:function(){
+dojo.unimplemented("dojo.storage.getKeys");
+},clear:function(){
+dojo.unimplemented("dojo.storage.clear");
+},remove:function(_6){
+dojo.unimplemented("dojo.storage.remove");
+},isPermanent:function(){
+dojo.unimplemented("dojo.storage.isPermanent");
+},getMaximumSize:function(){
+dojo.unimplemented("dojo.storage.getMaximumSize");
+},hasSettingsUI:function(){
+return false;
+},showSettingsUI:function(){
+dojo.unimplemented("dojo.storage.showSettingsUI");
+},hideSettingsUI:function(){
+dojo.unimplemented("dojo.storage.hideSettingsUI");
+},getType:function(){
+dojo.unimplemented("dojo.storage.getType");
+},isValidKey:function(_7){
+if((_7==null)||(typeof _7=="undefined")){
+return false;
+}
+return /^[0-9A-Za-z_]*$/.test(_7);
+}});
+dojo.storage.manager=new function(){
+this.currentProvider=null;
+this.available=false;
+this._initialized=false;
+this._providers=[];
+this.namespace="default";
+this.initialize=function(){
+this.autodetect();
+};
+this.register=function(_8,_9){
+this._providers[this._providers.length]=_9;
+this._providers[_8]=_9;
+};
+this.setProvider=function(_a){
+};
+this.autodetect=function(){
+if(this._initialized==true){
+return;
+}
+var _b=null;
+for(var i=0;i<this._providers.length;i++){
+_b=this._providers[i];
+if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==false&&_b.getType()==djConfig["forceStorageProvider"]){
+_b.isAvailable();
+break;
+}else{
+if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==true&&_b.isAvailable()){
+break;
+}
+}
+}
+if(_b==null){
+this._initialized=true;
+this.available=false;
+this.currentProvider=null;
+dojo.raise("No storage provider found for this platform");
+}
+this.currentProvider=_b;
+for(var i in _b){
+dojo.storage[i]=_b[i];
+}
+dojo.storage.manager=this;
+dojo.storage.initialize();
+this._initialized=true;
+this.available=true;
+};
+this.isAvailable=function(){
+return this.available;
+};
+this.isInitialized=function(){
+if(this.currentProvider.getType()=="dojo.storage.browser.FlashStorageProvider"&&dojo.flash.ready==false){
+return false;
+}else{
+return this._initialized;
+}
+};
+this.supportsProvider=function(_d){
+try{
+var _e=eval("new "+_d+"()");
+var _f=_e.isAvailable();
+if(_f==null||typeof _f=="undefined"){
+return false;
+}
+return _f;
+}
+catch(exception){
+return false;
+}
+};
+this.getProvider=function(){
+return this.currentProvider;
+};
+this.loaded=function(){
+};
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/storage.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/storage.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/storage.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message