Commit graph

3816 commits

Author SHA1 Message Date
fb129cc351 Updated i18n files 2011-05-29 13:59:21 +00:00
2837612b49 Improved display of window title in Archive by calculating res.data.title more elaborately in Archive.main_action() 2011-05-29 13:55:47 +00:00
3a02c7b557 Updated i18n files 2011-05-29 10:50:48 +00:00
c158dafa70 Removed debugging output 2011-05-29 10:49:45 +00:00
d6dcaa26d8 Added two macros for compatibility 2011-05-29 09:09:49 +00:00
aff6a03f0e Added compatibility fix for rendering full URLs in HopObject.link_macro() – e.g. <% story.link to="http://antville.org" text="Antville rocks!" %>. Fixes issue 21. 2011-05-29 08:19:39 +00:00
f51d2fb0ca Slightly modified last change by using Number() instead of parseFloat() 2011-05-28 15:29:32 +00:00
b28007a3aa Fixed bug in Metadata.getValue() when calculating a Date type value 2011-05-28 15:25:20 +00:00
8b852014a2 Removed display of concrete time values in global formatDate() 2011-05-21 17:04:02 +00:00
4a4849a02a * Increased version to 1.3b
* Modified helma.dir property to static path
 * Added “extra” to set of directories the gettext parser will scan
2011-05-21 11:21:27 +00:00
2bc771a40c Added l10n for connect feature 2011-05-21 11:11:52 +00:00
745514faf1 Updated POT file and localized message files for en and de 2011-05-21 11:07:07 +00:00
6f397102f1 Only display connect feature when JavaScript is enabled 2011-05-21 10:51:26 +00:00
ac0cf040b4 Updated POT file and localized message files for en and de 2011-05-21 10:16:03 +00:00
b0ab9f6ba2 * Added new formats to global formatDate() method: text and iso
* Changed format argument to text for modified sites on frontpage and content in history
 * Fixed assignment of Root.VERSION in Layout.getArchive()
2011-05-21 09:47:01 +00:00
fe6c951909 Fixed bug introduced in r4388 preventing tags from being set by topics (compatibility layer): other than req.data, req.postParams et al. are not mutable. Thus, setting req.postParams.tags = [topics] failed. Solved by cloning the request params object which hopefully does not break anything else. 2011-05-19 12:10:08 +00:00
9679f3d561 * Removed Site.longDateFormat and Site.shortDateFormat properties; date formatting is now completely delegated to the underlying JVM
* Removed <select> elements for long and short date formats in $Site.edit skin
 * Removed compatibility support for long and short date formats
 * Removed global getDateFormats() method and commented code in global formatDate() method
 * Slightly shortened <select> elements in site preferences again
2011-05-16 16:52:21 +00:00
84fd98200e * Rewrote global getTimeZones() method
* Rewrite client-side code for reformatting the time zone <select> element according to changes in global getTimeZones() method
 * Replaced “return false” with call for event.preventDefault() in client-side event-driven code
 * Rewrote global getDateFormats() and formatDate() methods – caution! getDateFormats() will be removed in the next commit because the dropdown menus in site preferences are obsolete; just committing the code for the record
