summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/rename.pm
AgeCommit message (Collapse)Author
2010-08-30saner return codes for check_can{remove,rename}Joey Hess
These return codes are not currently used, but might be later.
2010-06-23rcs_commit and rcs_commit_staged api changesJoey Hess
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-23stop using REMOTE_ADDRJoey Hess
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-05-14remove, rename: Add guards against XSRF attacks.Joey Hess
2010-05-06simplify formbuilder stylesheet specificationJoey Hess
Since all forms are wrapped in a template that defines the actual stylesheets, formbuilder just has to be told to turn on stylesheet mode, not what file is the style sheet.
2010-04-17unfinished file_prune revampJoey Hess
Many calls to file_prune were incorrectly calling it with 2 parameters. In cases where the filename being checked is relative to the srcdir, that is not needed. Made absolute filenames be pruned. (This won't work for the 2 parameter call style.)
2010-03-26fix the other half of the filecheck filename bugJoey Hess
2010-02-12add section informationJoey Hess
2009-12-14rename: Fix some utf-8 problems.Joey Hess
The crux of the problem is that the cgi object has raw values not converted to utf-8, and rename was using its fields. Also fixed a missed place where the form object did not get its fields utf-8 encoded.
2009-07-20remove prototype from renamehookJoey Hess
Recursive calls make perl whine about protypes, and it wasn't adding any value.
2009-06-06Merge commit 'upstream/master' into pub/pointrigeri
Conflicts: debian/changelog debian/control Signed-off-by: intrigeri <intrigeri@boum.org>
2009-05-21support longname for page types in commands and renameJoey Hess
Also, sort the list of page types.
2009-03-27no need to use CORE::rename since I renamed the rename functionJoey Hess
2009-03-27rename function for clarity, formatting improvementsJoey Hess
2009-03-27simplifiyJoey Hess
2009-03-27move dedup code into function, simplifyJoey Hess
2009-03-08rename: remove duplicates that hook functions may have added to @torenameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08rename: moved subpages addition to a rename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08rename hook: run once per file to be renamedintrigeri
... as Joey suggested on todo/need_global_renamepage_hook This hook is applied recursively to returned additional rename hashes, so that it handles the case where two plugins use the hook: plugin A would see when plugin B adds a new file to be renamed. The full set of rename hashes can no longer be changed by hook functions, that are only allowed to return any additional rename hashes it wants to add. Rationale: the correct behavior of the recursion would be hard, if not impossible, to define, if already considered pages were changing on the run. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-27rename hook: instead of modifying the passed-by-name array, return a copyintrigeri
This is intended to solve Joey's concerns expressed on http://ikiwiki.info/todo/need_global_renamepage_hook/, i.e. the need to make it possible to use this hook from external plugins. A plugin using this hook still can add/modify/remove elements of the @torename array. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-27revert renamepage's hook original nameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26only pass named parameters to the canrename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26add mising hooks and fix syntax errorJoey Hess
2009-01-13Merge commit 'upstream/master' into prv/pointrigeri
2009-01-06rename: Show full names of affected pages.Joey Hess
2009-01-06refactorJoey Hess
2009-01-01Pass src, srcfile, dest and destfile to the canrename hook.intrigeri
This is not needed by the use I'm doing of it, but seems more consistent to me. Future users of this hook may need this data to make their mind. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01rename: pass the CGI and session to the rename hookintrigeri
The po plugin remame + canrename hook combination will need this. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01rename: implemented new canrename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01Merge commit 'upstream/master' into prv/pointrigeri
2008-12-30the rename hook can now change the list of pages to renameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30renamed the renamepage hook to renamelink, added rename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-23finalise version 3.00 of the plugin apiJoey Hess
2008-12-17Coding style change: Remove explcit vim folding markers.Joey Hess
2008-12-17rename: Fix double-escaping of page name in edit box.Joey Hess
titlepage normally escapes, but so does formbuilder.
2008-10-02remove, rename: Allow acting on attachments as a page is being created.Joey Hess
2008-10-01fix subpage rename bug with indexpagesJoey Hess
If indexpages is enabled, then foo/index.mdwn will look like a subpage of foo, so an additional check is needed to avoid trying to rename it twice.
2008-09-29use newpagefileJoey Hess
2008-09-29support indexpages when renaming pagesJoey Hess
Note that the page filename code used here and in editpage are identical..
2008-09-27Export pagetitle, titlepage, linkpage.Joey Hess
2008-09-27pagetype is exportedJoey Hess
2008-09-23rename: Hide type field from rename form when renaming attachments.Joey Hess
2008-09-23multiple rename support is workingJoey Hess
most edge cases seem handled too
2008-09-23Merge branch 'master' into tovaJoey Hess
2008-09-23rename, remove: Don't rely on a form parameter to tell whether the page ↵Joey Hess
should be treated as an attachment.
2008-09-23factor out fixlinksJoey Hess
2008-09-23factor out do_renameJoey Hess
2008-09-23add checkbox to rename subpages tooJoey Hess
2008-09-23layoutJoey Hess
2008-08-07use srcfile/destfileJoey Hess
avoids a commit message of "renamed foo to foo"