[web2py] Anyone know how to add a web2py URL in Google App Engine in app.yaml

2016-01-01 Thread Lou C
I want to add authorization to the following url, is this the right path for a web2py controller url ? - url: /applications/test/default/do_something/ script: none login: admin auth_fail_action: unauthorized -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: How do I change the look of a forms without using bootstrap? I am not getting any source to study it

2016-01-01 Thread p a
Maybe he/she was asking for custom forms: http://web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms El viernes, 1 de enero de 2016, 11:34:07 (UTC+1), Niphlod escribió: > > strange question. If you know what html and css are, you know what to do > already. > -- Resources:

[web2py] Re: How do I create SQLFORM of a db with not all fields of the db?

2016-01-01 Thread pbreit
I've been liking using "fields" recently for its explicitness. On Friday, January 1, 2016 at 8:14:50 AM UTC-8, Anthony wrote: > > On Friday, January 1, 2016 at 10:31:23 AM UTC-5, RAGHIB R wrote: >> >> Suppose a db has fields: name,roll,gender and I want to insert only into >> name and gender as

[web2py] Re: How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread RAGHIB R
@Anthony, it did upload to the 'person' table as in upload folder I can read it as person.image.something but the later part didn't work. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/

[web2py] Re: How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread RAGHIB R
This didn't work. Can you please edit the code above and then point out the mistake? -- 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 me

[web2py] Re: How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread Anthony
Why use factory rather than SQLFORM with dbio=False? Anyway, the problem is that when a file is uploaded, its new name starts with the table and field name from the DAL model, and that table and field name are then used to locate the file on the filesystem. With SQLFORM.factory, a dummy DAL tab

[web2py] Re: How do I create SQLFORM of a db with not all fields of the db?

2016-01-01 Thread Anthony
On Friday, January 1, 2016 at 10:31:23 AM UTC-5, RAGHIB R wrote: > > Suppose a db has fields: name,roll,gender and I want to insert only into > name and gender as of now , thus create a SQLFORM only for name and gender. > How do I do that without putting roll as both readabke and writable as > f

[web2py] How do I create SQLFORM of a db with not all fields of the db?

2016-01-01 Thread RAGHIB R
Suppose a db has fields: name,roll,gender and I want to insert only into name and gender as of now , thus create a SQLFORM only for name and gender. How do I do that without putting roll as both readabke and writable as false? -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread RAGHIB R
My codes are : (it is uploading the image using sqlformfactory nicely but there is some problem with the following one) Form=SQLFORM.factory(Field('image','upload',uploadfolder=os.path.join(request.folder,'uploads/'))) if Form.accepts(request.vars,session): db.person.insert(image=request.var

[web2py] How to upload an image using SQLFORMfactory in a folder & link same image to field of existing form

2016-01-01 Thread RAGHIB R
My codes are : (it is uploading the image using sqlformfactory nicely but there is some problem with the following one) Form=SQLFORM.factory(Field('image','upload',uploadfolder=os.path.join(request.folder,'uploads/'))) if Form.accepts(request.vars,session): db.person.insert(image=request.va

[web2py] File not uploading in upload folder when using SQLFORM.factory. Why this code not working?

2016-01-01 Thread RAGHIB R
Form=SQLFORM.factory(Field('image', 'upload', uploadfolder=os.path.join(request.folder,'uploads'))) It says os is not defined. When I just put: uploadfolder=('uploads') It just creates an image of 0 bytes which when checked can't be opened becayse it has not uploaded, just created. i an using w

[web2py] How do you change css for inbuilt SQLFORM or FORMs called from default.py?

2016-01-01 Thread RAGHIB R
-- 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 because you are subscribed to the Google Groups "web2py-users" group. To unsubsc

[web2py] Why this form doesn't show the field name with drop down set options as intuitive? (see below)

2016-01-01 Thread RAGHIB R
Form=FORM(INPUT(_name='gender', requires=IS_IN_SET(['MALE','FEMALE'])), INPUT( _type='submit')) -- 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 recei

[web2py] Why this form doesn't show the field name with drop down set options as intuitive? (see below)

2016-01-01 Thread RAGHIB R
Form=FORM(INPUT(_name='gender' requires=IS_IN_SET(['MALE','FEMALE']), INPUT( _type='submit')) -- 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 receive

[web2py] Re: How do I change the look of a forms without using bootstrap? I am not getting any source to study it

2016-01-01 Thread RAGHIB R
Dude I am asking about inbuilt forms like SQLFORM and form called from default.py -- 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 messa

[web2py] Re: How do I change the look of a forms without using bootstrap? I am not getting any source to study it

2016-01-01 Thread Niphlod
strange question. If you know what html and css are, you know what to do already. If you don't, I strongly suggest you keep using a css framework, as bootstrap is, to make things easy for you That being said, there's plenty of guides on css, html and js. You can start http://www.w3schools.com/

[web2py] How do I change the look of a forms without using bootstrap? I am not getting any source to study it

2016-01-01 Thread RAGHIB R
Please give me the source at least. -- 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 because you are subscribed to the Google Gro