Re: [web2py] How to insert data using .csv or .xml file

2015-08-02 Thread Selman Kocael
you can also import csv file with code. but i have not try it. 2015-08-03 8:55 GMT+03:00 Sai Harsh Tondomker : > No need to write code to store in db. > > On Mon, Aug 3, 2015 at 11:07 AM, Selman Kocael > wrote: > >> simple way: >> >> in http://127.0.0.1:8000/[your-app-name]/appadmin/select/db?q

Re: [web2py] How to insert data using .csv or .xml file

2015-08-02 Thread Sai Harsh Tondomker
No need to write code to store in db. On Mon, Aug 3, 2015 at 11:07 AM, Selman Kocael wrote: > simple way: > > in http://127.0.0.1:8000/[your-app-name]/appadmin/select/db?query=db. > Questions.id%3E0 page: > browse your csv file and click import csv button. > > > if an error displayed, you must e

Re: [web2py] How to insert data using .csv or .xml file

2015-08-02 Thread Selman Kocael
simple way: in http://127.0.0.1:8000/[your-app-name]/appadmin/select/db?query=db. Questions.id%3E0 page: browse your csv file and click import csv button. if an error displayed, you must edit yoru csv file. 2015-08-03 8:28 GMT+03:00 Sai Harsh Tondomker : > Here is my db.py > db.define_table("Q

[web2py] How to insert data using .csv or .xml file

2015-08-02 Thread Sai Harsh Tondomker
Here is my db.py db.define_table("Questions", Field('quesno','integer',notnull=True,unique=True), Field('question', 'text'), Field('qupload','upload',label='Upload Image'), Field('optionA', 'string'), Field('optionB', 'string'), Field('optionC', 'string'), Field('optionD', 'string'),

[web2py] Re: Remove remember me

2015-08-02 Thread Annet
HI, In your model file add this setting: auth.settings.remember_me_form = False You'll find all options for auth.settings here: http://web2py.com/books/default/chapter/29/09/access-control#Auth-Settings-and-messages Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com

[web2py] Remove remember me

2015-08-02 Thread reddyreddy
Hello all, I have used default login page in my application. I do not want Remember me in my application. So I want to remove remember me label and the checkbox. But I did not find it in any where in the application. Can you please help -- Resources: - http://web2py.com - http://web2py.com/

[web2py] How to do an ajax crud-form submission without using LOAD()

2015-08-02 Thread Samuel Sowah
First of all I want to know if this is possible because currently all my crud forms are submitted via ajax, using the LOAD component, but I am wondering if it's possible to submit crud forms via ajax without requiring LOAD? If so, how? and if not, what other ways does web2py implement ajax form

[web2py] Re: if request.vars._next.contains('default/index'):

2015-08-02 Thread Alex Glaros
I typed this in user.html {{=request.get_vars}} : print request.get_vars {{=request.post_vars}} : print request.post_vars and got this: : print request.get_vars : print request.post_vars It's a little over my head so will postpone working on it until I know w2p a little better. Unless any

[web2py] Re: When will we have a "proper" forum ?

2015-08-02 Thread Massimo Di Pierro
Before we take bold actions... what are the problems with this forum that we want to solve? For me the only real issue is poor search capability but I have no reason to believe that Discourse would be better on a forum of this size. On Sunday, 2 August 2015 19:28:31 UTC-5, Anthony wrote: > > O

[web2py] Re: web2py return list of uploaded files with original filenames

2015-08-02 Thread Massimo Di Pierro
web2py exposes only actions, not all functions. An action is a function in a controller that takes no arguments and does not start with two underscores. Be very careful with using the original filename as name of the file. There are many possible vulnerabilities associated with this behavior, i

[web2py] Appconfig cast boolean

2015-08-02 Thread Mark Graves
What is the proper syntax for appconfig.ini if the cast is a boolean. With a fresh install of web2py source, appconfig.ini contents: ; App configuration ; db configuration [db] uri = sqlite://storage.sqlite migrate = 0 pool_size = 1 ; smtp address and credentials [smtp] se

[web2py] Re: Tutorial bootstrap+web2py

2015-08-02 Thread Massimo Di Pierro
if it works for you there should be no problem. On Sunday, 2 August 2015 18:56:30 UTC-5, Blutoh wrote: > > > FWIW, I have only been using web2py bout a month, but I have taken the > approach of adding my own style sheet and linking it in the layout.html > file. In my style sheet I override the

[web2py] Re: When will we have a "proper" forum ?

2015-08-02 Thread Anthony
On Sunday, August 2, 2015 at 7:56:02 PM UTC-4, Massimo Di Pierro wrote: > > Why metor and not simply use stackoverflow? > Note, the forum is not built with Meteor -- they are using the open source Discourse, which is a Rails/Ember.js app. Stack Overflow works well, but it is limited to well-defi

[web2py] Re: if request.vars._next.contains('default/index'):

2015-08-02 Thread Massimo Di Pierro
I do not think this is a good solution. You have a bug because request.vars._next should never be a list. It is a list because somehow there are two _next in the URL. Try print request.get_vars and request.post_vars when this happens to debug. On Sunday, 2 August 2015 18:34:28 UTC-5, Alex Glar

[web2py] web2py return list of uploaded files with original filenames

2015-08-02 Thread Vladimiras Lomovas
Hello I'm new to programming and web2py but here I'm doing my first project. I'm using web2py as a back-and for android app to get and transfer data. I need to return list of user uploaded files

[web2py] Re: Tutorial bootstrap+web2py

2015-08-02 Thread Blutoh
FWIW, I have only been using web2py bout a month, but I have taken the approach of adding my own style sheet and linking it in the layout.html file. In my style sheet I override the bootstrap and any other classes that I want to change (and only those classes). When I have it to my satisfac

[web2py] Re: When will we have a "proper" forum ?

2015-08-02 Thread Massimo Di Pierro
Why metor and not simply use stackoverflow? On Wednesday, 29 July 2015 13:36:59 UTC-5, Anthony wrote: > > > This one is very good as an example. >>> https://forums.meteor.com >>> A lot easier to learn from something like this... >>> >>> >> Anything specific about that exceites your interest? >> >

[web2py] Re: if request.vars._next.contains('default/index'):

2015-08-02 Thread Alex Glaros
okay, I think str() works if 'default/index' in str(request.vars._next): thanks Anthony Alex -- 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] Re: if request.vars._next.contains('default/index'):

2015-08-02 Thread Alex Glaros
somehow the logic doesn't take it gets evaluated by controller because if I change logic to a negative "not", then the controller goes to desired redirect if not('default/index' in request.vars._next): but value is "default/index" as can be seen http://127.0.0.1:8000/ES1/default/user/login?_

[web2py] Re: field value from row in a view

2015-08-02 Thread JorgeH
can you show us your controller? and db model? On Sunday, August 2, 2015 at 11:18:11 AM UTC-5, P Page-McCaw wrote: > > I am having a hard time understanding how to get values from a row in a > view. I think I am being really dim. (It would really help us amateurs to > have a more full descriptio

[web2py] Re: Create table without crud

2015-08-02 Thread Anthony
Table definitions by themselves don't generate CRUD functionality. The only place you get automatic CRUD functionality without explicitly creating it is appadmin. However, appadmin is only accessible by someone who also has access to the admin app, so the exposure should be fairly limited there

[web2py] Re: field value from row in a view

2015-08-02 Thread Anthony
I think we need to see actual code, including the model definitions and the query in the controller, as well as the actual error reported (the NoneType error doesn't quite make sense if the previous example did really return a Row). On Sunday, August 2, 2015 at 12:18:11 PM UTC-4, P Page-McCaw w

[web2py] Re: if request.vars._next.contains('default/index'):

2015-08-02 Thread Anthony
if 'default/index' in request.vars._next: On Sunday, August 2, 2015 at 12:32:50 PM UTC-4, Alex Glaros wrote: > > what is correct syntax for this? > > if request.vars._next.contains('default/index'): > > error is: > > 'list' object has no attribute > 'contains' > > thanks > > Alex Glaros > -- R

[web2py] if request.vars._next.contains('default/index'):

2015-08-02 Thread Alex Glaros
what is correct syntax for this? if request.vars._next.contains('default/index'): error is: 'list' object has no attribute 'contains' thanks Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.

[web2py] field value from row in a view

2015-08-02 Thread P Page-McCaw
I am having a hard time understanding how to get values from a row in a view. I think I am being really dim. (It would really help us amateurs to have a more full description of how to do database queries. Really I need "The Very Stupid Person's Guide to..." because I read the guide and then do

[web2py] Re: When will we have a "proper" forum ?

2015-08-02 Thread Dan Hett
As a newcomer, I agree. For instance, I asked a question about where I could find examples of the online videos. The key word that I needed to know was "appliances", searching Github. But, I did not know the right term. Searching the forum, I found several have asked this same question. I like

[web2py] Re: Nginx and uwsgi Internal Server Error

2015-08-02 Thread Riheldo Melo
I have a similar problem! On update of some files, change the permission. I fix using chown -R www-data:www-data /home/www-data Em segunda-feira, 4 de agosto de 2014 16:33:56 UTC-3, Jim S escreveu: > > Hi > > I'm getting a page that says - Internal Server Error > > whenever I try to access my

[web2py] Create table without crud

2015-08-02 Thread luis . valladares
Hello! I'm trying to define a table within web2py (with audit purpose) that doesnt generate any crud in any site of the website (including the appadmin) because this table only have to be modified using triggers inside the database but i cant find any proper option inside DAL documentation to d