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

 main


How can I delete all the messages in a Squishdot site???
How-To Posted by Sergio Saugar on Thursday October 03, 11:16AM, 2002
from the dept.
Hi, I would like to know how can I delete all the messages of a Squishdot site automatically. Now, the only option is to select each message individually, but if you have a thousand of messages is a very tough labor. Anyone knows anything about this???

<  |  >

 

Related Links
  • Articles on How-To
  • Also by Sergio Saugar
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Create New
    by Chris Withers on Thursday October 03, 01:41PM, 2002
    What I'd do is create a new Squishdot Site, delete all the methods in it and copy them over from your old site.

    Hey presto: empty Squish ;-)

    cheers,

    Chris
    [ Reply to this ]
    Re: How can I delete all the messages in a Squishd
    by bryan on Friday October 04, 12:40AM, 2002

    Zope allows you to access it's files via FTP. I would just login to your zope server via FTP and delete out the individual files that way using a FTP client.

    For more information about how to login to Zope via FTP just visit this tutorial

    The only disadvantage to this is that you must have access to your Zope server so that you can modify the port number that zope allows FTP to run on.

    [ Reply to this ]
    • FTP
      by Chris Withers on Friday October 04, 03:36PM, 2002
      Squishdot postings cannot be accessed for deleted via FTP.

      sorry,

      Chris
      [ Reply to this ]
    Re: How can I delete all the messages in a Squishd
    by Skeeter Murphy on Friday October 04, 05:49PM, 2002
    Can you just set the "Postings in this site expire after X days of inactivity" on the options tab to 0?

    I haven't tried it, but it might work. 0 might be a special number, so using 1 would at least get rid of most of the postings, then you could manually delete the rest quickly.

    Don't forget to set it back to what it was before.

    Please let us know if this works for you.
    [ Reply to this ]
    Re: How can I delete all the messages in a Squishdot site???
    by Amitabh Jain on Saturday October 19, 11:13AM, 2002
    There is one more way to do this, if you are comfortable with HTML and Javascript.

    1. Open the file
    <zope-intallation-directory>\lib\python\Products\Squishdot\Squishdot_manage_postings.dtml

    2.Add a button at the appropriate place in dtml. Call it something like 'Check All'.

    3. Write a simple Javascript method (say checkAll()) that checks all the checkboxes on a page.

    4. Attach this method to the button by using the onClick attribute of the button.
    For example,
    <input type="button" value="Check All" onClick="checkAll()">

    Hope this helps.

    Cheers -amitabh
    [ Reply to this ]
    • :-)
      by Chris Withers on Tuesday October 29, 11:13AM, 2002

      This is pretty cool :-)

      If you could put a patch in the Source Forge Tracker I'd really appreciate it...

      cheers,

      Chris


      [ Reply to this ]
    • Re: How can I delete all the messages in a Squishdot site???
      by neeno yousafzai on Monday October 03, 06:28PM, 2005
      it did not help
      [ Reply to this ]
      • Re: How can I delete all the messages in a Squishd
        by Chris Withers on Tuesday October 04, 08:31AM, 2005
        Well, that's a pretty useless comment.

        What did you try?

        What did you expect to happen?

        What actually happened?
        [ 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.