[web2py] Re: xmlrpc python3 error

2023-03-20 Thread Lisandro
Just in case it helps someone, I was able to change my code to make it work. It's not a complete solution: I just started using args instead of vars. I'll explain: in the client I was calling the service with some query string arguments, like this: from gluon.contrib.simplejsonrpc import Server

[web2py] Re: xmlrpc python3 error

2023-03-19 Thread Lisandro
Hey there! I'm experiencing the same error after migrating to python3 and web2py version 2.23.1-stable+timestamp.2023.01.31.08.01.46 The traceback is the same, the error is originated when I try to access request.vars: Traceback (most recent call last): File "/home/limon/medios/gluon/restricted

[web2py] Re: xmlrpc python3 error

2019-10-07 Thread Mark
I submitted the bug report to the github. Thank you very much. On Sunday, October 6, 2019 at 5:29:31 PM UTC-4, Dave S wrote: > > > > On Friday, September 27, 2019 at 6:39:00 AM UTC-7, Mark wrote: >> >> I am using either Rocket or Azure, and get the same error. >> >> Yes, there is a ticket, which

[web2py] Re: xmlrpc python3 error

2019-10-06 Thread Dave S
On Friday, September 27, 2019 at 6:39:00 AM UTC-7, Mark wrote: > > I am using either Rocket or Azure, and get the same error. > > Yes, there is a ticket, which I didn't realize before: > > Traceback (most recent call last): > File "R:\web2py\gluon\restricted.py", line 219, in restricted > e

[web2py] Re: xmlrpc python3 error

2019-09-27 Thread Mark
I am using either Rocket or Azure, and get the same error. Yes, there is a ticket, which I didn't realize before: Traceback (most recent call last): File "R:\web2py\gluon\restricted.py", line 219, in restricted exec(ccode, environment) File "R:\web2py\applications\myapp\models\db.py", lin

[web2py] Re: xmlrpc python3 error

2019-09-26 Thread Dave S
On Thursday, September 26, 2019 at 11:12:56 AM UTC-7, Mark wrote: > > Hello, > > I got an error in python3.7, web2py 2.18.3. > > Testing the following client side code in python2.7: > server = ServerProxy('https://127.0.0.1/myapp/query/call/xmlrpc', > context=ssl._create_unverified_context()) >

[web2py] Re: XMLRPC fault ?

2014-07-08 Thread lyn2py
Update: The JSON-RPC works in command line, but not in my app1's controller function (all my testing is done localhost). I'm seeking assistance from anyone using JSON-RPC, with POST or GET to make it work… thank you!!! On Tuesday, July 8, 2014 4:17:55 PM UTC+8, lyn2py wrote: > > When I used @se

[web2py] Re: XMLRPC fault ?

2014-07-08 Thread lyn2py
When I used @service.jsonrpc instead, It gave this error… File "/Users/.../web2py/.../gluon/contrib/simplejsonrpc.py", line 108, in return lambda *args: self.call(attr, *args) File "/Users/.../web2py/.../gluon/contrib/simplejsonrpc.py", line 140, in call self.error.get('data', None)

Re: [web2py] Re: xmlrpc security

2013-11-06 Thread kwebb
Here is my current solution: First, I optionally obtain the client cert and set environment variables in apache: SSLVerifyClient optional SSLVerifyDepth 2 SSLOptions +StdE This allows login via browers to not require a client cert (using Auth instead) Then I read up on decorators and cre

Re: [web2py] Re: xmlrpc security

2013-10-25 Thread Kristen J. Webb
Hi guys, Thanks for the pointers. I'm trying to use self-signed certs to remove login/password from the xmlrpc interface for machine authentication. Digging more in the docs, it looks like part of this is apache config. I'll do some more testing and report back if/what changes I have to make to

Re: [web2py] Re: xmlrpc security

2013-10-25 Thread Michele Comitini
It should be possible in combination with gluon/contrib/login_methods/x509_auth.py using the standard @auth_requires_login or checking authorization data in a model after the usual auth=Auth() is properly instantiated and initiated. mic 2013/10/25 Massimo Di Pierro > I do not think xmlrpc can

[web2py] Re: xmlrpc security

2013-10-24 Thread Massimo Di Pierro
I do not think xmlrpc can do this currently. Please share your code. On Thursday, 24 October 2013 17:40:50 UTC-5, kw...@teradactyl.com wrote: > > Hi All, > I am new to python and web2py and I really like them both! > > Can @xmlrpc provide client side certifcate validation and > actually do the hos

Re: [web2py] Re: xmlrpc backend

