Пример #1
0
 def add_view(self, view):
     """add  a view object to facade"""
     SimpleFacade.add_view(self, view)
     view.update_blogs()
Пример #2
0
 def __init__(self, pseudo, directory=None):
     if directory is None:
         directory = get_prefs("profile_dir")
     SimpleFacade.__init__(self, pseudo, directory)
     self._desc = PeerDescriptor(pseudo, document=CacheDocument(pseudo, directory), blog=Blogs(pseudo, directory))
Пример #3
0
 def __init__(self, pseudo, directory=PROFILE_DIR):
     SimpleFacade.__init__(self, pseudo, directory)
     self._desc = PeerDescriptor(pseudo,
                                 document=CacheDocument(pseudo, directory),
                                 blog=Blogs(pseudo, directory))
Пример #4
0
 def load(self):
     """load .profile.solipsis"""
     SimpleFacade.load(self)
     self.update_blogs()
Пример #5
0
 def __init__(self, pseudo, directory=PROFILE_DIR):
     SimpleFacade.__init__(self, pseudo, directory)
     self._desc = PeerDescriptor(pseudo,
                                 document=FilterDocument(pseudo, directory))