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
|
|
|
|
|
2008-06-15 20:28:25 +00:00
|
|
|
|
entries = collection(LogEntry)
|
|
|
|
|
|
entries.filter = action <> 'main'
|
|
|
|
|
|
entries.order = created desc, id desc
|
|
|
|
|
|
entries.maxSize = 500
|
2007-09-17 21:43:50 +00:00
|
|
|
|
|
2007-08-26 22:03:24 +00:00
|
|
|
|
sites = collection(Site)
|
2010-04-02 16:11:28 +00:00
|
|
|
|
sites.accessName = name
|
2007-08-26 22:03:24 +00:00
|
|
|
|
sites.order = created desc
|
2002-03-27 11:06:11 +00:00
|
|
|
|
|
* Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features
* Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype
* Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites
* Renamed Root.getScopes() method to Admin.getNotificationScopes()
* Renamed User.getScopes() method to Admin.getCreationScopes()
* Added Admin.getPhaseOutModes() method
* Removed obsolete code
* Fixed and renamed Admin.privateSites to Admin.restrictedSites collection
* Finally added simple and reasonable quota implementation
* Fixed gettext_macro() and ngettext_macro() with check for necessary arguments
* Removed sender argument from global sendMail() method – instead, the root.replyTo property is used
* Fixed some i18n messages
* Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen
* Completely rewrote HopObject.notify() method (hopefully fixing issue 49)
* Check free disk space before invoking create_action() of Files and Images prototypes
* Modified output of Membership.toString() method
* Fixed some linebreaks in Membership.skin
* Added option to set session.data.error for additonal information in $Root#error skin
* Slightly modified output of $Root#health skin
* Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode
* Removed qualifyingDate property from Root
* Renamed Root.qualifyingPeriod property to Root.probationPeriod
* Removed autoCleanupEnabled and autoCleanupStartTime properties from Root
* Added replyTo property to Root
* Rewrote Root.getCreationPermission() method
* Added #notify_blocking and #notify_deletion skins to $Site.skin
* Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified
* Added Site.diskspace_macro() returning the free disk space in MB
* Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
|
|
|
|
restrictedSites = collection(Site)
|
|
|
|
|
|
restrictedSites.filter = mode = 'restricted' and status <> 'blocked'
|
2007-10-11 13:24:50 +00:00
|
|
|
|
|
2009-12-13 22:40:16 +00:00
|
|
|
|
deletedSites = collection(Site)
|
2018-05-21 15:00:57 +02:00
|
|
|
|
deletedSites.filter = status = 'deleted'
|
2015-05-24 22:58:15 +02:00
|
|
|
|
deletedSites.order = modified desc
|
2009-12-13 22:40:16 +00:00
|
|
|
|
|
2007-10-11 13:24:50 +00:00
|
|
|
|
users = collection(User)
|
2010-04-02 16:11:28 +00:00
|
|
|
|
users.accessName = name
|
2015-05-24 22:58:15 +02:00
|
|
|
|
users.order = created desc
|
2018-05-12 17:39:34 +02:00
|
|
|
|
|
|
|
|
|
|
deletedUsers = collection(User)
|
|
|
|
|
|
deletedUsers.filter = status = 'deleted'
|
|
|
|
|
|
deletedUsers.order = modified desc
|
|
|
|
|
|
|