2011-09-26 Thread Matt Broadstone
I think I will end up just writing my own model for this (a la Anthony's suggestion), but the problem remains that "model" as it relates to web2py presumes SQL, and that fact limits design. While it would be possible to write an XMLRPC adapter to the DAL, that is sort of like jamming a square piece

[web2py] Re: xmlrpc backend

2011-09-26 Thread Ross Peoples
Please forgive me if this post shows up a bunch of different times, but I'm having trouble with Google Groups not posting my replies, even though it says it did. So for the fourth time: We could add an XMLRPC adapter to the DAL that instead of making SQL calls, could build an XML version of the

[web2py] Re: xmlrpc backend

2011-09-26 Thread Ross Peoples
It would be really cool if web2py's DAL supported an XMLRPC backend.

[web2py] Re: xmlrpc backend

2011-09-26 Thread Anthony
Others may have more specific advice regarding xmlrpc setups, but in general, you can put whatever you want in your model files, so if you are duplicating code related to processing your xmlrpc calls, you could move it to model files (or to modules and import them). You can also use SQLFORM.fac

[web2py] Re: xmlrpc backend

2011-09-26 Thread Massimo Di Pierro
Seems an interesting idea. On Sep 26, 10:47 am, Matt wrote: > Greetings, > Has anyone successfully used web2py to develop an app that does not > use a database backend, but instead operates on a system using xmlrpc > calls? > > Our current approach was to simply ignore web2py's models completely,

Re: [web2py] Re: XMLRPC

2010-11-29 Thread Branko Vukelic
Hm... I thought I tried that. Might have misses something. I'll check again. On Mon, Nov 29, 2010 at 2:51 PM, mdipierro wrote: > yes > > @service.xmlrpc > @service.jsonrpc > def f(a,b): return a+b > > On Nov 29, 2:19 am, Branko Vukelic wrote: >> On Mon, Nov 29, 2010 at 8:52 AM, Branko Vukelic w

Re: [web2py] Re: XMLRPC

2010-11-29 Thread Branko Vukelic
Yup. I definitely mistyped something when I checked the first time. On Tue, Nov 30, 2010 at 12:59 AM, Branko Vukelic wrote: > Hm... I thought I tried that. Might have misses something. I'll check again. > > On Mon, Nov 29, 2010 at 2:51 PM, mdipierro wrote: >> yes >> >> @service.xmlrpc >> @servic

[web2py] Re: XMLRPC

2010-11-29 Thread mdipierro
yes @service.xmlrpc @service.jsonrpc def f(a,b): return a+b On Nov 29, 2:19 am, Branko Vukelic wrote: > On Mon, Nov 29, 2010 at 8:52 AM, Branko Vukelic wrote: > > Thanks. Thats this mean one can run multiple services using the same > > controller method? > > I guess not. > > -- > Branko Vukelić

Re: [web2py] Re: XMLRPC

2010-11-29 Thread Branko Vukelic
On Mon, Nov 29, 2010 at 8:52 AM, Branko Vukelic wrote: > Thanks. Thats this mean one can run multiple services using the same > controller method? I guess not. -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfoli

Re: [web2py] Re: XMLRPC

2010-11-28 Thread Branko Vukelic
Thanks. Thats this mean one can run multiple services using the same controller method? On Mon, Nov 29, 2010 at 1:36 AM, mdipierro wrote: > I think this: > CONFIG.serviceURL = '/mootest/default/call' > > should be > > CONFIG.serviceURL = '/mootest/default/call/xmlrpc' > > On Nov 28, 6:13 pm, Bran

[web2py] Re: XMLRPC

2010-11-28 Thread mdipierro
I think this: CONFIG.serviceURL = '/mootest/default/call' should be CONFIG.serviceURL = '/mootest/default/call/xmlrpc' On Nov 28, 6:13 pm, Branko Vukelic wrote: > I'm trying to implement a simple XMLRPC test app. Very basic stuff. > > The controller looks like this: > >     from gluon.tools imp

[web2py] Re: xmlrpc does not work on GAE (while it works fine on dev local gae server) [solved]

2010-09-07 Thread mdipierro
On Sep 7, 12:50 am, Miguel Goncalves wrote: > Found the problem! my url was simply wrong. :( > In the call bellow: > RPCServer = ServerProxy('http://myapp.appspot.com/welcome/default/ > index/call/xmlrpc > ') > > the "welcome" should

[web2py] Re: XMLRPC compression

2010-03-05 Thread mdipierro
xmlrpclib no but the transport (if running for example on apache +mod_wsgi) yes. So I guess it depends on client and server details. On Mar 5, 12:54 am, Richard wrote: > Hello, > > I am using XMLRPC to communicate between 2 separate > apps:http://web2py.com/book/default/section/9/2 > > Does this