Commit graph

4691 commits

Author SHA1 Message Date
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
08bcfdcb33 * Refactored Story.add() method to take the data struct as first and required argument, then optionally site and user
* Rewrote Importer reducing redundant code by using new Story.add() method
2011-03-15 22:07:24 +00:00
929ed609cb Rewrote Importer reducing redundant code by using new Story.add() method 2011-03-15 20:28:18 +00:00
2ca26e4f28 * Added Story.add() method as counterpart to Story.remove() and to establish kind of internal API
* Rewrote external API (Api prototype) reducing redundant code by calling Story.add() method
2011-03-15 20:22:08 +00:00
fe159c3112 Fixed bad security hole allowing anyone to reset a user’s password if the user id and e-mail address are known 2011-03-08 17:07:08 +00:00
f511318689 Added patch to remove question marks from file, image and tag names because the objects currently are inaccessible via URL 2011-03-02 09:50:20 +00:00
d4d9c40563 Fixed wrongly encoded characters in copyright header 2011-03-01 18:43:43 +00:00
6d7904c9ff Added correct settings for short and long date format patterns when initializing virgin installation 2011-03-01 12:58:50 +00:00
1ae41a513a Fixed PostgreSQL comment symbols 2011-03-01 12:57:45 +00:00
4a9017e251 Finally introduced Helma’s uploadSoftfail property to Antville – see http://groups.google.com/group/helma/msg/4455deb2e24e5d8a 2011-02-23 18:21:43 +00:00
8a2e33329b Reverted copyright update for third-party code 2011-02-23 16:44:47 +00:00
68ec5d1a2f Updateed copyright strings to be inserted into PO files 2011-02-23 16:35:32 +00:00
73f21c0102 Added URL keyword to svn:keywords property 2011-02-23 16:30:34 +00:00
5888797569 Added URL keyword to svn:keywords property 2011-02-23 16:24:32 +00:00
3654e1c10a Fixed encoding issues 2011-02-23 16:03:33 +00:00
1d8b34a54a Trying to fix bloody file encoding... 2011-02-23 15:52:22 +00:00
7777a486de Refactored static URL handling by using static and staticMountpoint properties in apps.properties file instead of custom staticUrl and staticPath in app.properties – still experimental! 2011-02-23 15:17:52 +00:00
81e1790374 Added jsdoc comments 2011-02-23 14:43:25 +00:00
322365f59b Added Root.static_macro() method for easier construction of static URLs via macro 2011-02-23 14:42:41 +00:00
2cda27e26b Slightly edited wording of macro instruction to prevent confusion with layout images 2011-02-23 14:30:50 +00:00
e7b62aa607 * Removed invalid argument from String.isEmail() and String.isUrl() method calls in validateEmail() and validateUrl() methods
* Replaced lazy check for e-mail address in validateUrl() with call for String.isEmail()
2011-02-23 14:07:50 +00:00
66ec37f82a * Improved User.register() method by trimming name and email values before evaluating them
* Removed redundant check for an existing user in User.register()
2011-02-23 14:00:47 +00:00
7b15def263 Removed obsolete code in User.onLogout() method 2011-02-23 13:13:15 +00:00
9f855af0b0 Slightly modified Sql.SEARCH string 2011-02-20 22:08:47 +00:00
84b10afacb * Added tabindex attributes to login form
* Removed macro for testing Facebook connect feature
2011-02-20 22:07:43 +00:00
441230321d Slightly optimizd SQL statements for Archive prototype 2011-02-20 16:13:56 +00:00