xmlrcp register classes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sergio Rua

    #1

    xmlrcp register classes

    Hello,

    I have a structured program with several classes which I would like to
    export using a xmlrpc server. I'm doing this

    Server = SimpleXMLRPCSer ver (('127.0.0.1',8 080))

    Server.register _instance(MyCla ss1())
    Server.register _instance(MyCla ss2())
    Server.register _instance(MyCla ss3())

    What is seems to happen is that only the last class I register it is the
    only one being exported. How can I register all the classes? Thanks.

    --
    Sergio Rua
  • Brian Quinlan

    #2
    Re: xmlrcp register classes

    Sergio Rua wrote:[color=blue]
    > Server = SimpleXMLRPCSer ver (('127.0.0.1',8 080))
    >
    > Server.register _instance(MyCla ss1())
    > Server.register _instance(MyCla ss2())
    > Server.register _instance(MyCla ss3())
    >
    > What is seems to happen is that only the last class I register it is the
    > only one being exported. How can I register all the classes? Thanks.[/color]

    class MyCombinedClass (MyClass1, MyClass2, MyClass3):
    pass

    Server.register _instance(MyCom binedClass())

    Cheers,
    Brian

    Comment

    • Sergio Rua

      #3
      Re: xmlrcp register classes

      Hello,
      [color=blue]
      > class MyCombinedClass (MyClass1, MyClass2, MyClass3):
      > pass
      >
      > Server.register _instance(MyCom binedClass())[/color]

      That was easy :) Thanks a lot.

      --
      Sergio Rua

      Comment

      Working...