did you look at the LDAPUserFolder? jens
On Tuesday, February 5, 2002, at 05:46 , John Hall wrote: > > I'm fairly new to Zope and Python, so please forgive me if this is a > stupid question. I'm trying to add a new exUserFolder authentication > plugin using LDAP. I've copied the Radius plugin for the most part > and have almost everything working except I wanted to have a list > of possible methods (ways of using the LDAP database to authenticate > a user) that the Zope Admin chooses from on the manage_add DTML page. > > I can't figure out how to keep the list in the python code for the > object where it would be easy to update when I add new methods, but > still access the list in my manage_add DTML page in a <dtml-in> loop. > When the manage_add DTML is rendered, my object does not yet exist > (the admin's response to the manage_add page is passed to a python > function that actually creates the object). > > I have two questions, then. > > 1. How do I format an object to use in a <dtml-in> loop? (I'm thinking > it needs to be a list of dict's). > > 2. How do I access a function or variable in a Product's python code > directly from DTML (or how do I add a callable method in Zope's DTML > namespace from a Product's python code?) I think my major problem > here is lack of understanding of how Products are accesible within > the DTML namespace. > > Thanks in advance, > JMH > > _______________________________________________ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )