[Erp5-report] r42500 romain - /erp5/trunk/products/Vifib/VifibMachineAuthenticationPlugin.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 20 09:32:53 CET 2011


Author: romain
Date: Thu Jan 20 09:32:52 2011
New Revision: 42500

URL: http://svn.erp5.org?rev=42500&view=rev
Log:
Only handle validated Computer and Software Instance

Modified:
    erp5/trunk/products/Vifib/VifibMachineAuthenticationPlugin.py

Modified: erp5/trunk/products/Vifib/VifibMachineAuthenticationPlugin.py
URL: http://svn.erp5.org/erp5/trunk/products/Vifib/VifibMachineAuthenticationPlugin.py?rev=42500&r1=42499&r2=42500&view=diff
==============================================================================
--- erp5/trunk/products/Vifib/VifibMachineAuthenticationPlugin.py [utf8] (original)
+++ erp5/trunk/products/Vifib/VifibMachineAuthenticationPlugin.py [utf8] Thu Jan 20 09:32:52 2011
@@ -67,6 +67,7 @@ def getUserByLogin(portal, login):
   result = portal.portal_catalog.unrestrictedSearchResults(
       select_expression='reference',
       portal_type=["Computer", "Software Instance"],
+      validation_state="validated",
       reference=dict(query=login, key='ExactMatch'))
   # XXX: Here, we filter catalog result list ALTHOUGH we did pass
   # parameters to unrestrictedSearchResults to restrict result set.



More information about the Erp5-report mailing list