On Mon, Apr 14, 2008 at 11:21 AM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to make some mods to the SQLPASPlugin, basically I want to > update the users table when someone logs in.
Want to be clear that my changes are not intended to go into the SQLPASPlugin. I.e., I will not be checking in my changes. The question below about ZSQL magic still applies. Thanks, Dave > My problem is how to > "pin" a new sql method to the SQUserManager. What I've done is add an > sql statement to the end of usermanager.py. Here's a link to > usermanager.py: > > > https://svn.plone.org/svn/collective/PASPlugins/SQLPASPlugin/trunk/plugins/usermanager.py > > My mod looks like this: > > ( > "sqlSetJSessionId", > "Update user session info", > "username jsessionid", > """ > UPDATE %(users_table)s > SET jsessionid=<dtml-sqlvar jsessionid type=string> > WHERE %(username_col)s=<dtml-sqlvar username type=string> > """ > ), > > And then elsewhere in my mods, I reference with: > > self.sqlSetJSessionId(username=...,jsessionid=...) > > But I get an attribute error, so I'm wondering what the magic is to > make this method available. > > Thanks, > > Dave > _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
