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

 main


Showing all postings to web-users
How-To Posted by Galder on Thursday April 03, 05:52PM, 2003
from the dept.
I want to know how to show a web-user all the postings that are have been posted.

The problem is that the method that does that, "postingValues" is a protected method and therefore is not accessible to a web-user. Any idea?

<  |  >

 

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

    Re: Showing all postings to web-users
    by Chris Withers on Thursday April 10, 02:23PM, 2003
    <dtml-in your_squish_site>
    <dtml-with getObject>
    <!-- whatever you want here -->
    <dtm-var title><br>
    <dtml-var showSummary><br>
    <dtml-var showBody><br>
    </dtml-with>
    </dtml-in>
    [ Reply to this ]
    Re: Showing all postings to web-users
    by Joachim Tischler on Tuesday November 11, 10:53AM, 2003

    I found it the easiest way to simply alter the posting.py python-skript by inserting

    security.declareProtected(View, publicPostingValues) def publicPostingValues(self): # """ return all replies """ return self.data_map(self.ids)

    it does not harm and it helps because one is now able to use the tree-tag with puplicPostingValues as branches!

    [ 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.