Commit graph

2913 commits

Author SHA1 Message Date
ebd52373da * Moved code from Api.dispatch() method to Api.main_action_xmlrpc()
* Renamed Api.movableType namespace back to Api.mt because that's the name after all
 * Removed obsolete Api.dispatch() method
2008-06-12 19:50:02 +00:00
757b13b53e Replaced individual API endpoints with the actual single one 2008-06-12 19:24:02 +00:00
7b36852d88 Fixing Helma bug #628 fails because it also chomps the XML-RPC method any potential work-around is impossible without 2008-06-12 19:19:59 +00:00
113596fa71 Trying to find a work-around for Helma bug #628 2008-06-12 19:07:29 +00:00
8e8667e5f4 Added Api.main_action_xmlrpc() method which could replace the three other XML-RPC methods 2008-06-12 16:47:37 +00:00
9011841b88 Tiny case change ("Link") 2008-06-12 15:54:32 +00:00
5d0205b4fa Re-enabled Story.backlinks_macro() method for site owners 2008-06-12 15:46:36 +00:00
deadad31c0 Added Sql.toString() method 2008-06-12 15:41:15 +00:00
065828abf5 Fixed implemenation of backup/restore feature for stories and comments 2008-06-12 15:33:11 +00:00
f00e94e3f8 * Renamed Story.backlinks_macro() method to Story.referrers_macro()
* Replaced "story" handlers in a few Story skins with "this" as otherwise comments won't be correctly rendered in history or RSS output  (which I think is due to the recent changes in Helma related to fixing bug #617)
2008-06-12 14:57:39 +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
653624ae65 Limited width of default callback's code with hackish style attribute 2008-06-12 14:18:26 +00:00
c2797f7e5a Renamed Api.skin to $Api.skin (protected from customization) 2008-06-12 14:15:20 +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
9731dd4399 Granted permission to view API page for anyone 2008-06-12 09:40:39 +00:00
207f3407f6 Added basic information about supported APIs 2008-06-12 09:31:14 +00:00
d0b76c130a Wrapped result of Story.getTitle() method in String() call to prevent "Unsupported Java type: class org.mozilla.javascript.NativeString" XML-RPC exceptions; furthermore return "..." ellipsis instead of "this". 2008-06-12 09:19:54 +00:00
dcb7ae8c52 Finalized APIs by refactoring MetaWeblog API and replacing redundant code with helper methods 2008-06-05 14:47:21 +00:00
65cc0fb773 * Re-enabled Movable Type's API
* Slightly edited wording of error messages
 * Removed some lines of obsolete code
2008-06-05 12:09:17 +00:00
841b76e882 Refactored Movable Type's XML-RPC API 2008-06-05 12:08:00 +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
c0d9c5cee1 Fixed output of macro code for global skins 2008-06-04 10:19:17 +00:00
c460a87eab Allow everyone to see poll results 2008-06-04 09:55:35 +00:00
743cce4c43 Fixed permisssions for regular users voting in a poll 2008-06-04 09:52:53 +00:00
1e54c789f0 Fixed bug causing "undefined" to disappear next to a image rendered by a <% story.content as="image" %> macro 2008-05-16 10:12:31 +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
4539635476 Fixed bug in Sql.js causing exception when there's now result set at all 2008-05-15 16:01:08 +00:00
58a2608e90 Enabled search again for privileged users for now 2008-05-15 16:00:14 +00:00
6be2921814 Removed call for logRequest() from Story.comment_action() 2008-05-15 15:27:29 +00:00
1138c189b4 Fixed escaped newlines 2008-05-15 15:20:32 +00:00
462b12f3a8 Replaced Root.referrers collection with call for persist() in Root.commitReferrers() 2008-05-15 15:15:08 +00:00
46b50db3d4 Added maxSize to Root.referrers property to prevent Helma from loading the whole collection every time it changes (pls. note the FIXME for an alternative solution) 2008-05-15 14:27:01 +00:00
b2cf3ece2d Fixed SQL statement in Root.purgeReferrers() 2008-05-15 13:59:53 +00:00
92c4089df7 * Fixed bug in Root.commitReferrers causing method to abort after first item without referrer
* Reverted to GET method in Site.referrers_macro() because otherwise the display of filtered spam won't work (Antville.Query cannot handle POST requests)
2008-05-15 13:47:58 +00:00
fbaf65052e Added check for amount of requests and available referrer in Site.referrer_macro() 2008-05-15 13:14:24 +00:00
1aa5e7f25e * Rounded up LogEntry
* Slightly modified #referrer and #referrers skins of Site and Story
2008-05-15 13:02:50 +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
994436a4a4 Fixed bug causing exception in Layout.export_action() due to recent addition of Root.skin 2008-05-14 15:30:29 +00:00
caefca42a6 Added title for status table 2008-05-14 14:02:28 +00:00
c4378138c7 * Added Root.skin
* Modified Skin.getPrototypeOptions() to only include root skins for the root site
 * Include Root#status skin from within $Root#health skin
2008-05-14 13:48:28 +00:00
55355e11f9 Removed Site#health skin again because it of course shows up in every site layout 2008-05-14 13:38:41 +00:00
3aa906b59a Added inclusion of custom Site#health skin from within $Root#health skin 2008-05-14 13:37:05 +00:00
2b487984cd Added inclusion of custom Site#health skin from within $Root#health skin 2008-05-14 13:36:50 +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
eb66ac9ccf Added formatNumber() calls wherever useful 2008-05-14 13:16:12 +00:00
17a116d98f * Added fix to prevent exception on start in Root.health_action()
* Fixed NaN errors in Root.updateHealth()
2008-05-14 12:54:44 +00:00
7f5efd44fd Improved counting requests and errors of the last 5 min in Root.updateHealth() 2008-05-14 12:42:31 +00:00
096f7ef572 Added health viewer (aka status) to Root prototype 2008-05-14 12:25:15 +00:00