pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)
if__name__=='__main__':fromos.pathimportdirname,abspathfromcubicwebimportgoafromcubicweb.goa.goaconfigimportGAEConfigurationfromcubicweb.goa.dbinitimportcreate_user,create_groups# compute application's root directoryAPPLROOT=dirname(abspath(__file__))# apply monkey patches firstgoa.do_monkey_patch()# get application's configuration (will be loaded from app.conf file)GAEConfiguration.ext_resources['JAVASCRIPTS'].append('DATADIR/goa.js')config=GAEConfiguration('toto',APPLROOT)# create default groupscreate_groups()ifnotconfig['use-google-auth']:# create default admincreate_user('admin','admin',('managers','users'))# create anonymous user if specifiedanonlogin=config['anonymous-user']ifanonlogin:create_user(anonlogin,config['anonymous-password'],('guests',))print'content initialized'