42 @param filename name of the tasks file |
42 @param filename name of the tasks file |
43 @type str |
43 @type str |
44 @return flag indicating a successful write |
44 @return flag indicating a successful write |
45 @rtype bool |
45 @rtype bool |
46 """ |
46 """ |
47 # prepare the session data dictionary |
47 # prepare the tasks data dictionary |
48 # step 0: header |
48 # step 0: header |
49 tasksDict = {} |
49 tasksDict = {} |
50 tasksDict["header"] = {} |
|
51 if self.__isGlobal: |
50 if self.__isGlobal: |
52 tasksDict["header"] = { |
51 tasksDict["header"] = { |
53 "comment": "eric tasks file", |
52 "comment": "eric tasks file", |
54 "saved": time.strftime('%Y-%m-%d, %H:%M:%S'), |
53 "saved": time.strftime('%Y-%m-%d, %H:%M:%S'), |
55 "warning": ( |
54 "warning": ( |