Just to make things clearer the problem I have is if I do this:
c = xmlrpclib.ServerProxy("http://somewhere";)
c.i
I get this error:
So how do I fake things so that xmlrpc knows not to try and call i but
gets the value of i instead?
--
http://mail.python.org/mailman/listinfo/python-list
Hi
Say I have a class like the following
class Test:
i = 1
def geti(self):
return self.i
And I use it in an xml-rpc server like this:
t = Test()
s.register_instance(t)
Then the client code can get the value of i like this:
c = xmlrpclib.ServerProxy("address")
c.geti()
but why can't I
Bruno Desthuilliers wrote:
> [EMAIL PROTECTED] wrote:
> > Hi
> >
> > I'd like to use metaclasses to dynamically generate a class based on a
> > parameter to the objects init function.
>
> Do you really need a metaclass for this ?
>
> > For example:
> >
> > class MetaThing(type):
> > def __init
Hi
I'd like to use metaclasses to dynamically generate a class based on a
parameter to the objects init function.
For example:
class MetaThing(type):
def __init__(cls, name, bases, dict, extra_information):
super(MetaThing, cls).__init__(name, bases, dict)
#setup the class ba