1
2
3
4
5
6
7
8
9
10
11
12
13
14def create_sheet_collection(doc, name):
t = Transaction(doc, "Create Sheet Collection")
try:
t.Start()
collection = SheetCollection.Create(doc, name)
t.Commit()
return collection
except Exception as e:
if t.HasStarted():
t.RollBack()
forms.alert(
"No se pudo crear la Sheet Collection:\n\n{}".format(e),
title="Error"
)