[Zope] Importing exchange rates
Peter Be
peter@odconsultancy.com
Tue, 18 Jul 2000 10:51:29 +0100
If you don't have too much traffic on your site, you can let the "first user
of the day" be responsible for triggering new values to a db/file using the
ZopeTime function.
Something like this maybe:
IF (SELECT day FROM currencytable == ZopeTime(day)):
SHOW FROM DB
ELSE:
START THE COLLECTORS SCRIPT
AND PUT IN THESE VALUES IN THE DB
----- Original Message -----
From: ethan mindlace fremen <mindlace@digicool.com>
To: Adrian Madrid <adrian@bridgetojapan.com>
Cc: Zope Mailing List <zope@zope.org>
Sent: Tuesday, July 18, 2000 4:06 AM
Subject: Re: [Zope] Importing exchange rates
> Adrian Madrid wrote:
> >
> > I need to obtain the current exchange rates for the yen, mark, etc. with
> > at least once a day, preferrably every other 15". Is there an easy way
> > to do this in Zope?
>
> It depends on where the exchange rates are.
>
> If you get them from a database, you can make zope display the current
> rates.
>
> If you get them from a web page, you can use the client feature of zope
> to go snarf the web page and then extract what you need (hope you have
> permission :)
>
> If some other mechanism can write them to a file, you can suck them up
> with an external method whenever someone asks for it.
>
> hope that helps,
> --
> ethan mindlace fremen
> Zopatista Community Liason
> Abnegate I!
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>