From andrew.mcfarland.lists at aamcf.co.uk Wed Nov 3 13:02:11 2004 From: andrew.mcfarland.lists at aamcf.co.uk (Andrew McFarland) Date: Wed Nov 3 13:03:16 2004 Subject: [Belfast-pm] Kwiki 0.33, MT Version 3.01D, and Plugins Message-ID: <41892B33.30404@aamcf.co.uk> Hello, I'm trying to write a plugin for MT. I have two reasons for this: * I need an MT plugin that lets me use Kwiki formatting, using Kwiki 0.33. Marty has a plugin[1] based on 0.18, which I have used, but because it is based on an old Kwiki it doesn't add closing li tags, which I need. [2] * I want to learn how to write MT plugins, so even if somebody can point me in the direction of SomeoneElsesSolution for the above, I'd still appreciate feedback on this. On www.kwiki.org[4], there is the following one liner for Kwiki-formatting a text file: perl -MKwiki -e 'undef $/; print Kwiki->new->load_hub->load_class(q(formatter))->text_to_html(<>)' kwiki.txt This works on my server, and makes me happy. Mindlessly hacking at Marty's Kwiki plugin, I come up with the attached plugin - which I know could be tidier: I did say my hacking was mindless. If I create an entry in MT and select this plugin to do the formatting I can preview the entry, and everything has worked. No errors are written to the error log. This also makes me happy. However, when I try to save the entry, MT appears to build everything as normal, but it gives me the error message on the screen: Can't locate object method "database_directory" via package "Kwiki::Config" at /usr/local/share/perl/5.8.4/Kwiki/Pages.pm line 128. This makes me sad. Can anyone here tell me what I'm doing wrong? I'll ask on the MT forums if nobody can help[5], I just want to make sure I'm not doing something obviously stupid. Andrew [1] http://www.martian.org/marty/archives/000766.html [2] I need a plugin that will allow me to use Kwiki formatting with well-formed lists (which requires Kwiki 0.33, I think), blockquotes, line breaks, and possibly footnotes. [3] This will require some messing around with Kwiki at some point, but not right now. [3] So I can use MT to maintain pages like http://www.mcfarland.co.uk/andrew/testimony_articles/2004-01-01 and http://www.mcfarland.co.uk/andrew/exhortations/2004-05-16. Both of those pages are religious, so don't follow those links if you are allergic to such things. [4] http://www.kwiki.org/?KwikiFormatterModule [5] Because I'm too much of a gentleman to bug Tony, Marty, and Karen about this at work. -------------- next part -------------- #!/usr/bin/perl # see http://www.kwiki.org/?KwikiFormatterModule # This doesn't work package MT::Kwiki; use Kwiki; $VERSION = 0.02; use strict; use warnings; use MT; # TODO: until we know where the wiki is, don't make a link sub wiki_link_format { $_[1] } MT->add_text_filter( kwiki => { label => 'Andrews Kwiki', on_format => sub {Kwiki->new->load_hub->load_class(q(formatter))->text_to_html($_[0])}, docs => 'none yet', } ); 1; From karen at martian.org Sun Nov 28 12:09:13 2004 From: karen at martian.org (Karen Pauley) Date: Sun Nov 28 12:09:16 2004 Subject: [Belfast-pm] YAPC::Europe Organisers Dinner - Attempt 2 Message-ID: <20041128180913.GD2821@soto.kasei.com> I really would like to have a dinner for the organisers of YAPC::Europe before I forget who they were and what happened at the conference. So, we need to find a date - and now it's getting close to Christmas. I'm going to suggest Monday 6th December. Can the organisers please get in touch and let me know if they can make this date. Once we confirm the date I'll try to find a venue. Thanks, Karen From sky at erupt.com Sun Nov 28 13:30:03 2004 From: sky at erupt.com (Nick Johnston) Date: Sun Nov 28 13:26:52 2004 Subject: [Belfast-pm] YAPC::Europe Organisers Dinner - Attempt 2 In-Reply-To: <20041128180913.GD2821@soto.kasei.com> References: <20041128180913.GD2821@soto.kasei.com> Message-ID: <41AA273B.60001@erupt.com> Hi I was just going to post to the list about this. 6th isn't great for me. 7th would be fine though. It seems that having a full dinner is going to be quite difficult to organise, so my suggestion would be to just have another social meeting like we had in the Apartment before the conference and get about 4 trays of their very Spanish (sarcasm!) tapas. The Apartment seems easy enough for everyone to get to, and everyone seemed to enjoy it the last time. Anyone have any thoughts on this? I know Marty might not be too pleased seeing as apparently they didn't like his shorts, but well.... - Nick Karen Pauley wrote: >I really would like to have a dinner for the organisers of YAPC::Europe >before I forget who they were and what happened at the conference. > >So, we need to find a date - and now it's getting close to Christmas. >I'm going to suggest Monday 6th December. Can the organisers please get >in touch and let me know if they can make this date. Once we confirm >the date I'll try to find a venue. > >Thanks, > >Karen > >_______________________________________________ >Belfast-pm mailing list >Belfast-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/belfast-pm > > > From andrew-belfastpm at rivendale.net Sun Nov 28 18:58:10 2004 From: andrew-belfastpm at rivendale.net (Andrew Wilson) Date: Sun Nov 28 18:58:12 2004 Subject: [Belfast-pm] YAPC::Europe Organisers Dinner - Attempt 2 In-Reply-To: <20041128180913.GD2821@soto.kasei.com> References: <20041128180913.GD2821@soto.kasei.com> Message-ID: <20041129005810.GA30840@rivendale.net> On Sun, Nov 28, 2004 at 06:09:13PM +0000, Karen Pauley wrote: > I really would like to have a dinner for the organisers of YAPC::Europe > before I forget who they were and what happened at the conference. > > So, we need to find a date - and now it's getting close to Christmas. > I'm going to suggest Monday 6th December. Can the organisers please get > in touch and let me know if they can make this date. Once we confirm > the date I'll try to find a venue. Yeah, the sixth works for me. I thought we'd agreed we were going to the ginger tree? andrew -- Leo: (July 23 - Aug. 22) When you're finally given the chance to run the entire circus, you'll be amazed at how quickly it goes bad on you. From ab.gallagher at qub.ac.uk Mon Nov 29 04:29:05 2004 From: ab.gallagher at qub.ac.uk (Andrew Gallagher) Date: Mon Nov 29 04:29:11 2004 Subject: [Belfast-pm] YAPC::Europe Organisers Dinner - Attempt 2 In-Reply-To: <20041128180913.GD2821@soto.kasei.com> References: <20041128180913.GD2821@soto.kasei.com> Message-ID: <20041129102905.GC17711@phoenix.am.qub.ac.uk> On Sun, Nov 28, 2004 at 06:09:13PM +0000, Karen Pauley wrote: > > So, we need to find a date - and now it's getting close to Christmas. > I'm going to suggest Monday 6th December. 6th is good for me. Note that I can't do _any_ Tuesday or Wednesday. -- | Andrew Gallagher | web.andrewg.com | | Computer Support Asst., Dept. of Applied Maths and Theoretical | | Physics, Queen's University of Belfast, BT7 1NN, N. Ireland |