Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Displaying Random Quotations
Squishdot Posted by Manoj E.G. on Tuesday March 27, 02:35PM, 2001
from the To-quote-or-not-to-quote dept.
I was wondering if a python script(or something simpler?) could be added to an existing Squishdot site to eneble it to display a random quotation

Where can I find information on using the built-in database which comes with Zope, so as to store the quotations in a single place?

Would it be easy and un-messy to add a feature to Squishdot to eneble this in the next version(s)?

<  |  >

 

Related Links
  • Articles on Squishdot
  • Also by Manoj E.G.
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Re: Displaying Random Quotations
    by Chris Withers on Wednesday March 28, 10:21PM, 2001
    I'm not adding anymore features to Squishdot ;-)

    A python script sounds like a good way. This was discussed a while back on this site. Search for random and see what turns up.
    [ Reply to this ]
    • Re: Displaying Random Quotations
      by Darrick Wong on Thursday March 29, 02:03AM, 2001
      Look for the 'Fortune' product on Zope.org.
      [ Reply to this ]
    Re: Displaying Random Quotations
    by fester on Tuesday April 03, 06:05PM, 2001
    Here's what I did to get a simple quotes feature working:
    1)I created a folder in the main workspace and called it "quotes".
    2)Inside that folder I created a whole bunch of DTML Documents with the quotes I wanted. (I had about 70 so it took a little time)
    3)In misc methods-->quotation I replaced the stock quote with:

    <dtml-var expr="_.whrandom.choice(quotes.objectValues())">

    And I think that's it. You can see my quotes in action at http://www.renditionrevival.com/Zope/rendition/
    and just hit refresh a few times.
    [ Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.