def create_default_profiles(): store = new_store() log.info("Creating user default profiles") UserProfile.create_profile_template(store, _(u'Administrator'), True) UserProfile.create_profile_template(store, _(u'Manager'), True) UserProfile.create_profile_template(store, _(u'Salesperson'), False) store.commit(close=True)
def create_default_profiles(): store = new_store() log.info("Creating user default profiles") UserProfile.create_profile_template(store, _(u'Administrator'), True) UserProfile.create_profile_template(store, _(u'Manager'), True) UserProfile.create_profile_template(store, _(u'Salesperson'), False) store.commit(close=True)
def create_model(self, store): return UserProfile.create_profile_template(store, u'', False)
def create_model(self, store): return UserProfile.create_profile_template(store, u'', False)