2011-05-16 16:35:41 +00:00
e5d037cded Removed legacy properties from req.postParams in aspects.fixStoryEditorParams() 2011-05-15 14:59:22 +00:00
0f7c8f53e1 * Slightly modified Story.content_macro() in compat to prevent leaking of param properties into HTML attributes
* Replaced req.data with req.params in Stories.create_action() and Images.create_action() to prevent leaking of unwanted data (e.g. http_*) to the database
* Renamed and refactored Story.setMetadata() to Story.setCustomContent()
* Renamed Story.isMetadata() to Story.isCustomContent()
2011-05-15 14:42:54 +00:00
5a05bc3d48 Added empty string as fallback for the feed channel description in Root.updates_xml_action() as new metadata could render a missing tagline as null 2011-05-08 12:03:12 +00:00
db1af9e7ce Upgrade to code from Crockford’s json2.js as of 23 Feb 2011 (see https://github.com/douglascrockford/JSON-js/blob/master/json2.js) 2011-05-08 11:52:02 +00:00
778921abed Added optional third argument defining a user to Admin.queue() 2011-05-08 11:46:14 +00:00
7537c7fced Prefixed column names when creating metadata indexes in postgre.sql script 2011-05-08 11:41:27 +00:00
0c2ae2aca3 Output prototype.name when logging process 2011-05-08 11:39:09 +00:00
87c86776fe Added padded JSON response to Members.connect_action() for trivially checking login status across domains 2011-05-04 13:54:58 +00:00
7b4e241cff Added padded JSON response to error handler 2011-05-04 13:50:44 +00:00
0580f0ae33 Replaced SHORTDATEFORMAT constant which since has been removed with literal date format string 2011-04-07 12:09:37 +00:00
3a932fdf38 Initial commit of simple non-caching proxy for JSON and JSONP requests 2011-04-05 13:28:40 +00:00
a68035971a Slightly modified order of properties and added missing ones 2011-04-05 13:26:55 +00:00
4678f272b6 Implemented first draft of JSONP support for creating stories and images as a new part of the Antville API. I.e. it is now possible to create an image (cross-domain!) from within client-side JavaScript simply by calling e.g. Images.create_action() and also providing a name for the callback method in req.data.callback:
* Added JSON.pad() and JSON.sendPaddedResponse() methods
 * Added calls for JSON.sendPaddedResponse() in Stories.create_action() and Images.create_action()
2011-04-05 12:34:30 +00:00
468809b033 Added JSON.pad() method for wrapping data in a JSONP-compatible response 2011-04-04 18:16:12 +00:00
24bfbc95b8 Updated AntClick’s H2 database with current schema 2011-03-30 09:36:58 +00:00
8b37e6a224 Rewrote build script to work with forked Helma repositories at GitHub 2011-03-30 09:35:55 +00:00
b5947d888a Changed way to invoke Feature.getPermission() by using Function.apply() with object instance and arguments array 2011-03-29 11:18:45 +00:00
cc4c31b46d * Added calls for HopObject.deleteMetadata() in HopObject.remove() methods of prototypes using Metadata
* Removed call for Site.processHref() method in Site.getStaticUrl() - still to be evaluated
 * Added call for Feature.getPermission() in Site.getPermission()
2011-03-29 10:54:19 +00:00
1ee2440f80 * Moved <script> element back to the page header for now – needs more care because some pages using JavaScript stopped from working correctly 2011-03-29 10:13:26 +00:00
e9b9391517 * Moved <script> element to the bottom of the page
* Replaced sidebar list of recent postings with recent comments and changed section title accordingly
2011-03-29 09:03:20 +00:00
78b32bde9f Added setting of HTTP status code 400 if an error occurs in Stories.create_action(); also see Images.create_action() in previous commit – experimental! 2011-03-29 08:59:20 +00:00
ab5e41ef30 * Added File.redirectOnUploadError() and File.redirectOnExceededQuota() methods
* Replaced redundant code with calls for new File methods in File, Files, Image and Images prototypes
 * Fixed bug in Image.getFileExtension() causing file types containing charset information from being processed correctly
 * Added check to Image.update() if getURL() returns data to allow post requests with no file upload at all (e.g. via curl)
 * Removed call for root.processHref() in Images.Default.Image() to reduce complexity – needs more evaluation, though
2011-03-29 08:52:31 +00:00
52eda0b11b Reverted rendering of login et al. pages back from root to the current site 2011-03-28 18:40:19 +00:00
0996bf848c Fixed callback URL for connecting with Google and Twitter 2011-03-28 18:36:00 +00:00
d318b87f4e Added checks for connect keys of various services to decide if the corresponding connect link should be rendered 2011-03-28 17:54:58 +00:00
efab4a2b14 Moved Scribe library from ./lib to ./extra/connect directory 2011-03-24 01:59:01 +00:00
28808135d4 Refactored plugin handling:
* Removed “extras” code because I just forgot I already implemented a Feature prototype
 * Added global <% feature %> macro calling the main() method of the desired feature
 * Added Feature.getPermission() method which can be invoked from HopObject.getPermission()
 * Refactored connect feature to work with modified Feature prototype
2011-03-24 01:54:21 +00:00
91b45b3732 Implemented basic extra handling (ie. plug-ins in Antville):
* Added global app.data.extras collection and registerExtra() method
 * Defined res.handlers.extra in HopObject.onRequest() handler to provide extra macros
 * Implemented reCAPTCHA for anonymously contacting an Antville member as proof of concept
2011-03-23 13:35:02 +00:00
8a83f406f8 Updated copyright and svn:keywords property 2011-03-23 12:28:35 +00:00
61df9ba586 Removed forced linebreak between label and creation date 2011-03-15 23:09:06 +00:00
2d0d0d2696 Fixed tiny bug when creating a file with the Api.metaWeblog.newMediaObject() method 2011-03-15 22:50:49 +00:00
f2631f8760 * Added Image.add() and File.add() methods similar to Story.add(), extending internal API
* Refactored Images.create_action(), File.create_action() and Api.metaWeblog.newMediaObject() methods using the new methods
2011-03-15 22:34:38 +00:00