]>
scripts.mit.edu Git - www/ikiwiki.git/log
martin f. krafft [Fri, 21 Mar 2008 18:12:15 +0000 (19:12 +0100)]
Refactor remote procedure calls in the proxy
Add an rpc() method to the proxy to allow users to call remote
procedures, and route the proxy's own import registration via this
function.
Also, implement convenience functions for the RPC calls exported in the
IkiWiki::XML::RPC namespace.
Signed-off-by: martin f. krafft <madduck@madduck.net>
martin f. krafft [Fri, 21 Mar 2008 18:12:14 +0000 (19:12 +0100)]
Make proxy object available to hook functions
Hook functions now get the proxy object as first argument to be able to
use RPC via the proxy.
Signed-off-by: martin f. krafft <madduck@madduck.net>
martin f. krafft [Fri, 21 Mar 2008 18:12:13 +0000 (19:12 +0100)]
add last parameter to plugin registration
Signed-off-by: martin f. krafft <madduck@madduck.net>
martin f. krafft [Fri, 21 Mar 2008 18:12:12 +0000 (19:12 +0100)]
Allow external plugins to return no value
Instead of using the XML-RPC v2 extension <nil/>, which Perl's
XML::RPC::Parser does not (yet) support (Joey's patch is pending), we
agreed on a sentinel: {'null':''}, that is, a hash with a single key
"null" pointing to the empty string.
The Python proxy automatically converts None appropriately and raises an
exception if a hook function should, by weird coincidence, attempt to
return {'null':''}.
Signed-off-by: martin f. krafft <madduck@madduck.net>
Joey Hess [Fri, 21 Mar 2008 18:53:41 +0000 (14:53 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Fri, 21 Mar 2008 18:42:59 +0000 (14:42 -0400)]
fix page source storing
This saves space, and stores the data under the right keys.
Joey Hess [Fri, 21 Mar 2008 17:58:25 +0000 (13:58 -0400)]
web commit by http://jblevins.org/: Case-sensitivity of HTML::Scrubber
Joey Hess [Fri, 21 Mar 2008 17:56:52 +0000 (13:56 -0400)]
fix transition call
Joey Hess [Fri, 21 Mar 2008 17:56:31 +0000 (13:56 -0400)]
moved to a tip
Joey Hess [Fri, 21 Mar 2008 17:52:50 +0000 (13:52 -0400)]
add a tip about dealing with ikiwiki's binary state files
Joey Hess [Fri, 21 Mar 2008 17:22:47 +0000 (13:22 -0400)]
fix transitioning of page state
Joey Hess [Fri, 21 Mar 2008 15:40:33 +0000 (11:40 -0400)]
web commit by http://jblevins.org/: Fix links and sign
Joey Hess [Fri, 21 Mar 2008 15:19:00 +0000 (11:19 -0400)]
web commit by http://jblevins.org/: Request for comments about SVG and MathML whitelists
Joey Hess [Fri, 21 Mar 2008 13:37:52 +0000 (09:37 -0400)]
add transition code for indexdb
Joey Hess [Fri, 21 Mar 2008 13:07:44 +0000 (09:07 -0400)]
Changed to a binary index file, written using Storable, for speed
During refresh of a wiki with 800 files, loadindex was using more total
time than any other function, and saveindex was also in the top ten.
Rewriting them to use Storable makes them three times as fast.
0.7 seconds is saved on my laptop in profiling mode.
Joey Hess [Fri, 21 Mar 2008 10:36:07 +0000 (06:36 -0400)]
Precompile pagespecs, about 10% overall speedup
About 12% of ikiwiki runtime was spent in pagespec_match. It was evaling
the same pagespec code over and over again. This changes pagespec_translate
to return memoized, precompiled functions that can be called to match against
a given pagespec.
This also allows getting rid of the weird variable scoping trick that had
to be in effect for pagespec_translate to be called -- the variables are
now just fed into the function it returns.
On my laptop, this drops build time for the docwiki from about 60 to 50
seconds.
Joey Hess [Fri, 21 Mar 2008 09:59:33 +0000 (05:59 -0400)]
improve comment
Joey Hess [Fri, 21 Mar 2008 09:09:42 +0000 (05:09 -0400)]
updates to support current version of Devel::Profile
Joey Hess [Fri, 21 Mar 2008 09:08:04 +0000 (05:08 -0400)]
work around perl warning
Joey Hess [Fri, 21 Mar 2008 08:51:14 +0000 (04:51 -0400)]
delete inline data after it's used
Joey Hess [Fri, 21 Mar 2008 08:48:26 +0000 (04:48 -0400)]
crazy optimisation to work around slow markdown
Markdown is slow. Especially if it has to process an enormous page. The
most common enormous page is currently the recentchanges page, which gets
processed a lot, and contains very little actual markdown. Most of it is a
big <div>, which markdown skips ... slowly.
This is a rather sick optimisation to work around markdown's speed issues.
Now inline inserts a small, dummy div, allows markdown to quickly render
the actual page content, then replaces the dummy with the actual inlined
pages later.
Results: Rendering just a recentchanges page, with diffs included, dropped
from 4.5 seconds to 2.7 seconds on my laptop. Building the entire wiki
dropped from 46.6 seconds to 39.5 seconds.
(It would be better if inline were a *post*-processor directive.)
Joey Hess [Fri, 21 Mar 2008 07:16:28 +0000 (03:16 -0400)]
process smilies in a sanitize hook
I had to move it to sanitize so all the markup is htmlized, so it can scan
for <pre> and <code>.
Joey Hess [Fri, 21 Mar 2008 06:57:34 +0000 (02:57 -0400)]
another fix
I'm suprised that the second m//g didn't seem to clobber @-, but I don't
want to rely on that, so preserve it beforehand.
Joey Hess [Fri, 21 Mar 2008 06:55:14 +0000 (02:55 -0400)]
various fixes and simplifications
Joey Hess [Fri, 21 Mar 2008 06:43:56 +0000 (02:43 -0400)]
typo
Joey Hess [Fri, 21 Mar 2008 06:43:20 +0000 (02:43 -0400)]
smiley: Detect smileys inside pre and tags, and do not expand.
Joey Hess [Fri, 21 Mar 2008 04:24:06 +0000 (00:24 -0400)]
Close meta tag for redir properly.
Joey Hess [Fri, 21 Mar 2008 03:06:41 +0000 (23:06 -0400)]
web commit by http://jblevins.org/: Oops
Joey Hess [Fri, 21 Mar 2008 02:53:26 +0000 (22:53 -0400)]
web commit by http://jblevins.org/: MathML+SVG whitelist
Joey Hess [Fri, 21 Mar 2008 02:51:09 +0000 (22:51 -0400)]
web commit by http://brian.may.myopenid.com/: change.tmpl and BASEURL
Joey Hess [Thu, 20 Mar 2008 21:02:59 +0000 (17:02 -0400)]
web commit by http://jblevins.org/: A note about the toc plugin and headers in templates
Joey Hess [Thu, 20 Mar 2008 20:26:51 +0000 (16:26 -0400)]
web commit by http://jblevins.org/: Bug report update
Joey Hess [Thu, 20 Mar 2008 10:08:33 +0000 (06:08 -0400)]
web commit by http://bremner.myopenid.com/
Joey Hess [Thu, 20 Mar 2008 03:07:13 +0000 (23:07 -0400)]
moved to a different server
Joey Hess [Thu, 20 Mar 2008 03:00:21 +0000 (23:00 -0400)]
Merge branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info
Joey Hess [Thu, 20 Mar 2008 02:51:05 +0000 (22:51 -0400)]
web commit by http://joey.kitenet.net/
Joey Hess [Thu, 20 Mar 2008 02:46:51 +0000 (22:46 -0400)]
Store userinfo in network byte order for easy portability. (Old files will be automatically converted.)
Joey Hess [Thu, 20 Mar 2008 01:59:40 +0000 (21:59 -0400)]
Time::Duration is no longer used, remove from docs and recommends.
Joey Hess [Thu, 20 Mar 2008 01:12:18 +0000 (21:12 -0400)]
optimisation, only load openid module when signing in
This makes the CGI about .2 seconds faster when editing pages etc.
Joey Hess [Wed, 19 Mar 2008 19:49:37 +0000 (15:49 -0400)]
Joey Hess [Wed, 19 Mar 2008 19:49:00 +0000 (15:49 -0400)]
make setargv take an array
for consistentcy with getargv, which returns one
Joey Hess [Wed, 19 Mar 2008 19:18:38 +0000 (15:18 -0400)]
fix setvar
It was incorrectly setting the value to the number of items in @_, ie,
always 1.
Joey Hess [Wed, 19 Mar 2008 19:15:30 +0000 (15:15 -0400)]
Merge branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info
Joey Hess [Wed, 19 Mar 2008 19:12:59 +0000 (15:12 -0400)]
getargv needs to return a list reference
xml rpc only allows functions to return a single value, no lists. So getargv
needs to return a list reference, which means that the caller will see an xml
rpc array.
Joey Hess [Wed, 19 Mar 2008 19:00:15 +0000 (15:00 -0400)]
web commit by http://jblevins.org/: Patch for unclosed refresh meta tag.
Joey Hess [Wed, 19 Mar 2008 14:13:08 +0000 (10:13 -0400)]
web commit by http://engla.myopenid.com/: oops, point my URL to my ikiwiki portion (frontpage is not ikiwiki). Also, tweak the website title
Joey Hess [Wed, 19 Mar 2008 14:11:41 +0000 (10:11 -0400)]
web commit by http://engla.myopenid.com/: changed my url since my university is pretty.. dumb
Joey Hess [Tue, 18 Mar 2008 20:36:19 +0000 (16:36 -0400)]
German translation update. Closes: #471540
Joey Hess [Tue, 18 Mar 2008 16:58:47 +0000 (12:58 -0400)]
Merge branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info
martin f. krafft [Tue, 18 Mar 2008 16:39:06 +0000 (17:39 +0100)]
Prevent plugins/.gitignore from being installed
I added a .gitignore file to plugins/ to ignore *.pyc files, and that
file is now being installed +x to /usr/lib/ikiwiki/plugins. This commit
prevents that by excluding all dot-files under plugins/ from the
install.
Signed-off-by: martin f. krafft <madduck@madduck.net>
Joey Hess [Tue, 18 Mar 2008 14:25:45 +0000 (10:25 -0400)]
web commit by http://madduck.net/: more details
Joey Hess [Tue, 18 Mar 2008 11:17:56 +0000 (07:17 -0400)]
web commit by http://madduck.net/: add note about marking current pages
Joey Hess [Tue, 18 Mar 2008 11:16:32 +0000 (07:16 -0400)]
web commit by http://madduck.net/
Joey Hess [Tue, 18 Mar 2008 11:15:55 +0000 (07:15 -0400)]
web commit by http://madduck.net/: tagging wishlist
Joey Hess [Tue, 18 Mar 2008 11:14:57 +0000 (07:14 -0400)]
web commit by http://madduck.net/
Joey Hess [Tue, 18 Mar 2008 11:06:39 +0000 (07:06 -0400)]
web commit by http://madduck.net/
Joey Hess [Tue, 18 Mar 2008 09:47:14 +0000 (05:47 -0400)]
web commit by http://madduck.net/
Joey Hess [Tue, 18 Mar 2008 09:41:00 +0000 (05:41 -0400)]
web commit by http://madduck.net/: closing
Joey Hess [Tue, 18 Mar 2008 02:33:21 +0000 (22:33 -0400)]
response
Joey Hess [Tue, 18 Mar 2008 01:28:31 +0000 (21:28 -0400)]
* Record new pages in %pagesources temporarily when previewing so that
things that need to know the page source or type can query it from there.
Fixes previewing of tables when creating a new page.
Joey Hess [Mon, 17 Mar 2008 22:09:33 +0000 (18:09 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 21:17:53 +0000 (17:17 -0400)]
update
martin f. krafft [Sat, 15 Mar 2008 14:46:36 +0000 (15:46 +0100)]
first implementation of a python demo
(cherry picked from commit
bbdf127917a13b81cef50995098f479ef4fe1cf9 )
martin f. krafft [Sun, 16 Mar 2008 11:03:52 +0000 (12:03 +0100)]
force data written to stdout to be a string
(cherry picked from commit
65c24d4aeca6188f4423ad1809f2415285843155 )
martin f. krafft [Sun, 16 Mar 2008 11:03:26 +0000 (12:03 +0100)]
Print traceback for unhandled exceptions
(cherry picked from commit
10574a324e03cd0533e77f46ead6e4c6a6e5568f )
Joey Hess [Mon, 17 Mar 2008 18:07:38 +0000 (14:07 -0400)]
response
Joey Hess [Mon, 17 Mar 2008 18:05:21 +0000 (14:05 -0400)]
Merge branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info
Joey Hess [Mon, 17 Mar 2008 18:04:59 +0000 (14:04 -0400)]
* Detect invalid pagespecs and do not merge them in add_depends,
as that can result in a broken merged pagespec that matches nothing.
Joey Hess [Mon, 17 Mar 2008 17:27:43 +0000 (13:27 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 17:21:41 +0000 (13:21 -0400)]
analysis, markdown bug
Joey Hess [Mon, 17 Mar 2008 17:08:16 +0000 (13:08 -0400)]
* Correct bug in encoding of %pagestate keys, fixes edittemplate.
Joey Hess [Mon, 17 Mar 2008 16:31:59 +0000 (12:31 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 16:31:02 +0000 (12:31 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 16:22:38 +0000 (12:22 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 16:15:25 +0000 (12:15 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 16:13:36 +0000 (12:13 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 16:09:04 +0000 (12:09 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 16:03:06 +0000 (12:03 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 15:25:18 +0000 (11:25 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 15:04:56 +0000 (11:04 -0400)]
web commit by http://madduck.net/: fix links
Joey Hess [Mon, 17 Mar 2008 15:03:04 +0000 (11:03 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 14:50:50 +0000 (10:50 -0400)]
web commit by http://madduck.net/: use new directive syntax
Joey Hess [Mon, 17 Mar 2008 14:28:06 +0000 (10:28 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 11:03:20 +0000 (07:03 -0400)]
web commit by http://madduck.net/: fix title
Joey Hess [Mon, 17 Mar 2008 10:53:25 +0000 (06:53 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 07:51:55 +0000 (03:51 -0400)]
web commit by http://madduck.net/
Joey Hess [Mon, 17 Mar 2008 00:48:29 +0000 (20:48 -0400)]
web commit by http://jblevins.org/: A note about a related bug
Joey Hess [Mon, 17 Mar 2008 00:38:00 +0000 (20:38 -0400)]
web commit by http://jblevins.org/: Update: unclosed redirection meta tags
Joey Hess [Sun, 16 Mar 2008 16:27:58 +0000 (12:27 -0400)]
web commit by http://jblevins.org/: New bug report
Joey Hess [Sun, 16 Mar 2008 11:00:57 +0000 (07:00 -0400)]
web commit by http://madduck.net/: add patch
Joey Hess [Sat, 15 Mar 2008 19:42:52 +0000 (15:42 -0400)]
rename register_hook to just hook, for consistency with the perl
Joey Hess [Sat, 15 Mar 2008 19:40:10 +0000 (15:40 -0400)]
does not need to be executable
Joey Hess [Sat, 15 Mar 2008 18:19:49 +0000 (14:19 -0400)]
* external: Add getargv and setargv methods to allow access to ikiwiki's
@ARGV.
Joey Hess [Sat, 15 Mar 2008 17:58:08 +0000 (13:58 -0400)]
* htmltidy: Pass --markup yes, in case tidy's config file disabled it.
Joey Hess [Sat, 15 Mar 2008 17:49:22 +0000 (13:49 -0400)]
* external: Fix support of XML::RPC::fault.
Joey Hess [Sat, 15 Mar 2008 17:45:10 +0000 (13:45 -0400)]
bug I found in the rst plugin
Joey Hess [Sat, 15 Mar 2008 17:37:40 +0000 (13:37 -0400)]
pass -libdir so external plugins can be used
Joey Hess [Sat, 15 Mar 2008 17:22:29 +0000 (13:22 -0400)]
update
Joey Hess [Sat, 15 Mar 2008 17:22:22 +0000 (13:22 -0400)]
mention proxy.py
Joey Hess [Sat, 15 Mar 2008 17:20:52 +0000 (13:20 -0400)]
update