Give more info. Define qry_user_roles and qry_roles as part of your
question.
Why are you using DTML? Its a *dying art*. I can hardly look at it
anymore :-)
DTML is depreciated in Zope (I think) and new people should go right to
Page Templates and Python Scripts (Im sure).
Can you code this in a Python Script?
David
This will iterate over the roles and build the drop-down box:
<select>
<dtml-in qry_roles>
<option><dtml-var role></option>
</dtml-in>
</select>
This should display the proper value as well:
<select>
<dtml-in qry_roles prefix="outer">
<option
<dtml-in qry_users_roles>
<dtml-if expr="outer_role==role">
selected
</dtml-if>
</dtml-in>
><dtml-var role></option>
</dtml-in>
</select>
I'm 1 month into Zope now, so this is just what I've read from the Zope bible/ web etc. so far ...
Is dtml really dead?!? :-o
Shame - I like it.. Will read more about page templates then ;-)
_______________________________________________ Zope maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
