Commit graph

3984 commits

Author SHA1 Message Date
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
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
6d7904c9ff Added correct settings for short and long date format patterns when initializing virgin installation 2011-03-01 12:58:50 +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
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
98bfd954b9 Updated site search to work with new Metadata 2011-02-20 16:10:37 +00:00
a4a6737e6d * Fixed order of HopObject.handleMetadata() and disableMacro() calls – the latter have to go last
* Added User.remove() method but left it disabled until thoroughly tested
 * Added check on registration whether an IP or e-mail address is blacklisted by either botscout.com or stopforumspam.com
2011-02-20 12:12:26 +00:00
08d00dc9d8 Slightly improved output of RSS format by using the creation date as title if the story comes without one 2011-02-20 11:56:26 +00:00
b27aa3145c * Moved value normalization from HopObject to Metadata prototype
* Removed limitation to edit running polls
 * Fixed some issues in MySQL database scheme
 * Moved routine for replacing version tags from init to export target in build script
2011-02-20 11:26:41 +00:00
7ebb4cc6d0 Added Douglas Crockford’s JSON2 library 2011-02-18 14:18:15 +00:00
6a4cbcc1ed Fixed camel-case in cacheMode and accessName properties 2011-02-15 18:57:15 +00:00
90df535581 Enabled aggressive cache mode for metadata collections 2011-02-15 18:49:36 +00:00
e5964eb5b9 Improved soft comment deletion:
* If comment contains a child comment set its status to DELETED, erase metadata (content) and prevent macro calls to display creator or modifier
 * Otherwise – or if status already equals DELETED – completely remove it and its children from the database
2011-02-15 18:12:43 +00:00
dacaba9b3f * Implemented next attempt of a module framework called Features
* Added type argument to global formatDate() and format_filter() methods
 * Added JSON.js module
 * Added app.data.features collection
 * Fixed routine for salting passwords (probably due to jQuery upgrade)
 * Renamed Members.salt_js_action() method to Members.salt_txt_action()
2011-02-12 17:47:30 +00:00
f69e0fca5e Fixed syntax error 2011-02-11 09:56:09 +00:00
cc2e07ccc1 Replaced simple Root.VERSION string with fine grained structure, maybe a wee bit too complex...? 2011-02-10 23:57:59 +00:00
96bb36f4b9 * Updated code according to changes in Metadata handling
* Increased jQuery version to 1.5
2011-02-10 23:53:58 +00:00
1570f2bcf6 Updated code according to changes in Metadata handling 2011-02-10 23:51:17 +00:00
14cc9a6988 Rewrote Metadata prototype for more efficient database handling:
* Metadata is now written to its own table instead of a column only
 * Values are saved as JSON-like structure only for certain types (like Array or Function)
 * Adding custom metadata is more generic using the new HopObject methods setMetadata(), getMetadata() and deleteMetadata()
 * Searching keys and values via common SQL query is much more straightforward (no JSON-like structure involved when basic types like String and Number)
2011-02-10 23:35:00 +00:00
4091e81d2b Initial commit of FlexiPath prototype 2011-02-06 21:40:44 +00:00
bdcca7ab37 Removed strict check for Antville version when importing a layout 2011-01-24 18:30:37 +00:00
54c1c22539 Removed obsolete date format pattern constants 2011-01-24 18:28:47 +00:00
e35356ddfa * Refactored rendering of date formats
* Increased jQuery version to 1.4
2011-01-24 18:22:59 +00:00
bd855b1ca7 Fixed check for res.skinpath[0] and added FIXME hinting how to make the whole evaluation much easier... 2011-01-21 23:16:02 +00:00
1eb886729d Replaced hard-coded return value with schedulerInterval property defined in app.properties; will not be used anyway but in case one should forget about that it is cleared where the value is coming from. 2011-01-21 23:14:36 +00:00
7d6ea9e0d5 Fixed description in @fileoverview doc tag 2011-01-21 20:43:08 +00:00