예제 #1
0
파일: root.py 프로젝트: nthx/ed-diary
class Root(object):
    """Just contains all objects (data) used by the app
    """
    def __init__(self):
        self.diary = None
        self.current_entries = [] #filtered view to all_entries


    def build_data(self):
        self.diary = Diary().import_me()
        self.current_entries = self.diary.entries[:]


    def new_entry(self):
        self.diary.new_entry()
        self.current_entries = self.diary.entries[:]
예제 #2
0
파일: root.py 프로젝트: nthx/ed-diary
 def build_data(self):
     self.diary = Diary().import_me()
     self.current_entries = self.diary.entries[:]