[server/test] fix random error in unittest_security
When entering a new Connection, we cache the user and its 'login'
attribute (with no permissions checking).
This test makes 'CWUser.login' unreadable by guests, and then proceeds
to make sure the 'anon' user can actually not read any 'login'
attribute. However, due to the above cnx initialization, anon's login
is actually cached, hence readable. This happens to make the test fail
sometimes depending on the order in which CWUser entities are returned,
because one of them has .complete() called, which as a side effect sets
the attribute cache to None for unreadable attributes.
Call .complete() on both entities to reset the login cache. While this
is still highly debatable, at least it's consistent.
/* styles for input with suggestions (as for tags and keywords)
*
* :organization: Logilab
* :copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
* :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
*/
div.sgform div.combobox {
z-index: 300;
margin-left: 3px;
width: 150px;
}
div.sgform div.combobox input.suggestions {
width: 100%;
}
div.sgform select{
width: 155px;
}
div.sgformbuttons {
margin-left: 3px;
}
div.sgformbuttons a {
font-weight: bold;
padding:2px 0px;
}
a.sglink {
color: #000;
font-weight: bold;
display: block;
background: url("puce.png") 98% 5px no-repeat;
margin-left: 3px;
padding: 2px 16px 2px 0px;
}
div.suggholder {
z-index: 300;
position: absolute;
}