Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
0
 def __init__(self, ctx, sm, desktop, toolkit):
     LOApp.__init__(self, ctx, sm, desktop, toolkit)
Exemplo n.º 4
0
 def __init__(self, ctx, sm, desktop, toolkit):
     LOApp.__init__(self, ctx, sm, desktop, toolkit)