equal
deleted
inserted
replaced
180 cnx.execute('DELETE X in_group G WHERE X eid %s, G name "guests"' % user.eid) |
180 cnx.execute('DELETE X in_group G WHERE X eid %s, G name "guests"' % user.eid) |
181 cnx.commit() |
181 cnx.commit() |
182 |
182 |
183 def test_publish_validation_error(self): |
183 def test_publish_validation_error(self): |
184 with self.admin_access.web_request() as req: |
184 with self.admin_access.web_request() as req: |
185 user = self.user() |
185 user = self.user(req) |
186 eid = unicode(user.eid) |
186 eid = unicode(user.eid) |
187 req.form = { |
187 req.form = { |
188 'eid': eid, |
188 'eid': eid, |
189 '__type:'+eid: 'CWUser', '_cw_entity_fields:'+eid: 'login-subject', |
189 '__type:'+eid: 'CWUser', '_cw_entity_fields:'+eid: 'login-subject', |
190 'login-subject:'+eid: '', # ERROR: no login specified |
190 'login-subject:'+eid: '', # ERROR: no login specified |