Commit graph

873 commits

Author SHA1 Message Date
3cf2f5803f Modified a message in Site#page skin for easier translation and updated all message files accordingly 2010-02-05 18:24:24 +00:00
33ef009f20 * Moved all direct SQL statements as constants into Sql object
* Removed redundant call for HopObject.log() in Admin.update() method
2010-01-19 22:01:39 +00:00
8940facd31 Added Site.getQuota() method for convenience 2010-01-16 11:56:08 +00:00
0795498b92 * Added quota argument to Site.getDiskSpace() method; if given, the difference between it and the used disk space will be returned
* Reverted last commit and added check whether site is trusted to Site.diskspace_macro()
2010-01-16 11:23:18 +00:00
2a7462a2eb * Tested and fixed Admin.purgeSites() method
* Fixed global nightly() scheduler method to run only once even if the main scheduler is running many times per minute
 * Fixed call for jala.i18n.setLocaleGetter() method in Global to prevent nasty exceptions in scheduler methods (ie. where res.handlers.site is not set)
 * Fixed bug in Root.getCreationPermission() method
 * Updated i18n template, catalog and message files
 * Minor change in $Site#create skin
2010-01-16 10:57:01 +00:00
80831e6ad7 Modified Site.diskspace_macro() to either output free or used disk space and always show it in $Site#edit skin 2010-01-15 22:18:03 +00:00
5523ab28d2 * 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
841d17c05e * Edited and rephrased some messages (still needs a lot of work)
* Added gettext calls and macros where missing
 * Removed obsolete LogEntry.remove() method
2010-01-10 16:33:46 +00:00
32c52791fe * Refactored code and skins in respect for comprehensive i18n
* Refactored and unified remove() methods and calls for greater flexibility as well as reliability
 * Added option to remove all comments by a user to Comment.remove() method and $Comment#delete skin
 * Added global #listItemFlag skin as well as listItemFlag_macro() for rendering vertically written text of items in a list view (e.g. closed)
 * Fixed bug in gettext_macro() and ngettext_macro() causing incorrect whitespace
 * Refactored timezone and locale handling
 * Modified automatic translation of untitled links in HopObject.link_macro()
 * Added honeypot to login and registration forms
 * Fixed client-side JavaScript to be evaluated when login or registration form is submitted, not only when the submit button is clicked
 * Removed redundant filter expression from DB mapping of Membership.images collection
 * Added Membership.content collection
 * Changed terminology from open to running polls, thus renaming Polls.open_action() method and Polls.open collection
 * Moved a lot of CSS used in root or administration sections from Site#stylesheet to $Root#stylesheet skin
 * Added Root.updateDomains() method (most likely already obsolete)
 * Removed Root.processHref() method (only necessary for very advanced setup) and obsolete comments
 * Fixed Root.xgettext() method to correctly read UTF-8 encoded data
 * Fixed Site.deleted_macro() to return the date object for late formatting
 * Refactored Site.processHref() for more convenient custom domain name mapping
 * Renamed Skins.advanced_action() method to Skins.all_action()
 * Removed redundant filter from Stories.comments collection
 * Removed unnecessary filter from Story.comments collection
2010-01-10 14:40:36 +00:00
f8974735e3 Revamped the backup/restore feature for the story editor 2009-12-27 17:51:19 +00:00
dfe2e54fa1 * Improved eTag creation in main_js_action(), user_js_action() and main_css_action() methods of Site
* Removed obsolete modSorua.skin (we will do shared authentication right one day)
2009-12-27 15:35:50 +00:00
8ea21a1038 Moved .nowrap CSS class from Site#stylesheet to $Root#stylsheet skin 2009-12-14 14:41:23 +00:00
cca8f2c03a * Modified some res.data.title and res.messages assignments
* Added second argument to HopObject.remove() method; if set to true, any object will be removed without any checks for permissions or the like
 * Enhanced notfound and error screens
 * Removed obsolete Image.site property
 * Added missing LogEntry.remove() method
 * Added Site.deleted property
 * Fixed missing calls for remove() methods of some collections in Site.remove()
 * Added Root#stylesheet skin for future CSS classes necessary for GUI elements
 * Added missing Site.entries collection
 * Removed troublesome if condition in Skin.remove()
 * Generally deny access to Skin.main_action
 * Added missing Skin.getFormValue() method
 * Added check in Skin.update() if the Site#page skin contains the <% response.body %> macro 
 * Added Skins.onRequest() method checking if we are in-between two Skins objects
2009-12-13 22:29:21 +00:00
5ec14e5c06 Skin spring cleaning: unified and restructured skin parts and removed obsolete markup 2009-12-13 21:54:58 +00:00
a3d4015b04 Added call for java.net.IDN.toASCII() to ensure that (yet) exotic site names can be used, too 2009-11-05 20:31:23 +00:00
8d7430ab2f * Included formerly added default images to the Images.Default collection
* Replaced vintage Helma typogramm with new logo
2009-11-04 13:46:45 +00:00
0e3b954b76 Fixed ugly bug causing sites to lose their layout on import or reset 2009-11-03 15:12:39 +00:00
dcc9cbcfc8 * Added basic doctags to the code
* Removed obsolete code
2009-11-02 16:16:41 +00:00
fd653c4198 * Fixed tiny bug causing confusing display of subscriptions and privileges in Members prototype
* Modified site permissions to allow unsubscribing one site from within another. (It’s complicated, I know.)
2009-10-31 20:25:08 +00:00
063d7b89cb Added check for site.layout before removing it in Site.remove() method 2009-10-30 14:23:42 +00:00
091de300c7 Defined res.handlers.example in Root.create_action() to provide a working example URL in description of $Site#create skin 2009-10-28 15:03:42 +00:00
86ade4f962 Updated reference URL for filter patterns (regular expressions) 2009-10-28 14:39:48 +00:00
499f11c7b8 * Edited wording of $Root#main skin
* Added sorting and caching routine for alphabetical output of sites in Root.sites_action()
 * Fixed quotes in $Site#create skin
