This is the historical archive of the now-inactive 'grubstreet' list.
Discussion on OpenGuides development
has now moved to OpenGuides-Dev.
Discussion on The Open Guide to
London now takes place on OpenGuides-London.
[grubstreet] CGI::Wiki simple metadata support
[prev] [thread] [next] [lurker] [Date index for 2003/2/22]
From: Kate L Pugh
Subject: [grubstreet] CGI::Wiki simple metadata support
Date: 23:11 on 22 Feb 2003
Subject: [grubstreet] CGI::Wiki simple metadata support
Date: 23:11 on 22 Feb 2003
Not yet released. http://the.earth.li/~kake/code/CGI-Wiki-0.20pre01.tar.gz Very simple metadata support along the lines of $wiki->write_node( "Reun Thai", "A restaurant", undef, { postcode => "W6 9PL", category => [ "Thai Food", "Restaurant", "Hammersmith" ] } ); @nodes = $wiki->list_nodes_by_metadata( metadata_type => "category", metadata_value => "Pub" ); Have also been thinking about plugins, something like: use CGI::Wiki; use CGI::Wiki::Plugin::Location; my $locator = CGI::Wiki::Plugin::Location->new; my $wiki = CGI::Wiki->new; $wiki->register_plugin($locator); $wiki->write_node( "Jerusalem Tavern", "A good pub", $checksum, { os_x => 531674, os_y => 181950 } ); # Just retrieve the co-ordinates. my ( $x, $y ) = $locator->coordinates( node => "Jerusalem Tavern" ); # Find the distance between two nodes. my $distance = $locator->distance( from => "Jerusalem Tavern", to => "Calthorpe Arms" ); # Find the nearest five other things that our wiki knows about. my @others = $locator->find_nearest( node => "Jerusalem Tavern", number => 5 ); Also, the UseMod formatter is ready for release as soon as chromatic releases Text::WikiFormat 0.6, which should be soon. Kake -- grubstreet mailing list http://london.openguides.org/old-list-archives/
-
[grubstreet] CGI::Wiki simple metadata support
Kate L Pugh 23:11 on 22 Feb 2003
Not yet released.-
Re: [grubstreet] CGI::Wiki simple metadata support
Kate L Pugh 01:09 on 23 Feb 2003
Forgot to mention that the way the plugins will get hold of this data -
Kate L Pugh
13:57 on 25 Feb 2003
You now want- too deep to show
-
Re: [grubstreet] CGI::Wiki simple metadata support
Kate L Pugh 01:09 on 23 Feb 2003