Archive of UserLand's first discussion group, started October 5, 1998.
XML-RPC GlossServer
Author: Steve Ivy Posted: 1/26/1999; 6:40:38 AM Topic: XML-RPC GlossServer Msg #: 2473 Prev/Next: 2472 / 2474
Wow. I love Frontier.As part of a continuing attempt to understand the xml-rpc machanism, I sat down this morning and (in about 30 minutes) wrote a *very* simple glossary server. At the moment it takes two parameters: "entry", which is the quoted text you'd normally put into an html page, and "site" which is the glossary you want to check in. The "site" functionality only works right now for websites.[site].["#glossary"] entries. I've got more digging to do to figure out how to offer access to glossaries in GDBs, in subsites, etc. Any Frontier glossary guru who wants can pitch in and fix this code up, and I thought I'd toss it out there. I wrote this as part of a desire to see something like it on the Discussion Group, so one can test for an entry in the DG. If this returns without an error when hitting the DG glossary, then there's a message with a title which matches the "entry" param.
As I'm stuck behind a firewall, I don't have a server to run this on as a test, but it works OMM.
It's also a little piece of the larger "let's hook up content tools to xml-rpc" picture. Have fun!
--Steve
on glossServer (entry,site="all") { «Tue, Jan 26, 1999 at 9:31:33 AM by RSI local { glossary; returntext}; on add(s) { returntext = returntext + s}; if site != "all" { glossary = @websites.[site].["#glossary"]} else { «loop over "websites", adding each #glossary to glossaryList «this does nada yet. return}; if defined (glossary^.[entry]) { if typeOf(glossary^.[entry]) == tableType { add("" + glossary^.[entry].linetext); add(""); return (returntext)}; else { return glossary^.[entry]}}}(x-posted to SM/DG)
This page was archived on 6/13/2001; 4:47:35 PM.
© Copyright 1998-2001 UserLand Software, Inc.