[PATCH 1/2] Add boardgame collections
Steve Beattie
sbeattie at suse.de
Wed Oct 4 01:22:51 MDT 2006
On Tue, Oct 03, 2006 at 09:31:00PM -0700, Robby Stephenson wrote:
> On Tuesday 03 October 2006 16:22, Steve Beattie wrote:
> > Eventually, I'd like the fetcher update mechanism to key off of
> > the bggid to grab its update, which it could get from the URL, though
> > the xmlapi URL would be different.
>
> If I read your patch correctly, just in a quick first glance, I think you
> can probably use the bggid without any additional changes, to update the
> entries.
>
> Make the script accept the bggid on the command line, maybe with a --id flag
> or something. Then use %{bggid} in the update args in the source
> configuration. I guess the script would need to be able to distinguish a
> title update from an id update some how though, maybe just checking to see
> if either one is empty, and then using the other.
Maybe I'm not understanding what you wrote about distinguishing title
updates from bggid updates (the bggid should never change), but adding
queries by bggid to the script should be pretty easy, and storing
that value instead of the URL is definitely preferred from a scripting
perspective. My question was more in terms of what would be more useful to
the user in terms of representation; it's nice to be able to just click
on the amazon link for items that were sourced from there. If necessary,
the script could easily transform a user-oriented URL into one for the
xmlapi interface.
(I also wasn't sure whether only a specific set of keywords was allowed
in the update args configuration, or if any of the xml tags would be
substituted...)
> > I don't have a nifty icon to use to represent boardgames and my graphics
> > skills are pretty weak, so assistance there would be appreciated.
> > This patch was made mostly via monkey-see-monkey-do programming;
> > improvements and suggestions welcome.
>
> Very thorough, even including DTD updates. Nicely done!
Well, like I said, monkey-see-monkey-do programming. Using video games
as an inspiration and doing 'grep -r game src' got me a lot of of the
way there on figuring out what to do.
And the DTD stuff could definitely use review; I edited it by hand and
did no real validation (that I know of). My knowledge of xml is pretty
limited.
> It's nice that boardgamegeek has such an API.
It is. It's also very nice that there's a very nice tool to easily extend
to take advantage of it - tellico. I was delayed in writing my code by
an obsessive-compulsive desire to catalog my stuff because tellico made
it so easy to enter "just one more". Thank you, Robby and everyone who
has made tellico into such a neat tool.
--
Steve Beattie
SUSE Labs, Novell Inc.
<sbeattie at suse.de>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://forge.novell.com/pipermail/tellico-users/attachments/20061004/cae6eafd/attachment.pgp
More information about the tellico-users
mailing list