Your first problem. I am going to need your help in debugging this.
Lines 134-135 are
if request.vars.query:
match=regex.match(request.vars.query)
I do not see how you can get the error below undelss you have
request.vars.query=something in you model.
In the second case. appadmin extends 'layout.html'. That is probably
making the difference.
Massimo
On Dec 9, 4:13 am, Fran <[EMAIL PROTECTED]> wrote:
> > I posted 1.53.5 fixing a number of small issues. That somehow I did
> > not catch before. This should be one of them.
> > Let me know.
>
> Same problem:
>
> Traceback (most recent call last):
> File "C:\Bin\web2py\gluon\restricted.py", line 62, in restricted
> exec ccode in environment
> File "C:\Bin\web2py\applications\sahana/controllers/appadmin.py",
> line 211, in <module>
> File "C:\Bin\web2py\gluon\globals.py", line 55, in <lambda>
> self._caller=lambda f: f()
> File "C:\Bin\web2py\applications\sahana/controllers/appadmin.py",
> line 135, in select
> match=regex.match(request.vars.query)
> TypeError: expected string or buffer
>
> I exported my application, then installed a fresh web2py & imported
> into that.
> I copied appadmin.py & appadmin.html from welcome to my app
> (I then amended appadmin.html to extend layout_default.html)
>
> I also tried adding the same 2 databases to the welcome app & filling
> them with sample data - get the same error.
> I tested here as well because appdmin inside my app is behaving
> differently to the welcome/appadmin:
> welcome's appadmin HTML has a complex layout:
> <body>
> <div id="header">
> <div id="header_inner" class="fixed">
> <div id="logo">
> </div>
> <div id="menu">
> </div>
> </div>
> </div>
> <div id="main">
> <div id="main_inner" class="fixed">
> <div id="primaryContent_columnless">
> <div id="columnA_columnless">
> <h1>Available databases and tables</h1>
>
> myapp's appadmin HTML simply goes straight from:
> <body>
> <h1>Available databases and tables</h1>
>
> Have no idea why this should be since the extended & included files
> are identical in each case (other than the path changes & I can see
> all files getting loaded properly)
> - basically web2py_ajax.html is included properly, but then the the
> body from layout_default.html isn't...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---