[web2py] Re: how to save controller vars into a field?

2017-09-06 Thread Alex Glaros
am still having trouble making it work What data structure type do I vars in so that user can return next day and have bookmarks work? Right now is stored in "string" field in a regular table. Tried "json" field type but Postgres rejected. Is it supposed be some sort of dictionary field?

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Dave S
On Wednesday, September 6, 2017 at 12:23:50 AM UTC-7, Wabbajack wrote: > > Hi Kiran, > > Yes the folders cache, sessions, and error have no file inside... > Is there any other way to clear this folders? > I just manually delete all files in each folder.. > and also i have tried restarting the

[web2py] Re: Changing password error message

2017-09-06 Thread Anthony
Why do you want to validate the old password? The only requirement should be that it actually matches the old password, and therefore the only error message you would want to report is that the password doesn't match (which can be customized via auth.messages.invalid_password). Anthony On

[web2py] Re: how to save controller vars into a field?

2017-09-06 Thread Leonel Câmara
One way to do it would be: saved_menu_vars = urllib.quote(json.dumps(request.get_vars)) Then in the controller you could: url_vars = json.loads(request.vars.saved_menu_vars) Or you could simply: URL('default', 'manage_menu_favorites', vars=dict(specificURL = request.url, **request.get_vars))

[web2py] Re: Adding multiple records in single table

2017-09-06 Thread 黄祥
just an idea, why not create everything into 1 SQLFORM.factory() and then store them into a session, during form.validate(), you can validate the data and insert or update into their own tables best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Adding multiple records in single table

2017-09-06 Thread Shazia Nusrat
I have an application "Survey" for students where I need to update multiple records against single table "Questions". These question features may vary for each record as some would be multiple choices/radio/checkbox etc. Following are my tables: db.define_table('survey_question',

[web2py] Changing password error message

2017-09-06 Thread Simona Chovancová
I have a table defined like this: form_change_password = auth.change_password() form_change_password.element( 'input', _name='old_password')['_id'] = 'form-4' form_change_password.element( 'input', _name='new_password')['_id'] = 'form-5' form_change_password.element(

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Kiran Subbaraman
Hello Jak, Not sure what could be causing the issue, then. Will get back to you if I have any useful suggestions. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 06-Sep-17 1:26 PM, Wabbajack wrote: Hi Kiran, Yes exactly i have copied a

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Wabbajack
Hi Kiran, Yes exactly i have copied a 2.9.11 app into a 2.14.6 web2py environment and try to run it... Also right now i tried removing *.pyc files... anyways i dont have much .pyc file... for now i have only deleted __init__.pyc only from web2py files Also i have Clean on the admin

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Kiran Subbaraman
Didn't notice it earlier, but the error seems to have been raised from a 2.9.12 web2py system. So, just to confirm, you have copied your 2.9.11 app, into a 2.14.6 web2py environment. And trying to run it from in there. Also, looks like you had pre-compiled the 2.9.11 app. It is a good idea to

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Wabbajack
Hi Kiran, Yes the folders cache, sessions, and error have no file inside... Is there any other way to clear this folders? I just manually delete all files in each folder.. and also i have tried restarting the web2py itself Still the error exist Thanks, Jak On Wednesday, September 6, 2017 at

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Kiran Subbaraman
You should clear out the following files - sessions / errors / cache content - from your 2.9.11 based application Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 06-Sep-17 10:26 AM, Wabbajack wrote: Hi I also go this Error... I am running