Exemplo n.º 1
0
Arquivo: admin.py Projeto: romaia/stoq
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
 def create_model(self, store):
     return UserProfile.create_profile_template(store, u'', False)
Exemplo n.º 4
0
 def create_model(self, store):
     return UserProfile.create_profile_template(store, u'', False)