[Zope-PTK] 0.7 snap Members Page bug, and fix

Bill Anderson bill@libc.org
Mon, 20 Mar 2000 15:33:21 -0700


I just dl'd the snapshot, and created a portal on 2.1.4, using the ZODB
for membership storage.
After adding a member, listed, and going to the members link, I get
this:


Error Type: TypeError
Error Value: not enough arguments; expected 2, got 1

According to the traceback, it seems to be coming from getRoster:


By modifying the Members/index_html to be:

<dtml-var standard_html_header>

<p>This roster page doesn't batch, it's just a placeholder so far.</p>

<dtml-in "getRoster(REQUEST)">
 <a href="&dtml.url_quote-sequence-item;">&dtml-sequence-item;</a><br>
<dtml-else>
 <p><b>No listed members.</b></p>
</dtml-in>

<dtml-var standard_html_footer>

It will work.


The changes are:
 o Passing REQUEST to getRoster
 o Changing sequence-item to sequence-item (both places)


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