6 Oct
2000
6 Oct
'00
8:41 a.m.
How do I get a zope database connection from an enternal method?
You can access your db using your existing ZSQL Methods by calling them from the namespace passed in, specifically self. Example: def myextmethod(self): mfl_id = 3 results = self.sqlCountUsers(mfl_id=mfl_id) for result in results: print result[0], result[3] Keep in mind that a list is returned, not a dictionary. Knight knight@phunc.com