[web2py] Re: syntax for updating record with factory

2015-06-07 Thread Alex Glaros
I checked older version on PythonAnywhere and exact same code works perfectly, so It's not my browser or form code. What has changed are changes I made somewhere, but where? Recently added this session-related code but disabled it and problem persists session.saved_purpose =

[web2py] Re: Virtual fields disapeared from select() results (v2.11.2)

2015-06-07 Thread Paolo Valleri
Hi, The following works db=DAL('sqlite:memory') db.define_table('tt', Field('vv', 'integer'), Field.Virtual('x', lambda row: row.tt.vv * 10)) db.tt.insert(vv='1') print db(db.tt).select().first() printing Row {'x': 10L, 'id': 1L, 'vv': 1L} We need more details to understand what is

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread villas
Maybe also deleting all the existing sessions will also help. Good luck with it. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this

[web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-07 Thread villas
I agree with Niphlod about the danger of creating another 'repository of untested thingies'. The existing web2pyslices is already pretty good and maybe this one could be better. But what we are missing is the dedicated effort required to keep things up to date. I guess we are all hoping that

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread villas
In addition to Anthony's idea. Check these: 1. On the example you posted maybe the indentation was wrong, but 'redirect' should have another indent otherwise it would redirect every time! 2. Make sure you are displaying the form in your view with simply this: {{=form}} All the best. D

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread villas
Hi Alex, You wouldn't usually use factory if you are updating a specific DB record. Anyhow update_record takes a dict: record.update_record(**dict(form.vars)) Maybe read the book chapter on forms again. Best wishes D On Sunday, 7 June 2015 06:50:38 UTC+1, Alex Glaros wrote: I cannot find

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread Alex Glaros
okay, didn't want to use factory anyway. Reason I asked is because all of my previously-working forms quit working. They don't stop to let user type in content. No errors, control just proceeds past the form. Did I change change some global config setting? This used to work: form =

[web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-07 Thread Ron Chatterjee
paid or not, I like the idea of having one site than two. Its confusing enough just to log in sometimes. lol., let alone looking for which site to go. On Sunday, June 7, 2015 at 8:27:59 AM UTC-4, villas wrote: I agree with Niphlod about the danger of creating another 'repository of untested

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread Anthony
Is it possible your browser isn't returning cookies or you have added some code that is clearing the sessions somewhere? By default, form.process() provides CSRF protection, which involves the session and therefore the session cookie -- messing with those will cause form processing to fail

[web2py] SQLFORM extracolumns

2015-06-07 Thread villas
I believe 'extracolumns' is an undocumented feature of SQLTABLE, however, it doesn't seem to work because it throws a ticket. Maybe someone could try something like this and let me know what I'm doing wrong. extracolumns = [{'label': A('Extra', _href='#'), 'class': '',

[web2py] Anybody Using PTVS (Python Tools for Visual Studio)?

2015-06-07 Thread Brian M
Is anybody developing with PTVS who's got debugging and everything setup and willing to share your config? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues)

[web2py] Re: using anyserver.py in production

2015-06-07 Thread Lewis
Thanks for all this. So, the world seems to back UWSGI as the preferrred solution. I'll get over it. I see that you are saying that once when one does need performance tuning with multiple workers, uwsgi is both more performant and more tunable. I think having a fabric deploy script will

[web2py] Re: Virtual fields disapeared from select() results (v2.11.2)

2015-06-07 Thread Donatas Burba
So I must take some more testing and if it fails, I will paste sample source. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Mac Application Binaries

2015-06-07 Thread joseph simpson
I have followed the instructions in the book that detail how to distribute applications as binaries. ( http://web2py.com/books/default/chapter/29/14#How-to-distribute-your-applications-as-binaries ) On my mac when I open the app, I am presented with the opportunity to set an admin password and

[web2py] Re: Debugging Web2py applications.

2015-06-07 Thread Sébastien Loix
In case you want some nice formatted prints, I am using json dumps to check on large dicts otherwise very complex to read in the console: import json print json.dumps(my_dict, sort_keys=True, indent=4) On Saturday, 6 June 2015 05:26:39 UTC+2, am...@gettalent.com wrote: One debugging method

[web2py] Re: Install in hostgator

2015-06-07 Thread 'Dick Detering' via web2py-users
I think Hostgator is a good web host but it's certainly not the best one you can find out there. The problem is that all those companies are shouting out loud that they are the best and most of them use the same arguments such as 99.9% up time etc. It has become too much all of the same. The

[web2py] Auth callback settings for reset_password and request_reset_password

2015-06-07 Thread James McGlynn
Hello, I have a few questions about using callbacks with reset_password and request_reset_password. I'm using web2py 2.9.5, but I checked the corresponding code from the master branch and github in gluon/tools.py and it seems to be the same. Why does the callback

[web2py] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2015-06-07 Thread kareem M
YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire Maan Al sanea with *bank of America* and The owner of Saad Hospital and Schools in the Eastern Province in *Saudi Arabia* and the Chairman of the Board of Directors of Awal Bank in *Bahrain* With

[web2py] web2py.test: how to log in in the test environment

2015-06-07 Thread Rafal Dobosz
Hello. I am trying to use the web2py.test example to do testing in my app and while I am successfully adding users to the temporary database, I can't figure out how to log in. The web2py generated login form has no ID. How do I go around that? This is the testing setup I'm referring to

[web2py] password zip

2015-06-07 Thread milad ranaei siadat
hi . i am milad . i downloaded web2py for mac . but when i want extract zip file it will need password . what should i do ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Fixing cursor issues in Web2Py on Google AppEngine?

2015-06-07 Thread Michael Jackson
This issue was fixed by updating to Web2Py v2.11.2 On Sunday, May 31, 2015 at 2:11:16 PM UTC-7, Michael Jackson wrote: I have a simple UI for interacting with a database set up on a Google AppEngine application using Web2Py. I'm using the default Grid builder to settings to display it. Here

[web2py] zip file need password

2015-06-07 Thread milad ranaei siadat
hi . i am milad . i downloaded web2py for mac . but when i want extract zip file it will need password . i don't have password . where is password ? help meee -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: How to pass arguments with a form

2015-06-07 Thread Chaitu P
Hello, This is my web page. Iam showing the questions using loop. If for example student has answered for 1st question I should be able to save answer for that corresponding id.Also I want to save the student id as well. I would appreciate if someone helps. [image: Inline image 1] On Fri, Jun 5,

[web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-07 Thread Massimo Di Pierro
The maintainers of web2pyslices do not want to do it any more. The domain has been donated to me (although we are in the process of transferring it) so if Ivica want to put the effort of maintaining an alternate site, that is better for me than maintaining web2pyslices, as long as info is not

[web2py] form validate check form vars

2015-06-07 Thread 黄祥
hi, form validate check form vars seems not working when put the conditional logic on it. already tried : - form.vars - request.vars - request.get_vars - request.post_vars but it seems that everything is ignore by the form logic. e.g. *models/db.py* db.receipt_header.receipt_type.requires =

[web2py] Re: Auth callback settings for reset_password and request_reset_password

2015-06-07 Thread Massimo Di Pierro
It is a bug. I just fixed it in trunk. Now request_reset_password uses request_reset_password_onaccept request_reset_password_onvalidation On Sunday, 7 June 2015 19:46:33 UTC-5, James McGlynn wrote: Hello, I have a few questions about using callbacks with reset_password and

[web2py] Re: form validate check form vars

2015-06-07 Thread Massimo Di Pierro
You cannot do it this way because you are not processing the form. You are validating and changing requirement after it is validated and therefore they are ignored. You should look into the form.process(onvalidate = ) option. On Sunday, 7 June 2015 19:58:59 UTC-5, 黄祥 wrote: hi,