* Changed order of filters in collection handlers (member items go first, all items last) * Fixed global file_macro and image_macro methods * Reactivated Images.Default * Added Layout.value_macro to allow per request definitions of variables for the CSS stylesheet (still experimental) * Finally removed PropertyMgr (replaced by Metadata) * Renamed a bunch of collections, mountpoints and variables * Reduced commentsMode options to "enabled" and "disabled" in Site prototype * Renamed "shared" mode to "restricted" in Site prototype * Moved a lot of stuff into the compatibility module
87 lines
2.2 KiB
Properties
87 lines
2.2 KiB
Properties
##
|
|
## 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$
|
|
##
|
|
|
|
_db = antville
|
|
_table = user
|
|
_id = id
|
|
_name = name
|
|
_parent = root.users
|
|
|
|
name
|
|
email
|
|
status
|
|
|
|
registered = created
|
|
lastVisit = modified
|
|
|
|
metadata = mountpoint(Metadata)
|
|
metadata_source = metadata
|
|
|
|
_children = collection(Membership)
|
|
_children.local = id
|
|
_children.foreign = creator_id
|
|
_children.order = role asc, created desc
|
|
|
|
memberships = collection(Membership)
|
|
memberships.local = id
|
|
memberships.foreign = creator_id
|
|
memberships.filter.additionalTables = site
|
|
memberships.filter = site.id = membership.site_id and role <> 'Subscriber'
|
|
memberships.order = site.name asc
|
|
|
|
subscriptions = collection(Membership)
|
|
subscriptions.local = id
|
|
subscriptions.foreign = creator_id
|
|
subscriptions.filter.additionalTables = site
|
|
subscriptions.filter = site.id = membership.site_id and role = 'Subscriber'
|
|
subscriptions.order = site.name asc
|
|
|
|
stories = collection(Story)
|
|
stories.local = id
|
|
stories.foreign = creator_ud
|
|
stories.filter = prototype = 'Story'
|
|
stories.order = modified desc
|
|
|
|
comments = collection(Comment)
|
|
comments.local = id
|
|
comments.foreign = creator_id
|
|
comments.filter = prototype = 'Comment'
|
|
comments.order = modified desc
|
|
|
|
images = collection(Image)
|
|
images.local = id
|
|
images.foreign = creator_id
|
|
images.filter = prototype = 'Image'
|
|
images.order = created desc
|
|
|
|
files = collection(File)
|
|
files.local = id
|
|
files.foreign = creator_id
|
|
files.filter = prototype = 'File'
|
|
files.order = created desc
|
|
|
|
sites = collection(Site)
|
|
sites.local = id
|
|
sites.foreign = creator_id
|
|
sites.order = created desc
|