Forum OpenACS Development: Filesystem/HTTP Get objects as datasources

I'm hacking around with gatekeeper to wrap some legacy cgis with oacs auth, and that is coming along well. What I need to do next is to use lines of text from a file or an HTTP GET as a datasource for the multiple or list adp tags.

Does anyone have an example of that they can point out?

Thanks!

Collapse
Posted by Dave Bauer on
something like this?

Once you have the data in a variable something like this would work:

template::multirow create data element
foreach line [split $html \n] {
template::multirow append data $line
# or
# lappend data $line
}

Collapse
Posted by Sam Nicholson on
Thanks. I'll give that a go.
Collapse
Posted by Sam Nicholson on
Works fine. Your hint reminded me of https://openacs.org/doc/acs-templating/demo/

Thanks again!