def create_or_resurrect_store(f, parent, name, translation_project):
 try:
  store = Store.objects.get(parent=parent, name=name)
  store.resurrect(save=False, resurrect_units=False)
  store_log(user='system', action=STORE_RESURRECTED, path=store.pootle_path, store=store.id)
 except Store.DoesNotExist:
  store = Store.objects.create(file=f, parent=parent, name=name, translation_project=translation_project)
 return store

def create_or_resurrect_store ( f , parent , name , translation_project ) : try : store = Store . objects . get ( parent = parent , name = name ) store . resurrect ( save = False , resurrect_units = False ) store_log ( user = 'system' , action = STORE_RESURRECTED , path = store . pootle_path , store = store . id ) except Store . DoesNotExist : store = Store . objects . create ( file = f , parent = parent , name = name , translation_project = translation_project ) return store
create or resurrect a store db item with given name and parent .