Hi all,

I'm trying to make some mods to the SQLPASPlugin, basically I want to
update the users table when someone logs in.  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

Reply via email to