!...@#$ FALSE ALARM

There was a missing app file that the controller was failing to
import. While looking around at the app folders I looked into the
errors folder and read through the last file. This gave me the error.

I find this repeatedly (about Python). Being a noobie, I find that
python fails ***SILENTLY*** and this is no fun at all.
I guess because the error was in an import statement in the
controller, the svr could just go on running. Ok, so now I've learned
to look thru the errors folder. Why was a ticket not generated for
this?

---
Rb


On Sep 11, 11:45 am, rb <[email protected]> wrote:
> The svr is running on Ubuntu 9.04 Linux. The client is WinXP.
>
> The client function is: tRows = self.svr.xrSelectTblInsts
> (self.frmName)
>
> and it maps to the svr function:
>
> @service.xmlrpc
> def xrSelectTblInsts( frmName, tblInstName=None):
>     if tblInstName == None:
>         rows = db(db.tblInsts.frmName==frmName).select()
>     else:
>         rows = db((db.tblInsts.frmName==frmName)& \
>                   (db.tblInsts.tblInstName==tblInstName)).select()
>     return rows.response
>
> In desperation I also nuked all the database files. This had no
> effect.
>
> ---
> Rb
>
> On Sep 11, 11:36 am, mdipierro <[email protected]> wrote:
>
> > what os? how does the function look like? can anybody reproduce this?
>
> > On Sep 11, 1:28 pm, rb <[email protected]> wrote:
>
> > > I tried to upgrade once before but ran into problems. So I've stayed
> > > at 1.65.5. Today I upgraded to 1.66.2 and I'm getting the 500 INTERNAL
> > > SERVER error when I make a xmlrpc call.
>
> > > ===
> > > Traceback (most recent call last):
> > >   File "D:\User1\Docs\Dev\rnapl\src\rnalaunch.py", line 200, in
> > > OnItemActivated
> > >     glb.formz[glb.uomName] = c_uom.CtlrView(None, self.urlPath, id=-1)
> > >   File "D:\User1\Docs\Dev\rnapl\src\c_uom.py", line 26, in __init__
> > >     name="c_uom")
> > >   File "D:\User1\Docs\Dev\rnapl\src\c_form1.py", line 983, in __init__
> > >     self.frmTree = m_form1.DocFrm (self.svr, frmName)
> > >   File "D:\User1\Docs\Dev\rnapl\src\m_form1.py", line 485, in __init__
> > >     self.CreateSubTbls()
> > >   File "D:\User1\Docs\Dev\rnapl\src\m_form1.py", line 508, in
> > > CreateSubTbls
> > >     tRows = self.svr.xrSelectTblInsts(self.frmName)
> > >   File "C:\Python25\lib\xmlrpclib.py", line 1147, in __call__
> > >     return self.__send(self.__name, args)
> > >   File "C:\Python25\lib\xmlrpclib.py", line 1437, in __request
> > >     verbose=self.__verbose
> > >   File "C:\Python25\lib\xmlrpclib.py", line 1191, in request
> > >     headers
> > > xmlrpclib.ProtocolError: <ProtocolError for ***:1150/svrrnapos/default/
> > > call/xmlrpc: 500 INTERNAL SERVER ERROR>
> > > ===
>
> > > As I understand it, a 400 error is me screwing up the function name or
> > > argument list. A 500 error is something in the svr is malfunctioning.
>
> > > To upgrade I renamed my old folder, downloaded the new web2py_src.zip
> > > file and expanded it into a folder (having the original name). I then
> > > fired up web2py manually which allowed it to create its application
> > > folder, etc. I then shut it down and copied over my svrrnapos app
> > > folder into the applications folder. I then started up web2py (the
> > > usual way, with the recycled password, etc). I then looked at the
> > > admin interface from my browser and everything looks right. When I run
> > > my xmlrpc client app I get the above traceback.
>
> > > Help!
>
> > > --
> > > Rb
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to