home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / activepython / ActivePython-2.1.1.msi / Python21_PPM_soaptalk.py < prev    next >
Encoding:
Python Source  |  2001-07-26  |  474 b   |  20 lines

  1. # Copyright 2001 (C) ActiveState Tool Corp., All Rights Reserved.
  2. #
  3. from soaplib import *
  4. from ppmerrors import *
  5.  
  6.  
  7. class soaptalk(ServerProxy):
  8.     def __init__(self, uri, namespace='urn:/PyPMServer', transport=None):
  9.         self.nms = namespace
  10.         ServerProxy.__init__(self,uri)
  11.         self.commands = ["fetch_summary",
  12.                  "_load_summary",
  13.                  "fetch_ppd",
  14.                  "packages",
  15.                  "search_ppds",
  16.                 ]
  17.         for any in self.commands:
  18.             self._defmethod(any , self.nms)
  19.  
  20.