I have a bunch of really bad Python code sitting around here that tries to do same. I can't even remember how it does it. It's got no docs and isn't even a working Zope product. I doubt it will help much. But I can send it to you if you'd like. Bill Anderson wrote:
Chris McDonough wrote:
Bill, do you mean that you're thinking of enabling the product to serve ads based on visitor "profile" (such as originating IP address, domain, time-of-day, browser, etc)?
Time of day can certainly be done. Shouldn't be that difficult to test by IP, domain and browser, thoigu I admit I hadn't thought of them.
Basically, when called, a banner tests's it's validity agfainst a set of rules, and those banners that pass are put into a list. that list is built using weight, and the weights could be modified at runtime based upon things such as keywords or other tests.
Bill
-- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
_______________________________________________ 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 )
-- Chris McDonough - Digital Creations, Inc. Publishers of Zope - http://www.zope.org