Commit Graph

13411 Commits (ddecdbe85402e71ac5a07a46e301cc6ab512eeed)

Author SHA1 Message Date
intrigeri dcd57dd5c9 Add a fullpage arg to filter.
Set it to true every time IkiWiki::filter is called on a full page's content.

This is a much nicer solution, for the po plugin, than previous whitelisting
using caller().
2010-06-29 15:17:56 +02:00
Joey Hess be60d261e6 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-06-27 13:50:02 -04:00
Joey Hess bb5193fde1 hnb: Fixed broken use of mkstemp that had caused dangling temp files, and prevented actually rendering hnb files. 2010-06-27 13:49:51 -04:00
https://www.google.com/accounts/o8/id?id=AItOawk3fIimitIcXPaVA5AHUW67Z9GVc-2wQJU 6e68a48b63 2010-06-27 17:22:41 +00:00
https://www.google.com/accounts/o8/id?id=AItOawk3fIimitIcXPaVA5AHUW67Z9GVc-2wQJU 72ee9c720f 2010-06-27 17:21:45 +00:00
https://mukund.startssl.com/ 52ad4a2876 Add my website 2010-06-26 22:13:33 +00:00
intrigeri 2c1c6ea488 Feature request, patch provided. 2010-06-27 00:12:57 +02:00
https://www.google.com/accounts/o8/id?id=AItOawnbe6oB_ecFtNYII1JN3zSggwUPUdOb8jI a39c6b6eac Add Microdata suggestion 2010-06-26 22:12:24 +00:00
https://www.google.com/accounts/o8/id?id=AItOawlcaGfdn9Kye1Gc8aGb67PDVQW4mKbQD7E 430a230813 another reason to use NetBSD's commit_prep and log_accum for CVS 2010-06-26 20:14:50 +00:00
https://www.google.com/accounts/o8/id?id=AItOawlcaGfdn9Kye1Gc8aGb67PDVQW4mKbQD7E e6bba3b3b5 s/the the/the/ 2010-06-26 18:13:08 +00:00
intrigeri 7e3672945f another po4a patch has been sent. 2010-06-26 16:28:06 +02:00
intrigeri 9b171de6db yet another bug on good way to be fixed 2010-06-26 16:28:06 +02:00
intrigeri e84287ec98 need more info to reproduce 2010-06-26 16:28:06 +02:00
intrigeri 9b66a0cf0a done in my branch, please review. 2010-06-26 16:28:05 +02:00
https://www.google.com/accounts/o8/id?id=AItOawlcaGfdn9Kye1Gc8aGb67PDVQW4mKbQD7E c27ed8737d windauth plugin exists (iPhone edit) 2010-06-26 01:48:53 +00:00
intrigeri 4f44534d72 po: s/utf-8/UTF-8, to solve part of the double commit bug. 2010-06-26 01:16:56 +02:00
intrigeri 924f559e50 typo fix. 2010-06-26 00:59:20 +02:00
intrigeri 4cf185e781 po_slave_languages can now be a hash, if order matters. 2010-06-26 00:56:06 +02:00
intrigeri a128c256a5 po: added support for html pagetype
... after having audited the po4a Xml and Xhtml modules for security issues.

Signed-off-by: intrigeri <intrigeri@boum.org>
2010-06-25 23:18:57 +02:00
Joey Hess 7399f56607 auto changelog merging 2010-06-25 13:43:02 -04:00
intrigeri 8f266d4d43 another bugreport with patch 2010-06-25 19:33:04 +02:00
intrigeri 47d1b3eac5 new bug report, patch provided 2010-06-25 19:32:29 +02:00
intrigeri 903a71c1b9 TODO++ 2010-06-25 17:45:08 +02:00
intrigeri d4136aea8a po: also filter sidebar translation pages 2010-06-25 17:43:25 +02:00
intrigeri d877b9644b po: fix bug with translated pages including templates
The protection against processing loops (i.e. the alreadyfiltered stuff) was
playing against us: the template plugin triggered a filter hooks run with the
very same ($page, $destpage) arguments pair that we use to identify a already
filtered page. Processing an included template could then mark the whole
translation page as already filtered, which prevented po_to_markup to be called
on the PO content.

This commit only runs the whole PO filter logic when our filter hook is run by
IkiWiki::render, which only happens when the full page needs to be filtered.
2010-06-25 17:14:13 +02:00
intrigeri 9f401d6617 Merge remote branch 'upstream/master' into prv/po
Conflicts:
	IkiWiki/Plugin/po.pm
