[ZPT] No access to SQLConnectionIds() ?
   
    Dieter Maurer
     
    dieter@handshake.de
       
    Fri, 29 Mar 2002 21:06:08 +0100
    
    
  
Brent M Hendricks writes:
 > In DTML you could iterate over the available SQLConnections by doing:
 > 
 > <dtml-in "SQLConnectionIDs()">
 > 
 > How do I do this in ZPT?  The function isn't available directly, and 
 > when I try python:modules['SQL'].SQLConnectionIDs() it gives me
 > 
 > exceptions.ImportError on import of "SQL" is unauthorized
 > 
 > If it's available to DTML, then why not ZPT?
Try:
     "here/SQLConnectionIds"
"SQLConnectionIds" are available as so called "folder" methods,
methods of "Folder" instances.
Provided that "here" either is itself a folder or has a folder in its
acquisition chain, "here/SQLConnectionIds" will give you what you want.
Dieter