Beispiel #1
0
 def debug(self, data):
     """ Show data for debug
         If SO is Win, show data in Writer document
         else, show data in stdout
     """
     if OS == WIN:
         app = LOApp(self.ctx, self.sm, self.desktop, self.toolkit)
         doc = app.getDoc(FILE_NAME_DEBUG)
         if not doc:
             doc = app.newDoc(WRITER)
         out = OutputDoc(doc)
         sys.stdout = out
     pprint (data)
     return
Beispiel #2
0
 def debug(self, data):
     """ Show data for debug
         If SO is Win, show data in Writer document
         else, show data in stdout
     """
     if OS == WIN:
         app = LOApp(self.ctx, self.sm, self.desktop, self.toolkit)
         doc = app.getDoc(FILE_NAME_DEBUG)
         if not doc:
             doc = app.newDoc(WRITER)
         out = OutputDoc(doc)
         sys.stdout = out
     pprint(data)
     return
Beispiel #3
0
 def __init__(self, ctx, sm, desktop, toolkit):
     LOApp.__init__(self, ctx, sm, desktop, toolkit)
 def __init__(self, ctx, sm, desktop, toolkit):
     LOApp.__init__(self, ctx, sm, desktop, toolkit)