Fw: [Zope] some Zope issues: dtml-zpt, permissions, scalability
Paul Winkler
pw_lists at slinkp.com
Fri Nov 21 13:34:11 EST 2003
On Fri, Nov 21, 2003 at 08:54:28AM +0100, Andre Meyer wrote:
> Here is what I and what I receive as error:
>
>
> <form action="." method="post">
> <table border=0 cellpadding=2 cellspacing=0 width="100%">
> <tr>
> <td colspan=5>
> <table border="0" cellpadding="0" cellspacing="0" width="100%">
> <tr>
> <td align="right">
> <input type="submit" name="index_html:method" value="View">
>
> <select size=1 name="SelectedGroup">
> <option value="All">All Groups</option>
> <span tal:repeat="group python:here.listGroups">
You realize that that will try to iterate over the listGroups object itself,
rather than calling listGroups?
If listGroups is something you need to call, then do one of these:
<span tal:repeat="group python:here.listGroups()">
<span tal:repeat="group here/listGroups">
It's roughly equivalent to the difference between
<dtml-in listGroups>
and
<dtml-in "listGroups">
(snip)
> * Module Python expression "here.listGroups", line 2, in f
>
> Unauthorized: You are not allowed to access listGroups in this context
That's a bit puzzling.
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's SLICK PROCTOLOGIST GOURANGA!
(random hero from isometric.spaceninja.com)
More information about the Zope
mailing list