2009-10-28 14:34:37 +00:00
3a2ff3d932 Fixed site deletion 2009-10-28 09:35:06 +00:00
b9529de94e Added work-around in Site.getXml() to prevent org.jdom.IllegalDataException caused by some ASCII control characters most likely inserted by some kind of evil text processor 2009-10-28 00:12:49 +00:00
517f6ce067 * Added various fixes for issues observed in the event log of Antville.org
* Added ugly hack for providing support of rssCloud and PubSubHubbub in XML feeds
2009-09-30 09:48:23 +00:00
7d6acf37e3 * Re-introduced link for site creation
* Decreased space in menu box
2009-09-21 17:04:59 +00:00
2ec2404b03 Encode referrer string before rendering the HTML as fix for issue #32 2009-09-21 15:29:12 +00:00
05cb186fd1 Disabled work-around for story handlers in Comment skins in Site.getXml() method 2009-09-21 13:31:41 +00:00
4317d9f1e3 * Fixed some nasty bugs in Importer.js
* Added removal of layout in Site.remove()
2008-12-14 20:46:27 +00:00
05ba5e4b13 * Fixed bug in Admin.site_action() preventing deletion of a site
* Improved import/export feature to run asynchronously amongst other things
 * Remvoved exclusion of root site in Root's default collection (fingers crossed that this has no negative side effects)
2008-12-14 19:49:12 +00:00
674ec8bf9b Implemented basic functionality for site export and import (CAVEAT: this is an intermediate commit for testing purposes on p3k.org only) 2008-12-14 15:27:47 +00:00
31251b6809 * Fixed notifcation skins in HopObject to prevent ugly "null" output; from now on only the ID of the created/modified object is displayed.
* Fixed bug in Story.summary_macro() preventing additional arguments from being used to render metadata content
 * Added root.sites to _parent mapping in Site.properties
2008-12-14 12:50:52 +00:00
b5f3128757 Fixed search for special characters 2008-12-12 10:54:58 +00:00
7444d1b227 * Replaced <% comment.created %> with <% comment.creator %> macro in <% if %> macro of Comment#edit skin (fixes issue #27)
* Wrapped display of creation and modification dates in <% if %> macros in Comment#edit skin
 * Slightly reduced code in global formatDate() method
 * Modified HopObject.created_macro() to prevent creation dates of  transient objects from being displayed or formatted incorrectly
 * Modified HopObject.modified_macro() accordingly
 * Added width attribute to CSS definition for fieldset elements
 * Reduced macro code in Story#edit skin
2008-12-11 18:08:51 +00:00
4074fd0d05 Officially enabled access to Site.search_action() for everyone 2008-10-02 18:34:38 +00:00
260f6966af Added display of search box if query is unddefined or no results are found 2008-09-29 10:18:00 +00:00
d7d716fa95 * Updated text of $Admin#welcome skin (sites cannot be made the front page so easily, anymore)
* Added setup routine to Root.main_action() which is executed when there is an unconfigured root site or no privileged user (admin)
 * Modified $Image#edit skin: check for Image.fileName property insteaed of "created" when deciding whether to show the name and dimension input fields
 * Added missing res.data.title to $Members#register skin
 * Removed app.log() calls when catching login or registration exceptions
 * Added empty User.onLogout() method to get rid of some "errors" in the log file
 * Removed obsolete code
2008-09-21 17:44:18 +00:00
e60b658c82 Fixed tiny bug in Site.processHref() method: getProperty() is a global method, not one of Application. 2008-06-29 12:51:29 +00:00
24729da01a Retrieve sites from Root's default collection in Site.getByName() method 2008-06-18 20:19:52 +00:00
b4c6ad38f8 Fixed and cleaned up admin section 2008-06-15 20:28:25 +00:00
6168f14b74 Added work-arounds for "story" handlers in comment skins to gain future compatibility with Helma versions having the "get-handler-from-path resolver" disabled 2008-06-15 18:18:41 +00:00
065828abf5 Fixed implemenation of backup/restore feature for stories and comments 2008-06-12 15:33:11 +00:00
4c4e26e5e8 * Renamed Site.queueCallback() method to Site.callback()
* Added output of queued requests and referrers to Root.health_action()
 * Fixed POST arguments in Root.invokeCallbacks() method
2008-06-12 14:41:30 +00:00
b0b126a992 * Replaced all occurrences of "webHook" with "callback"
* Dropped obsolete Site.webHookCalled property
 * Renamed Site.hitchWebHook() method to Site.queueCallback()
 * Renamed default callback method Root.default_hook_action() to Api.callback_action()
 * Implemented callback queue in favor of immediate invocation
 * Added basic documentation about callbacks
2008-06-12 14:02:42 +00:00
b16150561e Removed obsolete site.email property 2008-06-05 09:13:51 +00:00
1b79b262b9 Removed restriction for unprivileged users to execute Site.referrers_macro() method 2008-06-04 12:15:40 +00:00
c63789a82a * Added label for includeSpam input element in $Site#referrers skin
* Enabled Site.search_action() for GET requests
2008-05-15 16:56:19 +00:00
59e8c53efe Enabled search for content managers, referrers for site owners 2008-05-15 16:19:50 +00:00
58a2608e90 Enabled search again for privileged users for now 2008-05-15 16:00:14 +00:00