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()
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()