Commit graph

459 commits

Author SHA1 Message Date
b032ec04f3 Check URL for "main" or "." and replace it with the empty string to avoid NON_INITIAL_DOT_SEGMENT in PATH errors by validator.w3.org 2009-11-11 13:00:02 +00:00
dcc9cbcfc8 * Added basic doctags to the code
* Removed obsolete code
2009-11-02 16:16:41 +00:00
c5bccaee7e Removed import of currently unnecessary Search.js module 2009-11-01 12:50:08 +00:00
5bfa8a1ba3 Added repositories for english and german messages (still to be translated) 2009-10-30 22:48:57 +00:00
a4aac4fa93 * Moved Philipp’s RegExp pattern from validation methods to static String properties
* Added global default_filter() method as alternative (and fix in some cases) for the “default” macro parameter
 * Do not show a story’s summary in top stories view but instead try the title and apply the newly introduced default_filter() method with the clipped story text to it
2009-10-27 12:18:08 +00:00
98223ef94d Respect the application’s SMTP settings when sending mail 2009-09-21 14:07:20 +00:00
484b80cf7e * Updated to final Rome version
* Added Root#welcome skin to Root/Site.skin (compatibility)
 * Cleaned up directory structure and removed obsolete files
 * Updated mrtg.cfg
2009-09-21 13:04:14 +00:00
Philipp Naderer
53d5c40e50 Better validation for URLs and e-mail addresses. 2009-04-09 22:39:32 +00:00
f265d4cc34 * Fixed skin for rendering <% list tags %> macro in global list_macro()
* Added support for limit parameter in Tags.list_macro()
2008-12-18 19:07:17 +00:00
d693f4368d Renamed export.log to error.log in Exporter 2008-12-15 15:17:14 +00:00
2b9a311c6d * Fixed bug in File.getFile() causing exception in Exporter
* Added export.log file recording export errors
2008-12-15 15:04:46 +00:00
8db348f368 Added status information to Root#importItem skin 2008-12-14 22:04:47 +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
88d4970ae4 Added missing files for export/importing 2008-12-14 15:32:17 +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
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
cc97fa863c Fixed bug in global poll_macro() preventing comments to be added to stories with embedded polls 2008-09-22 10:41:13 +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
b2ce07cad2 Fixed issue #22: "Image upload is broken in Safari". 2008-08-05 13:35:12 +00:00
59c8556288 * Fixed formatDate() method to use per-site date format patterns
* Fixed Story.skin to display creation date only if available
2008-07-22 18:21:30 +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
3d8ad6984c * Renamed app.data.log to app.data.entries
* Renamed Root.commitLog() method to Root.commitEntries()
2008-06-15 17:42:49 +00:00
94a6a87c84 * Renamed app.data.referrers to app.data.log
* Renamed Root.commitReferrers() method to Root.commitLog()
2008-06-15 17:22:44 +00:00
deadad31c0 Added Sql.toString() method 2008-06-12 15:41:15 +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
c0d9c5cee1 Fixed output of macro code for global skins 2008-06-04 10:19:17 +00:00
4539635476 Fixed bug in Sql.js causing exception when there's now result set at all 2008-05-15 16:01:08 +00:00
af8b05d1bd * Added HopObject.log() method currently caching referrers of story and site requests
* Modified LogEntry to fit into the new logging mechanics
 * Added commitRequests(), commitReferrers() and purgeReferrers() to Root prototype
 * Added referrers collection to Root
 * Re-added Site.spamfilter property for now
 * Refactored Site.referrers_macro() and Story.referrers_macro() (formerly backlinks_macro, but compatibility is granted)
 * Removed obsolete method Stories.flushRequests()
 * Reactivated referrers (thus, including backlinks) for privileged users for testing purposes
 * Added global nightly() method which is called from a new cronjob at 5 am
 * Added calls for referrer purge and commit methods in Root to scheduler
 * Added Story.count() method to increment the request counter; overwrites Helma's built-in HopObject method but it's anyway redundant with HopObject.size()
 * Added utility methods for database access in Sql.js
