[pmwiki-users] Subject: Using pmwikiedit in PmWiki V2

Ben Wilson dausha at gmail.com
Wed Feb 1 18:17:19 CST 2006


I would think a version in Perl and PHP would be fine. I have the old
Pmwe for v1, and never got around to getting it to work with v2--too
busy. I was thinking of a Python version, actually. :)

Ben

On 2/1/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Wed, Feb 01, 2006 at 11:56:23AM -0600, Ben Wilson wrote:
> > > From: Ian Barton <lists at manor-farm.org>
> > >
> > > I want to be able to use the code from pmwikiedit by Scott Duff to
> > > develop something that lets me append posts to a page via email.
>
> I have an updated version of pmwikiedit that works with v2, I'll
> see about posting it.  However, I'm wondering if it would be better
> (more consistent) if we had a version written in PHP instead of Perl...?
>
> > > my $req = POST $wikiurl, [
> > >     action      => 'post',
> > >     pagename    => $wikipage,
> > >     text                => $text,
> > > ];
> > >
> > > I think this was originally developed for V1 and I assume the post
> > > action doesn't work with V2. What's the preferred way of posting text to
> > > a page via a url in V2.
> >
> > Umm, I think there is a "'post' => 1," needed to post as well. You
> > also need "action => 'edit'" instead of action => post..
>
> In v2, the result must be 'action=edit' and 'post=1' (or at least
> some value that PHP considers as 'true').
>
> Also note that pmwikiedit doesn't do any simultaneous edit checking;
> whatever is submitted is posted, period.
>
> Pm
>


--
Ben Wilson
" Mundus vult decipi, ergo decipiatur"




More information about the pmwiki-users mailing list