equal
deleted
inserted
replaced
40 SelfReferenceProperty = DummyProperty |
40 SelfReferenceProperty = DummyProperty |
41 import_appengine_failed = 'cannot import appengine: %s' % exc |
41 import_appengine_failed = 'cannot import appengine: %s' % exc |
42 |
42 |
43 |
43 |
44 from cubicweb.devtools.fake import FakeRequest |
44 from cubicweb.devtools.fake import FakeRequest |
45 from cubicweb.goa.goavreg import GAERegistry |
45 from cubicweb.goa.goavreg import GAEVregistry |
46 from cubicweb.goa.goaconfig import GAEConfiguration |
46 from cubicweb.goa.goaconfig import GAEConfiguration |
47 from cubicweb.goa.dbinit import (create_user, create_groups, fix_entities, |
47 from cubicweb.goa.dbinit import (create_user, create_groups, fix_entities, |
48 init_persistent_schema, insert_versions) |
48 init_persistent_schema, insert_versions) |
49 |
49 |
50 import logging |
50 import logging |
113 gdb._kind_map = {} |
113 gdb._kind_map = {} |
114 self.config = self.config or GAEConfiguration('toto') |
114 self.config = self.config or GAEConfiguration('toto') |
115 self.config.init_log(logging.CRITICAL) |
115 self.config.init_log(logging.CRITICAL) |
116 self.schema = self.config.load_schema(self.MODEL_CLASSES, |
116 self.schema = self.config.load_schema(self.MODEL_CLASSES, |
117 self.load_schema_hook) |
117 self.load_schema_hook) |
118 self.vreg = GAERegistry(self.config) |
118 self.vreg = GAEVregistry(self.config) |
119 self.vreg.schema = self.schema |
119 self.vreg.schema = self.schema |
120 self.vreg.load_module(db) |
120 self.vreg.load_module(db) |
121 from cubicweb.goa.appobjects import sessions |
121 from cubicweb.goa.appobjects import sessions |
122 self.vreg.load_module(sessions) |
122 self.vreg.load_module(sessions) |
123 from cubicweb.entities import authobjs, schemaobjs |
123 from cubicweb.entities import authobjs, schemaobjs |