From dom@earth.li Wed Jun 9 00:41:49 2004 From: Dominic Hargreaves To: openguides-dev@lists.openguides.org Subject: [OpenGuides-Dev] GeoCache.pm Date: Wed, 09 Jun 2004 00:41:45 +0100 Message-ID: <20040608234144.GF11946@tirian.magd.ox.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7467562064846060313==" --===============7467562064846060313== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Earle, I saw on the dev wiki that you want to move it. But why does it need to exist at all? It can be done entirely within the templates: [% IF latitude AND longitude %] Look for nearby geocaches [% END %] Cheers, Dominic. --===============7467562064846060313==-- From openguides@downlode.org Wed Jun 9 08:49:10 2004 From: Earle Martin To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] GeoCache.pm Date: Wed, 09 Jun 2004 08:49:10 +0100 Message-ID: <20040609074910.GF3841@mythix.realprogrammers.com> In-Reply-To: <20040608234144.GF11946@tirian.magd.ox.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5138308674460173669==" --===============5138308674460173669== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed, Jun 09, 2004 at 12:41:45AM +0100, Dominic Hargreaves wrote: > But why does it need to exist at all? It can be done entirely within > the templates: *blink* Good question! You're completely right; I have no idea why it exists as a plugin. Presumably as the result of some conversation or other around the time of the first hackfest. I'll patch the templates when I have a moment today, and when the next version's been released I'll deprecate the module. -- Earle Martin hex on irc.perl.org http://purl.oclc.org/net/earlemartin/ --===============5138308674460173669==-- From kake@earth.li Wed Jun 9 12:01:33 2004 From: Kate L Pugh To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] GeoCache.pm Date: Wed, 09 Jun 2004 12:01:43 +0100 Message-ID: <20040609110143.GA19251@the.earth.li> In-Reply-To: <20040609074910.GF3841@mythix.realprogrammers.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0482051848257501015==" --===============0482051848257501015== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed 09 Jun 2004, Earle Martin wrote: > *blink* Good question! You're completely right; I have no idea why it > exists as a plugin. I think you were planning to change it so it only needed the name of a node and it would go and find out the latitude and longitude by itself; the usefulness of having it as a module was in case the URL of the geocaching thingy changed. But yes, reducing our prerequisites is a good thing. I have also been thinking about changing the RSS reader plugin to optional - it's certainly a nice thing, but it's not essential to getting a guide up and running. Perhaps Test::MockObject should be optional too and we can just skip the tests that need it if it's not installed. Kake --===============0482051848257501015==-- From dom@earth.li Wed Jun 9 12:10:34 2004 From: Dominic Hargreaves To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] GeoCache.pm Date: Wed, 09 Jun 2004 12:10:40 +0100 Message-ID: <20040609111040.GI11946@tirian.magd.ox.ac.uk> In-Reply-To: <20040609110143.GA19251@the.earth.li> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1848686172050975450==" --===============1848686172050975450== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 09, 2004 at 12:01:43PM +0100, Kate L Pugh wrote: > I think you were planning to change it so it only needed the name of a > node and it would go and find out the latitude and longitude by > itself; the usefulness of having it as a module was in case the URL of > the geocaching thingy changed. What would be even better would be a configuration variable, for some future version: geocaching_link =3D http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=3D[% =20 latitude %]&origin_long=3D[% longitude %] and by extension mapping_link =3D http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x%]&= amp;[% os_y %]&arrow=3Dyes Or, I suppose, to split those out into tiny .tt files of their own. Hmm. Dominic. --===============1848686172050975450==-- From kake@earth.li Wed Jun 9 12:35:45 2004 From: Kate L Pugh To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] GeoCache.pm Date: Wed, 09 Jun 2004 12:35:55 +0100 Message-ID: <20040609113555.GB24824@the.earth.li> In-Reply-To: <20040609111040.GI11946@tirian.magd.ox.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5095760582705997654==" --===============5095760582705997654== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed 09 Jun 2004, Dominic Hargreaves wrote: > What would be even better would be a configuration variable, for some > future version: > > geocaching_link = > http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=[% > latitude %]&origin_long=[% longitude %] I think this is better set centrally - after all, if the URL *does* change then it's easier for us to just make the change in the distro than for everyone to have to edit their config files. Kake --===============5095760582705997654==-- From dom@earth.li Wed Jun 9 12:47:48 2004 From: Dominic Hargreaves To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] GeoCache.pm Date: Wed, 09 Jun 2004 12:47:56 +0100 Message-ID: <20040609114756.GJ11946@tirian.magd.ox.ac.uk> In-Reply-To: <20040609113555.GB24824@the.earth.li> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9014619072212326649==" --===============9014619072212326649== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed, Jun 09, 2004 at 12:35:55PM +0100, Kate L Pugh wrote: > On Wed 09 Jun 2004, Dominic Hargreaves wrote: > > What would be even better would be a configuration variable, for some > > future version: > > > > geocaching_link = > > http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=[% > > latitude %]&origin_long=[% longitude %] > > I think this is better set centrally - after all, if the URL *does* > change then it's easier for us to just make the change in the distro > than for everyone to have to edit their config files. For geocaching where this is a well-defined thing, yes. However for mapping it seems to be a lot more down to personal preference and location. I'd like to add the automapping URLs to CVS, but it doesn't seem worth hardcoding streetmap in that case. Dominic. --===============9014619072212326649==-- From yo@martinferrari.com.ar Wed Jun 9 19:04:43 2004 From: =?utf-8?q?Mart=C3=ADn?= Ferrari To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] GeoCache.pm Date: Wed, 09 Jun 2004 15:03:56 -0300 Message-ID: <1086804236.14159.108.camel@astor.decidir.net> In-Reply-To: <20040609113555.GB24824@the.earth.li> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2131016880163799630==" --===============2131016880163799630== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed, 2004-06-09 at 08:35, Kate L Pugh wrote: > > geocaching_link = > > http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=[% > > latitude %]&origin_long=[% longitude %] > > I think this is better set centrally - after all, if the URL *does* > change then it's easier for us to just make the change in the distro > than for everyone to have to edit their config files. IMHO, there is not a good idea to have any URI hardcoded, when you can always have it in the config files or the templates --===============2131016880163799630==-- From dom@earth.li Tue Oct 12 00:02:12 2004 From: Dominic Hargreaves To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] GeoCache.pm Date: Tue, 12 Oct 2004 00:02:24 +0100 Message-ID: <20041011230224.GT15895@tirian.magd.ox.ac.uk> In-Reply-To: <20040609074910.GF3841@mythix.realprogrammers.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5277639304353285337==" --===============5277639304353285337== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed, Jun 09, 2004 at 08:49:10AM +0100, Earle Martin wrote: > On Wed, Jun 09, 2004 at 12:41:45AM +0100, Dominic Hargreaves wrote: > > But why does it need to exist at all? It can be done entirely within > > the templates: > > *blink* Good question! You're completely right; I have no idea why it > exists as a plugin. Presumably as the result of some conversation or other > around the time of the first hackfest. I'll patch the templates when I have > a moment today, and when the next version's been released I'll deprecate the > module. Hello, I notice that this has not yet happened. Do you plan to do this soon? I'd quite like to resolve this before starting the process of getting my Debian packages into Debian, to avoid unnecessary cruft. Cheers, Dominic. --===============5277639304353285337==-- From openguides@downlode.org Tue Oct 12 01:42:37 2004 From: Earle Martin To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] GeoCache.pm Date: Tue, 12 Oct 2004 01:42:37 +0100 Message-ID: <20041012004237.GM8717@mythix.realprogrammers.com> In-Reply-To: <20041011230224.GT15895@tirian.magd.ox.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2356022922699537453==" --===============2356022922699537453== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Tue, Oct 12, 2004 at 12:02:24AM +0100, Dominic Hargreaves wrote: > > [ replace GeoCache.pm with template code ] > > I notice that this has not yet happened. Do you plan to do this soon? I've just done it, so it'll be in 0.42. I'm going to release a new version of GeoCache.pm with a big "DEPRECATED, upgrade to OpenGuides 0.42 or better" (although it'll still work) as soon as I can find someone who can fiddle with cvs on un - I'm getting cvs update: failed to obtain dir lock in repository /var/lib/cvs/cgi-wiki-plugin-geocache'. Anyway, your changes are committed (you can see them in action on my flaky dev wiki at http://un.earth.li/~earle/cgi-bin/wiki.cgi?Test_Node_2). -- Earle Martin http://downlode.org/ http://purl.oclc.org/net/earlemartin/ --===============2356022922699537453==--