2008-05-15 12:58:26 +00:00
e2d02fb5ab * Added further Number formatting to health display
* Added the site's locale to call of Number.format() in global formatNumber() method
2008-05-14 13:30:28 +00:00
096f7ef572 Added health viewer (aka status) to Root prototype 2008-05-14 12:25:15 +00:00
33e1680969 Fixed URL for closed polls in global poll_macro() 2008-05-13 15:23:54 +00:00
e30fff7cce * Added Tag.skin to enable customizing
* Re-added missing permission for privileged users in Site.getPermission()
 * Removed obsolete help.js from Global prototype
2008-05-13 08:29:22 +00:00
f2aa28ead2 Increased maximum of items in global list_macro() and Site.history_macro() to 50 2008-05-12 15:46:36 +00:00
86145cd8f7 * Added short text to Members.add_action()
* Changed order of roles in $Members.main skin
 * Removed obsolete addRepository() calls in Global.js
2008-05-12 14:04:33 +00:00
1f4c87e4d1 * Removed final format() call in Story.link_filter(); if we are lucky we do not need any HTML entities anymore anyway thanks to UTF-8
* Removed obsolete code
2008-05-12 10:50:06 +00:00
aa8bcaec6c Modified name of default skin ("embed" instead of "main") used in global story_macro() 2008-05-12 10:26:01 +00:00
a3ec837524 Fixed global quote() method 2008-05-09 19:04:18 +00:00
f73973fabb Fixed skin names for previews 2008-05-09 18:42:22 +00:00
b3a85c5998 Fixed bug in global image_macro() introduced with latest commit preventing some *other* images from being displayed 2008-05-08 16:15:22 +00:00
550cfc6259 Fixed access names for Images.Default "pseudo" collection 2008-05-08 16:05:03 +00:00
126a1dd5c2 Re-added support for popup images in global image_macro(). In fact, this belongs to the compatibility layer, but unfortunately this would mean to clone the image_macro completely :/ 2008-05-06 09:17:04 +00:00
62dae28c06 * Re-implemented alphanumeric (and even more) names for files and images; hopefully, catching all the troublesome characters which put at risk correctly writing to and reading from disk as well as accessing by URL
* Added File.getName() method removing any characters troubling the file system or the web server
 * Slightly modified global quote() method to wrap a string in double quotes (") if it contains any non-word or non-digit character
 * Set Story.name to empty string by default (until we do something with it :)
2008-05-02 18:06:05 +00:00
6e1ed8ab1f * Moved pager skin elements in protected skin
* Added grant for viewing an image in Images prototype (for now...)
 * Added temporary work-around for preventing comments of missing stories (due to shrunken database) from throwing an exception
 * Added two more links with short explanation to basic skin page
2008-04-30 14:08:03 +00:00
22edd8eb31 Fixed list_macro() for "postings" 2008-04-29 14:36:25 +00:00
5d37d06a81 Fixed bug causing comments of closed stories (as well as stories or sites with comments disabled) to be displayed when calling global list_macro() 2008-04-29 10:25:10 +00:00
2211c6a662 Fixed name of collection containing stories and comments in global list_macro() 2008-04-28 09:02:34 +00:00
b39cb2d1a0 Fixed skin names in global poll_macro to correctly display a poll in a story or skin 2008-04-27 09:15:03 +00:00
b006cbdf0b * Fixed formatDate() method
* Extended HopObject.modified_macro to return the date object if no format pattern can be applied (good?)
2008-04-22 15:20:10 +00:00
239af7195b * Fixed list_macro (but still list rendering is really inconsistent throughout the whole application!)
* Fixed various b/w compatibility issues found in some sites
 * Fixed pager action in Images
 * Added confirmation dialog before resetting a layout
 * Added collection containing updated sites in reverse chronological order
 * Modified site listing (still work in progress)
 * Save site name as title if no title is entered
 * Removed some res.debug() calls
2008-04-21 20:46:29 +00:00