예제 #1
0
def open(type, task, code, force=False):
    if not force:
        resp = checkModified()

        if resp == 'Save':
            pm.saveFile()

        elif resp == 'Cancel':
            return

    item = Item(task=task, code=code, itemType=type)
    item.open()
예제 #2
0
def open(type, task, code, force=False):
    if not force:
        resp = checkModified()
        print resp
        if resp == 'Save':
            print pm.saveFile()

        elif resp == 'Cancel':
            print 'canceling'
            return

    print 'opening'
    item = Item(task=task, code=code, itemType=type)
    item.open()