Exemplo n.º 1
0
 def RootNode(self):
     """Return our current root node and appropriate adapter for it"""
     if self.memoryView:
         adapter = meliaeadapter.MeliaeAdapter()
         tree, rows = self.loader
     else:
         if self.directoryView:
             adapter = pstatsadapter.DirectoryViewAdapter()
             tree = self.loader.location_tree
             rows = self.loader.location_rows
         else:
             adapter = pstatsadapter.PStatsAdapter()
             tree = self.loader.tree
             rows = self.loader.rows
         adapter.SetPercentage(self.percentageView,
                               self.loader.tree.cummulative)
     return adapter, tree, rows
Exemplo n.º 2
0
    def get_adapter(self, key):
        from runsnakerun import meliaeadapter

        return meliaeadapter.MeliaeAdapter()