--- a/server/__init__.py Thu Jun 18 21:01:55 2009 +0200
+++ b/server/__init__.py Fri Jun 19 14:42:04 2009 +0200
@@ -24,7 +24,7 @@
a initial user)
"""
from glob import glob
- from cubicweb.schema import BASEGROUPS
+ from yams import BASE_GROUPS
from cubicweb.dbapi import in_memory_cnx
from cubicweb.server.repository import Repository
from cubicweb.server.utils import manager_userpasswd
@@ -93,7 +93,7 @@
login, pwd = unicode(source['db-user']), source['db-password']
print 'inserting default user and groups'
needisfix = []
- for group in BASEGROUPS:
+ for group in BASE_GROUPS:
rset = session.execute('INSERT CWGroup X: X name %(name)s',
{'name': unicode(group)})
needisfix.append( (rset.rows[0][0], rset.description[0][0]) )