Seems it's already in the github repo and is ready to be released.
On Saturday, September 28, 2019 at 2:48:36 AM UTC-5, Massimo Di Pierro
wrote:
>
> yes. can you submit a Pr?
>
> On Friday, 27 September 2019 19:59:21 UTC-7, zxynax wrote:
>>
>> In to
In tools.py from gluon:
2643 redirect(self.url(args=request.args,
vars=request.vars),client_side=settings.client_side)
Isn't that supposed to say request.get_vars ?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/w
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This is a handler for lighttpd+fastcgi
This file has to be in the PYTHONPATH
Put something like this in the
Lightty config:
server.modules += ("mod_fastcgi")
fastcgi.debug = 1
$HTTP["url"] !~ "^/static" {
fastcgi.server = ( "" => ((
"bin-path" => "/srv/web2py/fcgihandler.py",
"check-local" => "disable",
"socket" => "/tmp/web2py.sock",
"max-procs" => 4
)))
}
The sour
Have run web2py on lighttpd fcgi for years. Finally decided to run it with
Python3 rather than 2. Fcgi.py from gluon/contrib throws many errors.
So is fcgi not recommended? If so what is the recommended method?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http
desired: http://www.example.com/app/default/index?blah=1&blah=2
There does not seem to be any way to do this with URL.
URL(request.application,'default','index',vars={'blah':1,'blah':2})
would simply write over first key val and
URL(request.application,'default','index',vars={'blah':[1,2]})
tries
Took a bit of playing/searching but I've got it now.
No worries.
Love the framework Massimo!
On Apr 20, 12:17 pm, zxynax wrote:
> would like the following behavior:
> request =http://www.example.com/
> to go tohttp://www.example.com/exampleapplication
> instead of what it
would like the following behavior:
request = http://www.example.com/
to go to http://www.example.com/exampleapplication
instead of what it would do normally which would be
http://www.example.com/welcome/default/index
But I would like this to be entirely unseen by the user.
--
Subscription setti
Don't know if this is the right place for this.
On page 70 of the cookbook it shows the example below:
def index():
form = SQLFORM(db.dog)
if form.accept(request.vars,session):
response.flash = "record %i created" % form.vars.id
return dict(form=form)
Neither FORM nor SQLFORM have a m
I get an error when I use that setup as well. Already used by another
worker
On Apr 7, 4:19 pm, bsnipes wrote:
> Just came across this nice post and am going to try it tonight:
>
> http://groups.google.com/group/web2py/browse_thread/thread/8bab53777c...
>
> Brian
--~--~-~--~~---
That begs the question - what deployment method are you using?
On Apr 7, 1:39 pm, bsnipes wrote:
> On Apr 7, 1:32 pm, zxynax wrote:
>
> > So I found a workaround.
>
> Great!
>
>
>
> > The problem I have with this is I'd like to manipulate the xml
>
'd like to manipulate the xml
contained within the .svg with web2py.
Is an email to the author in order?
On Apr 7, 1:21 pm, zxynax wrote:
> I uncommented the alias line and it now serves SVG.
> Problem is that none of the web2py code runs.
>
> On Apr 7, 10:31 am, bsnipes wrote:
I uncommented the alias line and it now serves SVG.
Problem is that none of the web2py code runs.
On Apr 7, 10:31 am, bsnipes wrote:
> On Apr 7, 9:52 am, zxynax wrote:
>
> > I thought that's what you intended. But as I'm the one who's
> > obviously not un
/applications/"
In my config I have that commented out. As when I have it uncommented
it doesn't allow WSGI to run.
On Apr 7, 9:25 am, bsnipes wrote:
> On Apr 7, 9:20 am, zxynax wrote:
>
> > a2enmod web2py returns "ERROR: Module web2py does not exist!"
>
&g
a2enmod web2py returns "ERROR: Module web2py does not exist!"
So am I missing a module?!? I've not read anything that indicates
that a web2py module should exist. Maybe my eyes are not working?!?
mime.conf and mime.load are indeed under /etc/apache/mods-enabled/
mime.conf contains the line:
Ty
without having to make a separate vhost purely for .svg files.
Any further input is indeed appreciated.
On Apr 6, 3:34 pm, bsnipes wrote:
> On Apr 6, 2:40 pm, zxynax wrote:
>
> > Thanks for your prompt attention.
>
> > OS is Ubuntu and the mime.types has the images/svg+xml defin
Thanks for your prompt attention.
OS is Ubuntu and the mime.types has the images/svg+xml definition and
it is uncommented. I can even serve svg images if I use a vhost that
does not utilize WSGI.
On Apr 6, 2:22 pm, bsnipes wrote:
> On Apr 6, 2:19 pm, zxynax wrote:
>
> > I'
I'm trying to have apache serve svg images as they should be served.
Problem is the doctype seems to always come back as text/plain which
casues text rather than an image to show.
Anybody else have experience with this?
--~--~-~--~~~---~--~~
You received this messa
e to email the entire app and I
> will try look at it during the week-end.
>
> Massimo
>
> On Feb 20, 3:47 pm, zxynax wrote:
>
>
>
> > I believe that is exactly what is happening. Anyway...for your
> > viewing enjoyment:
>
> > > "http
I believe that is exactly what is happening. Anyway...for your
viewing enjoyment:
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
{{=response.title or URL(r=request)}}
{{include 'web2py_ajax.html'}}