Re: [web2py] Coding of the future?
On Thursday, January 31, 2013 7:26:45 AM UTC-5, Johann Spies wrote: When webeditors become as good as emacs, vim, bluefish, I will consider it. For now I did not find any editor that can compete with them. I am a die-hard Emacs user, but I find the web editing facilities in web2py good enough for just entering code and quick edits. If I was doing major refactoring I think I'd use Emacs, but I can get quite a lot of my day-to-day development done just using the browser-based IDE. In some ways I actually like the minimalism of the web2py development environment. Have you tried Eclipse? That thing has more buttons and dials than the space shuttle. Nick -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] SoapClient method times out when called with a variable
Hi folks, Weird situation here... I am supposed to make a call to a SOAP service to indicate to another system that there is data that needs to be processed: client = SoapClient(wsdl='http://some.internal.server:/ws/sriks.postgresql:cartonTest?WSDL') result = client.recordCartons(tallyNumber=tallyrec.TallyNumber) This times out. TallyNumber is defined thusly: Field https://pedapps.gpo.gov/examples/global/vars/Field('TallyNumber', 'string', length=6, unique=True, label='Tally sheet number') I can call the method with a literal value, and it does not time out: result = client.recordCartons(tallyNumber='49') I can set a variable to a literal value, and it does not time out: tn = '49' result = client.recordCartons(tallyNumber=tn) But this does time out: tn = tallyrec.TallyNumber So does this: tn = '%s' % (tallyrec.TallyNumber) # thought I'd create a new variable instead of using the reference This also times out: tn = str(tallyrec.TallyNumber) I even tried: tn = str(tallyrec.TallyNumber) result = client.recordCartons(tallyNumber=%s % (tn)) I am logging the values used in the call, and TallyNumber is always reported as a valid string. The values in the log messages that indicate success look exactly the same as the values in the log messages that indicate a failure. How do I get TallyNumber into some kind of form that will not cause the call to timeout? Any clues would be very much appreciated... Thanks! Nick --
[web2py] Documentation bug, mail attachment initializer
Hi folks, Just a quick documentation bug: In http://web2py.com/books/default/chapter/29/08#Sending-emails, the attachment object initializer is referred to as Mail.Attachment(). It took me a little experimentation, but I had to use mail.Attachment() for things to work. Someone might want to update the documentation to reflect the correct case. Many thanks to Massimo and other contributors... Web2py has been an excellent tool for building our in-house applications. Nick --