--- a/server/__init__.py Sat Aug 01 16:18:14 2009 +0200
+++ b/server/__init__.py Sat Aug 01 16:19:08 2009 +0200
@@ -163,10 +163,10 @@
print '-> inserting default user and default groups.'
# sort for eid predicatability as expected in some server tests
for group in sorted(BASE_GROUPS):
- rset = session.execute('INSERT CWGroup X: X name %(name)s',
- {'name': unicode(group)})
- rset = session.execute('INSERT CWUser X: X login %(login)s, X upassword %(pwd)s',
- {'login': login, 'pwd': pwd})
+ session.execute('INSERT CWGroup X: X name %(name)s',
+ {'name': unicode(group)})
+ session.execute('INSERT CWUser X: X login %(login)s, X upassword %(pwd)s',
+ {'login': login, 'pwd': pwd})
session.execute('SET U in_group G WHERE G name "managers"')
session.commit()
# reloging using the admin user
--- a/server/repository.py Sat Aug 01 16:18:14 2009 +0200
+++ b/server/repository.py Sat Aug 01 16:19:08 2009 +0200
@@ -1011,7 +1011,6 @@
extid = None
self.add_info(session, entity, source, extid, complete=False)
entity._is_saved = True # entity has an eid and is saved
- #print 'added', entity#, entity.items()
# trigger after_add_entity after after_add_relation
if source.should_call_hooks:
self.hm.call_hooks('after_add_entity', etype, session, entity)