]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* The hack used to make the pagetemplate hook have access to the editpage
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 2 Dec 2006 00:19:55 +0000 (00:19 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 2 Dec 2006 00:19:55 +0000 (00:19 +0000)
  template won't work with CGI::FormBuilder 3.0401, so disable it for now.
* CGI::FormBuilder 3.0401 seems to work ok now with ikiwiki, although
  there might still be bugs lurking..

IkiWiki/CGI.pm
debian/changelog
doc/bugs/Problems_using_cygwin.mdwn
doc/bugs/formbuilder_3.0401_broken.mdwn
doc/install.mdwn

index 3e324ae1cbdcc834e467b131114006d17a07ed44..d00de740a1c11554b890009c887fcbd3b7719cac 100644 (file)
@@ -274,15 +274,8 @@ sub cgi_editpage ($$) { #{{{
        my @fields=qw(do rcsinfo subpage from page type editcontent comments);
        my @buttons=("Save Page", "Preview", "Cancel");
        
        my @fields=qw(do rcsinfo subpage from page type editcontent comments);
        my @buttons=("Save Page", "Preview", "Cancel");
        
-       eval q{use CGI::FormBuilder; use CGI::FormBuilder::Template::HTML};
+       eval q{use CGI::FormBuilder};
        error($@) if $@;
        error($@) if $@;
-       my $renderer=CGI::FormBuilder::Template::HTML->new(
-               fields => \@fields,
-               template_params("editpage.tmpl"),
-       );
-       run_hooks(pagetemplate => sub {
-               shift->(page => "", destpage => "", template => $renderer->engine);
-       });
        my $form = CGI::FormBuilder->new(
                fields => \@fields,
                header => 1,
        my $form = CGI::FormBuilder->new(
                fields => \@fields,
                header => 1,
@@ -296,7 +289,8 @@ sub cgi_editpage ($$) { #{{{
                params => $q,
                action => $config{cgiurl},
                table => 0,
                params => $q,
                action => $config{cgiurl},
                table => 0,
-               template => $renderer,
+               template => (-e "$config{templatedir}/editpage.tmpl" ?
+                               {template_params("editpage.tmpl")} : ""),
        );
        
        run_hooks(formbuilder_setup => sub {
        );
        
        run_hooks(formbuilder_setup => sub {
index 0bae7aae9c578ddaeb08e1b4beb01dfe53555794..2a1e9e219ed8ebfda8e75252669ebf474a4f9483 100644 (file)
@@ -2,8 +2,12 @@ ikiwiki (1.34.3) UNRELEASED; urgency=low
 
   * Fix daemonisation code to only do daemon setup things after forking the
     child process.
 
   * Fix daemonisation code to only do daemon setup things after forking the
     child process.
+  * The hack used to make the pagetemplate hook have access to the editpage
+    template won't work with CGI::FormBuilder 3.0401, so disable it for now.
+  * CGI::FormBuilder 3.0401 seems to work ok now with ikiwiki, although
+    there might still be bugs lurking..
 
 
- -- Joey Hess <joeyh@debian.org>  Fri,  1 Dec 2006 19:11:32 -0500
+ -- Joey Hess <joeyh@debian.org>  Fri,  1 Dec 2006 19:14:36 -0500
 
 ikiwiki (1.34.2) unstable; urgency=low
 
 
 ikiwiki (1.34.2) unstable; urgency=low
 
index 66cd3f105388c18cefdd2a3d52c60e7885f20d7a..9a49e25872e9647722da9aae989c8d523aef557d 100644 (file)
@@ -15,3 +15,6 @@ A different problem has reared its ugly head.  When I click on "RecentChanges",
 Indeed there is no such routine IkiWiki::XMLin().  I don't understand how this can possibly work -- as it manifestly does on linux.
 
 > XMLin is supposed to be exported by XML::Simple. My guess is that, due to a missing error check, XML::Simple is failing to load, and it's not aborting then. You probably need to install that module; in the meantime, I've fixed the missing error check in svn. --[[Joey]]
 Indeed there is no such routine IkiWiki::XMLin().  I don't understand how this can possibly work -- as it manifestly does on linux.
 
 > XMLin is supposed to be exported by XML::Simple. My guess is that, due to a missing error check, XML::Simple is failing to load, and it's not aborting then. You probably need to install that module; in the meantime, I've fixed the missing error check in svn. --[[Joey]]
+
+
+[[bugs/done]]
index 8e5126bf64df5658904903038dcf5481f9a85f66..7e1df24e05f05edaec563063cf1677e7d988cd9d 100644 (file)
@@ -67,3 +67,7 @@ Nasty, but it should work. I haven't fully installed the new version of
 CGI::FormBuilder to test it, and it's quite possible that other changes
 in the new version cause other breakage. If you want to test the fix,
 it's in svn now. --[[Joey]]
 CGI::FormBuilder to test it, and it's quite possible that other changes
 in the new version cause other breakage. If you want to test the fix,
 it's in svn now. --[[Joey]]
+
+Now that the new version of formbuilder is in debian unstable, I'm using
+ikiwiki with it, and, after fixing a bug or two more, I think it's all
+working, so I'll call this bug [[bugs/done]]. --[[Joey]]
index ed6d499c5d65945254d9745807c67662ad2ed26b..38db233568bd8de9bee9bd9995ae2bf53ce8cc33 100644 (file)
@@ -8,8 +8,7 @@ Ikiwiki is a perl program, and needs a recent version of perl such as
 Ikiwiki requires the [[cpan Text::MarkDown]], [[cpan URI]] and
 [[cpan HTML::Parser]] perl modules be installed, and also uses the
 following perl modules if available: 
 Ikiwiki requires the [[cpan Text::MarkDown]], [[cpan URI]] and
 [[cpan HTML::Parser]] perl modules be installed, and also uses the
 following perl modules if available: 
-[[cpan CGI::Session]], [[cpan CGI::FormBuilder]] (version 3.02.02 or newer,
-but 3.0401 might be broken),
+[[cpan CGI::Session]], [[cpan CGI::FormBuilder]] (version 3.02.02 or newer),
 [[cpan HTML::Template]], [[cpan Mail::Sendmail]], [[cpan Time::Duration]]
 [[cpan TimeDate]], [[cpan HTML::Scrubber]], [[cpan RPC::XML]],
 [[cpan XML::Simple]], [[cpan XML::Feed]], [[cpan File::MimeInfo]].
 [[cpan HTML::Template]], [[cpan Mail::Sendmail]], [[cpan Time::Duration]]
 [[cpan TimeDate]], [[cpan HTML::Scrubber]], [[cpan RPC::XML]],
 [[cpan XML::Simple]], [[cpan XML::Feed]], [[cpan File::MimeInfo]].