2011-02-23 16:24:32 +00:00
|
|
|
|
# The Antville Project
|
|
|
|
|
# http://code.google.com/p/antville
|
|
|
|
|
#
|
2014-07-04 17:16:51 +02:00
|
|
|
|
# Copyright 2001–2014 by the Workers of Antville.
|
2011-02-23 16:24:32 +00:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
2007-06-30 19:25:35 +00:00
|
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
|
_extends = Site
|
2007-09-24 22:00:46 +00:00
|
|
|
|
_prototype = Root
|
2007-09-14 00:16:06 +00:00
|
|
|
|
|
2014-07-04 17:16:51 +02:00
|
|
|
|
# Looks like a mistake but this is necessary to avoid the behaviour described
|
|
|
|
|
# in bug http://helma.org/bugs/show_bug.cgi?id=430
|
2014-07-04 15:10:47 +02:00
|
|
|
|
_parent =
|
2007-07-29 10:16:10 +00:00
|
|
|
|
|
2008-05-05 00:27:43 +00:00
|
|
|
|
admin = mountpoint(Admin)
|
2014-12-21 17:20:22 +01:00
|
|
|
|
api = mountpoint(Api)
|
2014-11-30 22:27:00 +01:00
|
|
|
|
trails = mountpoint(Trails)
|
2007-06-30 19:25:35 +00:00
|
|
|
|
|
2007-10-06 10:26:30 +00:00
|
|
|
|
_children = collection(Site)
|
2011-02-15 18:57:15 +00:00
|
|
|
|
_children.accessName = name
|
2007-10-06 10:26:30 +00:00
|
|
|
|
_children.order = modified desc
|
2007-06-30 19:25:35 +00:00
|
|
|
|
|
2007-10-08 23:55:29 +00:00
|
|
|
|
sites = collection(Site)
|
2011-02-15 18:57:15 +00:00
|
|
|
|
sites.accessName = name
|
2015-01-01 20:41:28 +01:00
|
|
|
|
sites.filter = mode in ('open', 'public') and status <> 'blocked'
|
2007-10-08 23:55:29 +00:00
|
|
|
|
sites.order = name asc
|
2007-06-30 19:25:35 +00:00
|
|
|
|
|
2015-01-04 16:29:38 +01:00
|
|
|
|
updates = collection(Site)
|
|
|
|
|
updates.filter = mode in ('open', 'public') and status <> 'blocked'
|
|
|
|
|
updates.order = modified desc
|
|
|
|
|
|
2007-08-19 16:28:46 +00:00
|
|
|
|
users = collection(User)
|
2011-02-15 18:57:15 +00:00
|
|
|
|
users.accessName = name
|
2007-07-29 10:16:10 +00:00
|
|
|
|
|
2007-10-08 23:55:29 +00:00
|
|
|
|
admins = collection(User)
|
2011-02-15 18:57:15 +00:00
|
|
|
|
admins.accessName = name
|
2007-10-08 23:55:29 +00:00
|
|
|
|
admins.filter = status = 'privileged'
|
|
|
|
|
|
2014-07-04 17:16:51 +02:00
|
|
|
|
# FIXME: This collection has to move (or to be renamed).
|
|
|
|
|
# Otherwise it conflicts with the collection in Site with the same name.
|
2008-01-09 21:34:21 +00:00
|
|
|
|
#$tags = collection(Tag)
|
2011-02-15 18:57:15 +00:00
|
|
|
|
#$tags.accessName = name
|