* Added SVN headers wherever missing
* Fixed compatible rendering of search box * Marked calls for navigation_macro() with FIXME * Renamed Site's type.properties to Site.properties
This commit is contained in:
		
							parent
							
								
									8a70b51e71
								
							
						
					
					
						commit
						a55937fcaf
					
				
					 19 changed files with 458 additions and 24 deletions
				
			
		| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
relocateProperty(Site, "createtime", "created");
 | 
					relocateProperty(Site, "createtime", "created");
 | 
				
			||||||
relocateProperty(Site, "modifytime", "modified");
 | 
					relocateProperty(Site, "modifytime", "modified");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var relocateProperty = function(proto, name, key) {
 | 
					var relocateProperty = function(proto, name, key) {
 | 
				
			||||||
   if (!proto || !name) {
 | 
					   if (!proto || !name) {
 | 
				
			||||||
      return;
 | 
					      return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,13 +1,44 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(function() {
 | 
					(function() {
 | 
				
			||||||
   var renderSkin = HopObject.prototype.renderSkin;
 | 
					   var renderSkin = HopObject.prototype.renderSkin;
 | 
				
			||||||
   HopObject.prototype.renderSkin = function(name) {
 | 
					   HopObject.prototype.renderSkin = function(name, param) {
 | 
				
			||||||
      if (res.contentType === "text/html") {
 | 
					      var constraint = res.contentType === "text/html" && 
 | 
				
			||||||
 | 
					            name.constructor === String;
 | 
				
			||||||
 | 
					      if (constraint) {
 | 
				
			||||||
 | 
					         var prototype = this.constructor === Root ? 
 | 
				
			||||||
 | 
					               "Site" : this.constructor.name;
 | 
				
			||||||
 | 
					         var skin = name.replace(/.*#/, "");
 | 
				
			||||||
         res.write('<div class="debug skin">');
 | 
					         res.write('<div class="debug skin">');
 | 
				
			||||||
         res.write('<div class="debug title">' + 
 | 
					         res.write('<div class="debug title">');
 | 
				
			||||||
               this._prototype + "." + name + "</div>");
 | 
					         skin = new Skin(prototype, skin);
 | 
				
			||||||
 | 
					         html.link({href: skin.href()}, skin.prototype + "." + skin.name);
 | 
				
			||||||
 | 
					         res.write("</div>");
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      renderSkin.call(this, name);
 | 
					      renderSkin.call(this, name, param);
 | 
				
			||||||
      (res.contentType === "text/html") && (res.write("</div>"));
 | 
					      constraint && (res.write("</div>"));
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
})();
 | 
					})();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
relocateProperty(Image, "alias", "name");
 | 
					relocateProperty(Image, "alias", "name");
 | 
				
			||||||
relocateProperty(Image, "createtime", "created");
 | 
					relocateProperty(Image, "createtime", "created");
 | 
				
			||||||
relocateProperty(Image, "modifytime", "modified");
 | 
					relocateProperty(Image, "modifytime", "modified");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ImageMgr.prototype.topicchooser_macro = function() {
 | 
					ImageMgr.prototype.topicchooser_macro = function() {
 | 
				
			||||||
   return Story.prototype.topicchooser_macro.apply(res.handlers.image || 
 | 
					   return Story.prototype.topicchooser_macro.apply(res.handlers.image || 
 | 
				
			||||||
         new Image, arguments);
 | 
					         new Image, arguments);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
relocateProperty(Layout, "alias", "name");
 | 
					relocateProperty(Layout, "alias", "name");
 | 
				
			||||||
relocateProperty(Layout, "parent", "ancestor");
 | 
					relocateProperty(Layout, "parent", "ancestor");
 | 
				
			||||||
relocateProperty(Layout, "createtime", "created");
 | 
					relocateProperty(Layout, "createtime", "created");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Layouts.prototype.layoutchooser_macro = function(param) {
 | 
					Layouts.prototype.layoutchooser_macro = function(param) {
 | 
				
			||||||
   var options = [];
 | 
					   var options = [];
 | 
				
			||||||
   var size = this.size();
 | 
					   var size = this.size();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Members.prototype.sendpwd_action = function() {
 | 
					Members.prototype.sendpwd_action = function() {
 | 
				
			||||||
   res.data.title = gettext("Recover your password");
 | 
					   res.data.title = gettext("Recover your password");
 | 
				
			||||||
   res.data.body = gettext("Due to security reasons user passwords are not " +
 | 
					   res.data.body = gettext("Due to security reasons user passwords are not " +
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
relocateProperty(Membership, "username", "name");
 | 
					relocateProperty(Membership, "username", "name");
 | 
				
			||||||
relocateProperty(Membership, "createtime", "created");
 | 
					relocateProperty(Membership, "createtime", "created");
 | 
				
			||||||
relocateProperty(Membership, "modifytime", "modified");
 | 
					relocateProperty(Membership, "modifytime", "modified");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Metadata.prototype.getProperty = Metadata.prototype.get;
 | 
					Metadata.prototype.getProperty = Metadata.prototype.get;
 | 
				
			||||||
Metadata.prototype.setProperty = Metadata.prototype.set;
 | 
					Metadata.prototype.setProperty = Metadata.prototype.set;
 | 
				
			||||||
Metadata.prototype.setAll = Metadata.prototype.setData;
 | 
					Metadata.prototype.setAll = Metadata.prototype.setData;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Poll.prototype.choices_macro = function(param) {
 | 
					Poll.prototype.choices_macro = function(param) {
 | 
				
			||||||
   var vote;
 | 
					   var vote;
 | 
				
			||||||
   if (session.user && this.votes.get(session.user.name))
 | 
					   if (session.user && this.votes.get(session.user.name))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Root.prototype.new_action = function() {
 | 
					Root.prototype.new_action = function() {
 | 
				
			||||||
   res.redirect(this.href("create"));
 | 
					   res.redirect(this.href("create"));
 | 
				
			||||||
   return;
 | 
					   return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Site.prototype.onCodeUpdate = function() {
 | 
					Site.prototype.onCodeUpdate = function() {
 | 
				
			||||||
   helma.aspects.addBefore(this, "main_action", function(args, func, site) {
 | 
					   helma.aspects.addBefore(this, "main_action", function(args, func, site) {
 | 
				
			||||||
      res.handlers.day = site.archive;
 | 
					      res.handlers.day = site.archive;
 | 
				
			||||||
| 
						 | 
					@ -67,6 +91,17 @@ Site.prototype.renderSkin = function(name) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Site.prototype.skin_macro = function(param) {
 | 
				
			||||||
 | 
					   if (param.name) {
 | 
				
			||||||
 | 
					      switch (param.name) {
 | 
				
			||||||
 | 
					         case "searchbox":
 | 
				
			||||||
 | 
					         param.name = "Site#search"; break;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      return HopObject.prototype.skin_macro.call(this, param, param.name);
 | 
				
			||||||
 | 
					   }
 | 
				
			||||||
 | 
					   return HopObject.prototype.skin_macro.apply(this, arguments);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Site.prototype.link_macro = function(param) {
 | 
					Site.prototype.link_macro = function(param) {
 | 
				
			||||||
   if (!param.to) {
 | 
					   if (!param.to) {
 | 
				
			||||||
      return;
 | 
					      return;
 | 
				
			||||||
| 
						 | 
					@ -130,23 +165,7 @@ Site.prototype.loginstatus_macro = function(param) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Site.prototype.navigation_macro = function(param) {
 | 
					Site.prototype.navigation_macro = function(param) {
 | 
				
			||||||
   if (param["for"] == "users" && !param.modules) {
 | 
					   res.write(" FIXME ");
 | 
				
			||||||
      // FIXME: this is left for backwards-compatibility
 | 
					 | 
				
			||||||
      // sometime in the future we'll get rid of the usernavigation.skin
 | 
					 | 
				
			||||||
      res.write("... ");
 | 
					 | 
				
			||||||
      Html.link({href: "http://project.antville.org/project/stories/146"}, "<strong>README</strong>");
 | 
					 | 
				
			||||||
      Html.tag("br");
 | 
					 | 
				
			||||||
      Html.tag("br");
 | 
					 | 
				
			||||||
      this.renderSkin("usernavigation");
 | 
					 | 
				
			||||||
   }
 | 
					 | 
				
			||||||
   if (param["for"] === "admins" && (Membership.require(Membership.OWNER) ||
 | 
					 | 
				
			||||||
         User.require(User.PRIVILEGED))) {
 | 
					 | 
				
			||||||
      this.renderSkin("adminnavigation");
 | 
					 | 
				
			||||||
   } else if (param["for"] === "contributors" && 
 | 
					 | 
				
			||||||
         (Membership.require(Membership.CONTRIBUTOR) || 
 | 
					 | 
				
			||||||
         User.require(User.PRIVILEGED))) {
 | 
					 | 
				
			||||||
      this.renderSkin("contribnavigation");
 | 
					 | 
				
			||||||
   }
 | 
					 | 
				
			||||||
   return;
 | 
					   return;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										25
									
								
								compatibility/Site/Site.properties
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								compatibility/Site/Site.properties
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,25 @@
 | 
				
			||||||
 | 
					##
 | 
				
			||||||
 | 
					## The Antville Project
 | 
				
			||||||
 | 
					## http://code.google.com/p/antville
 | 
				
			||||||
 | 
					##
 | 
				
			||||||
 | 
					## Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					##
 | 
				
			||||||
 | 
					## Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					## you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					## You may obtain a copy of the License at
 | 
				
			||||||
 | 
					##
 | 
				
			||||||
 | 
					##    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					##
 | 
				
			||||||
 | 
					## Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					## distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					## See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					## limitations under the License.
 | 
				
			||||||
 | 
					##
 | 
				
			||||||
 | 
					## $Revision:3355 $
 | 
				
			||||||
 | 
					## $LastChangedBy:piefke3000 $
 | 
				
			||||||
 | 
					## $LastChangedDate:2007-10-11 15:38:29 +0200 (Thu, 11 Oct 2007) $
 | 
				
			||||||
 | 
					## $URL$
 | 
				
			||||||
 | 
					##
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					topics = mountpoint(Topics)
 | 
				
			||||||
| 
						 | 
					@ -1 +0,0 @@
 | 
				
			||||||
topics = mountpoint(Topics)
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
relocateProperty(Skin, "createtime", "created");
 | 
					relocateProperty(Skin, "createtime", "created");
 | 
				
			||||||
relocateProperty(Skin, "modifytime", "modified");
 | 
					relocateProperty(Skin, "modifytime", "modified");
 | 
				
			||||||
relocateProperty(Skin, "proto", "prototype");
 | 
					relocateProperty(Skin, "proto", "prototype");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Story.prototype.allowTextMacros = function(skin) {
 | 
					Story.prototype.allowTextMacros = function(skin) {
 | 
				
			||||||
   return Story.prototype.macro_filter(skin);
 | 
					   return Story.prototype.macro_filter(skin);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Topics.prototype.main_action = function() {
 | 
					Topics.prototype.main_action = function() {
 | 
				
			||||||
   res.redirect(this.href());
 | 
					   res.redirect(this.href());
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,27 @@
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The Antville Project
 | 
				
			||||||
 | 
					// http://code.google.com/p/antville
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright 2001-2007 by The Antville People
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Licensed under the Apache License, Version 2.0 (the ``License'');
 | 
				
			||||||
 | 
					// you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					// You may obtain a copy of the License at
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					// distributed under the License is distributed on an ``AS IS'' BASIS,
 | 
				
			||||||
 | 
					// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					// See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					// limitations under the License.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// $Revision$
 | 
				
			||||||
 | 
					// $LastChangedBy$
 | 
				
			||||||
 | 
					// $LastChangedDate$
 | 
				
			||||||
 | 
					// $URL$
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
User.prototype.__defineGetter__("blocked", function() {
 | 
					User.prototype.__defineGetter__("blocked", function() {
 | 
				
			||||||
   return this.status === User.BLOCKED;
 | 
					   return this.status === User.BLOCKED;
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue