[web2py] Re: Escaping '%' percent character

2014-02-14 Thread Massimo Di Pierro
SQL Injection vulnerability here! Instead do: db(db.tableX.fieldY.contains(something[0])).select() On Friday, 14 February 2014 16:46:50 UTC-6, NeoToren wrote: > > If you need it for running a SQL query using the LIKE operator...the > following worked for me: > > sqlstring = "SELECT * FROM tableX

[web2py] Re: Serving images uploaded with Field('file', 'upload') as static assets?

2014-02-14 Thread Massimo Di Pierro
def index(): form=SQLFORM(db.post).process() if form.accepted: redirect(URL('download',args=form.vars.file)) return dict(form=form) def download(): return response.download() # already in scaffolding app! On Friday, 14 February 2014 18:08:25 UTC-6, HittingSmoke wrote: > > I'm build

[web2py] Re: web2py API document, and method return values

2014-02-14 Thread Massimo Di Pierro
yes. Should return 1 or 0. On Friday, 14 February 2014 18:09:46 UTC-6, Kiran Subbaraman wrote: > > Hello, > I was looking at this specific method update_record, and found it to be > useful. I would like to know what its return values are based on whether > the update succeeded or failed. > I r

[web2py] Re: ReCaptcha: setting key 'login_catpcha' does not exist?

2014-02-14 Thread User
good catch it's working now On Friday, February 14, 2014 11:06:39 PM UTC-5, Massimo Di Pierro wrote: > > auth.settings.login_catpcha = Recaptcha(request, public_key, private_key) > > should be > > auth.settings.login_captcha = Recaptcha(request, public_key, private_key) > > On Friday, 14 Februar

[web2py] Re: Autodelete, uploadseparate: implementing in production.

2014-02-14 Thread Encompass solutions
Is there a way I can migrate the data? I don't know the patterns on how the directories are stored. On Tuesday, February 11, 2014 4:04:36 PM UTC+2, Massimo Di Pierro wrote: > > uploadseparate does not move data. The system will be unable to find > existing data unless you move the already uploa

Re: [web2py] Re: CAS provider and registration

2014-02-14 Thread Alexei Vinidiktov
How can I add the register button to the cad login form (page)? On Thu, Aug 29, 2013 at 11:12 PM, Larry Weinberg wrote: > I can get the register to redirect as I wanted by adding this to the CAS > server application's default controller index function: > >if session.service_arg: > re

Re: [web2py] Re: CAS provider and registration

2014-02-14 Thread Alexei Vinidiktov
I need the same functionality for my app. I've checked the trunk but it doesn't appear to have it implemented. On Wed, Aug 28, 2013 at 10:24 PM, Larry Weinberg wrote: > > It look like trunk gives the same results. > >- I create two new apps up casserve and casclient >- In casclient I cre

Re: [web2py] CAS Question

2014-02-14 Thread Alexei Vinidiktov
I'd like to hear about the pros and cons too. On Wed, Sep 18, 2013 at 3:42 AM, António Ramos wrote: > I´m planning on having multiple apps in my web2py server. > > I think i should use CAS but seems correct to create a CAS app only for > that purpose,Authentication. > > I tried using some of t

[web2py] apache2 config question re mod_wsgi when in MPM prefork, threads=1 sounds wrong

2014-02-14 Thread Tim Richardson
after running the very awesome deployment script to set up web2py/apache/postgres on ubuntu12.04 LTS, there is this line WSGIDaemonProcess web2py user=www-data group=www-data processes=1 threads=1 The web2py book advises to in fact not specify processes and threads, which then defaults to one p

<    1   2