Exemplo n.º 1
0
    def get(self):
        s = ServerProxy('http://r20080614.appspot.com/deki', GAEXMLRPCTransport())
        gtext = s.greetings()
        #gtext = 'not supported'
        template_values = { 'gtext': gtext, }

        path = os.path.join(os.path.dirname(__file__), 'views/seidenschal.html')
        self.response.out.write(template.render(path, template_values))
Exemplo n.º 2
0
    def get(self):
        g = Greeting()
        g.content = 'fr xmlrpc call'
        g.put()

        #s=ServerProxy('http://localhost:9020/RPC2', GAEXMLRPCTransport())
        s = ServerProxy('http://blog.fruehlingsrolle.cn/RPC2', GAEXMLRPCTransport())
        gtext = s.greetings()
        template_values = { 'gtext': gtext, }

        path = os.path.join(os.path.dirname(__file__), 'views/fruehlingsrolle.html')
        self.response.out.write(template.render(path, template_values))
Exemplo n.º 3
0
from xmlrpclib import ServerProxy, Error
import datetime
s=ServerProxy('http://*****:*****@ '+str(datetime.datetime.now()))
print s.greetings()