Esempio n. 1
0
 def get_info(self, _proto):
     d = {
         "lpadmin"              : self.lpadmin,
         "lpinfo"               : self.lpinfo,
         "add-printer-options"  : self.add_printer_options,
         }
     if self.file_transfer.printing:
         from xpra.platform.printing import get_info
         d.update(get_info())
     info = {"printing" : d}
     if self.file_transfer.file_transfer:
         info["file"] = self.file_transfer.get_info()
     return info
Esempio n. 2
0
 def get_info(self, _proto):
     d = {}
     if POSIX:
         d.update({
             "lpadmin": self.lpadmin,
             "lpinfo": self.lpinfo,
             "add-printer-options": self.add_printer_options,
         })
     if self.file_transfer.printing:
         from xpra.platform.printing import get_info
         d.update(get_info())
     info = {"printing": d}
     if self.file_transfer.file_transfer:
         fti = self.file_transfer.get_info()
         if self.file_transfer.file_transfer:
             fti["request-file"] = True
         info["file"] = fti
     return info