2010-06-25 14:38:37 +02:00
Joey Hess 1f6ea9a626 clean up messages about unavailable vcs programs 2010-06-25 00:30:12 -04:00
http://kerravonsen.dreamwidth.org/ 71950b2ae5 sidebars defined by pagespec perhaps? 2010-06-25 02:40:25 +00:00
http://kerravonsen.dreamwidth.org/ 11899a031c commenting on the link-text-from-title idea 2010-06-25 01:58:02 +00:00
Joey Hess d8d057c356 chdir to srcdir in rcs_getctime 2010-06-23 21:29:47 -04:00
https://www.google.com/accounts/o8/id?id=AItOawm0mAKbBvoYTeRz4lDv83cTfXsAns5CmDQ cf5b767777 test from google openid 2010-06-24 00:45:59 +00:00
Joey Hess bd7221ae54 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-06-23 20:30:47 -04:00
Joey Hess 38bf2f6388 bugfix 2010-06-23 20:26:09 -04:00
Joey Hess 9a2c56b748 openid nickname support finished; closing 2010-06-23 20:21:54 -04:00
Joey Hess f008caf440 update 2010-06-23 20:16:55 -04:00
Joey Hess 9a32451986 finializing openid nickname support
Renamed usershort => nickname.

Note that this means existing user login sessions will not have the nickname
recorded, and so it won't be used for those.
2010-06-23 20:16:01 -04:00
Joey Hess a4f381ace8 git: Record the username from openid in the git author email. (This avoids display of ugly google openids.) 2010-06-23 19:44:41 -04:00
Joey Hess b38b9327a8 take username from email address as fallback 2010-06-23 19:36:23 -04:00
Joey Hess d8e4b51a41 rcs_getctime and rcs_getmtime take relative filenames
There was some confusion about whether the filename was
relative to srcdir or not. Some test cases, and the bzr
plugin assumed it was relative to the srcdir. Most everything else
assumed it was absolute.

Changed it to relative, for consistency with the rest
of the rcs_ functions.
2010-06-23 19:32:53 -04:00
Joey Hess ecdfd1b864 rcs_commit and rcs_commit_staged api changes
Using named parameters for these is overdue. Passing the session in a
parameter instead of passing username and IP separately will later allow
storing other session info, like username or part of the email.

Note that these functions are not part of the exported API,
and the prototype change will catch (most) skew, so I am not changing
API versions. Any third-party plugins that call them will need updated
though.
2010-06-23 19:04:36 -04:00
Joey Hess caf7bcdda3 update for new rcs_commit_staged API
In the process, lost the commits from special usernames
when committing changed po files. Instead of trying to dummy up a session
object for the special username, I just don't pass one, and the commit will
appear to be from whatever user ikiwiki runs as.
2010-06-23 16:56:50 -04:00
Joey Hess 4292802ee5 stop using REMOTE_ADDR
Everywhere that REMOTE_ADDR was used, a session object is available, so
instead use its remote_addr method.

In IkiWiki::Receive, stop setting a dummy REMOTE_ADDR.

Note that it's possible for a session cookie to be obtained using one IP
address, and then used from another IP. In this case, the first IP will now
be used. I think that should be ok.
2010-06-23 16:35:51 -04:00
Joey Hess b4a43406f6 API: rcs_commit and rcs_commit_staged are passed a new parameter
that may contain the username component of the email address of
the user making the commit.
2010-06-23 16:05:49 -04:00
Joey Hess c46bcb425a Add new optional field usershort to rcs_recentchanges.
Now the git plugin supports commits with author fields that look like:
Author: http://my.openid/ <me@web>

Then in recentchanges, the short username will be displayed, linking
to the openid.

Particularly useful for the horrible google openids, of course.
2010-06-23 15:54:52 -04:00
Joey Hess 0580cbbf40 whitespace 2010-06-23 15:23:13 -04:00
BerndZeimetz e32bce4643 It is possible to use google-sitemapgen to create google sitemaps for ikiwiki. 2010-06-23 18:44:52 +00:00
Joey Hess 609367933f add news item for ikiwiki 3.20100623 2010-06-23 14:23:51 -04:00
Joey Hess d5c680e693 releasing version 3.20100623 2010-06-23 14:23:09 -04:00
Joey Hess 82789e39aa bugfix: record email-like links as page links
This way, an email-like link will be a mailto until a matching page
is created, then it will link to the page. And removing the page will
convert it back to a mailto.
2010-06-23 14:05:57 -04:00
Joey Hess 6e67219eff simplify anchor handling
At least two bugfixes in here. First, an old bug;
\[[foo#0]] was displayed as [[foo]], losing the anchor
as the anchor text was false. Secondly, a new bug;
an email like foo#bar@baz should not check bestlink("foo@baz").
2010-06-23 13:57:27 -04:00