r252419 - PASPlugins/SQLPASPlugin/trunk/plugins

"David Glick" <svn-changes-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.collective.cvs
Message-ID <[email protected]>
Author: davisagli
Date: Thu May 23 16:38:47 2013
New Revision: 252419

Modified:
   PASPlugins/SQLPASPlugin/trunk/plugins/propertyprovider.py
Log:
make sure email can be changed

Modified: PASPlugins/SQLPASPlugin/trunk/plugins/propertyprovider.py
==============================================================================
--- PASPlugins/SQLPASPlugin/trunk/plugins/propertyprovider.py	(original)
+++ PASPlugins/SQLPASPlugin/trunk/plugins/propertyprovider.py	Thu May 23 16:38:47 2013
@@ -273,7 +273,8 @@
 
         data = dict(realFields)
         data[users_col_username] = user.getId()
-        data[users_col_login] = user.getUserName()
+        if users_col_login not in realFields:
+            data[users_col_login] = user.getUserName()
 
         sqlMethod(**data)
 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.