[web2py] Re: Dal Field Types

2016-03-03 Thread Mirek Zvolský
just detail: db.resultats._fields Dne čtvrtek 3. března 2016 16:04:27 UTC+1 Anthony napsal(a): > > field_names = db.resultats.fields > field_types = [f.type for f in db.resultats] > > Anthony > > On Thursday, March 3, 2016 at 2:23:54 AM UTC-5, Daniel Lafrance wrote: >> >> Hi group >> >> I am

[web2py] Re: for those of us who do not understand ...

2016-03-03 Thread Mirek Zvolský
I like your work because you make things easier. What about colors? Is it good idea set them in html as classes? Shouldn't be better to have some semantic colors like "dark", "light", "neutral", "error", "notice", "info", "success"? But maybe we can import some module for colors, lets say:

Re: [web2py] Re: for those of us who do not understand ...

2016-03-03 Thread joseph simpson
Cool... thanks for all of your help ... Over the years.. On Thu, Mar 3, 2016 at 8:52 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > The modal example is in the source of the page. I will make a web2py app > based on this. > > On Thursday, 3 March 2016 13:19:03 UTC-6, Ron

[web2py] Questions about the mdipierro tutorials on vimeo? Is it ok to ask here?

2016-03-03 Thread Shayn Raney
I'm working through the Web2Py Video Course series on Vimeo posted by mdipierro and I have a few questions. Is this a good place to post them or is there a different group I should be looking for? Series is located at: https://vimeo.com/104800778 Thanks for any responses. -- Resources:

[web2py] Re: Shell

2016-03-03 Thread Shayn Raney
I'm am seeing the same thing when running the web2py shell via the administrative interface [Shell 2.13.4-stable+timestamp.2015.12.26.04.59.39 ] on Ubuntu 14.04 LTS with desktop services. Just typing '2+2' gives me 'None'. It acts as if the part that handles the return data for the shell is

[web2py] Re: for those of us who do not understand ...

2016-03-03 Thread Massimo Di Pierro
The modal example is in the source of the page. I will make a web2py app based on this. On Thursday, 3 March 2016 13:19:03 UTC-6, Ron Chatterjee wrote: > > Like how would I use a button with link or modal? How would I customize > the button inside web2py etc... > > On Thursday, March 3, 2016 at

[web2py] Re: unable to install application for " The file name(s) would be too long for the destination folder."

2016-03-03 Thread Dave S
On Thursday, March 3, 2016 at 6:28:48 PM UTC-8, Yibing Liu wrote: > > Thank you very much. > > I was happy to help. /dps > 在 2016年3月4日星期五 UTC+8上午3:27:31,Dave S写道: >> >> >> >> On Thursday, March 3, 2016 at 10:37:30 AM UTC-8, Yibing Liu wrote: >>> >>> Hello Everyone, I am installing an app

[web2py] Re: unable to install application for " The file name(s) would be too long for the destination folder."

2016-03-03 Thread Yibing Liu
Thank you very much. 在 2016年3月4日星期五 UTC+8上午3:27:31,Dave S写道: > > > > On Thursday, March 3, 2016 at 10:37:30 AM UTC-8, Yibing Liu wrote: >> >> Hello Everyone, I am installing an app from an .w2p file. However I get >> an error message "unable to install application". And I add the following >>

[web2py] Re: unable to install application for " The file name(s) would be too long for the destination folder."

2016-03-03 Thread Yibing Liu
在 2016年3月4日星期五 UTC+8上午2:37:30,Yibing Liu写道: > > Hello Everyone, I am installing an app from an .w2p file. However I get an > error message "unable to install application". And I add the following code > in gluon/admin.py app_install: > except Exception: > import traceback >

[web2py] Re: on button click show progress bar

2016-03-03 Thread Dave S
On Thursday, March 3, 2016 at 6:18:00 AM UTC-8, Yebach wrote: > > Hello > > I have call to controller function on button click that serves back a > download file. > > Since this can take a while (up to 10 seconds), i would like to create > some sort of progress bar or smth for user so he/she

[web2py] Re: how to create my own profile??

2016-03-03 Thread Dave S
On Thursday, March 3, 2016 at 12:12:34 PM UTC-8, prashant joshi wrote: > > how to make my profile like a facebook?? > if i am login then i will show my record as like image ,name,email > id.(.all fileld in stud_person table) > > this is table creteated > db.define_table('stud_person', >

[web2py] Re: Using Scheduler to delete database rows older than a timestamp

2016-03-03 Thread Dave S
On Thursday, March 3, 2016 at 11:57:46 AM UTC-8, Dave S wrote: > > > > On Thursday, March 3, 2016 at 10:37:30 AM UTC-8, Mohit Jain wrote: >> >> Hello, >> I would like to know how can one delete rows from a web2py table >> where if a specific field (a timestamp) is older than 24hours? I

Re: [web2py] custom form no submiting

2016-03-03 Thread Fabiano Almeida
*view:* {{extend 'layout.html'}} {{=form.custom.begin}} {{=db.stud_person.first_name .label}} {{=form.custom.widget.first_name}} {{=db.stud_person.middle_name .label}}

[web2py] how to create my own profile??

2016-03-03 Thread prashant joshi
how to make my profile like a facebook?? if i am login then i will show my record as like image ,name,email id.(.all fileld in stud_person table) this is table creteated db.define_table('stud_person', Field('image', 'upload'), Field('first_name',

[web2py] Re: Using Scheduler to delete database rows older than a timestamp

2016-03-03 Thread Dave S
On Thursday, March 3, 2016 at 10:37:30 AM UTC-8, Mohit Jain wrote: > > Hello, > I would like to know how can one delete rows from a web2py table where > if a specific field (a timestamp) is older than 24hours? I would like this > process to keep running in the background in fixed

[web2py] Re: unable to install application for " The file name(s) would be too long for the destination folder."

2016-03-03 Thread Dave S
On Thursday, March 3, 2016 at 10:37:30 AM UTC-8, Yibing Liu wrote: > > Hello Everyone, I am installing an app from an .w2p file. However I get an > error message "unable to install application". And I add the following code > in gluon/admin.py app_install: > except Exception: > import

[web2py] Re: for those of us who do not understand ...

2016-03-03 Thread Ron Chatterjee
Like how would I use a button with link or modal? How would I customize the button inside web2py etc... On Thursday, March 3, 2016 at 1:38:28 PM UTC-5, Massimo Di Pierro wrote: > > What kind of examples do you need? They are all in the HTML of the page > itself. > > On Thursday, 3 March 2016

[web2py] Re: Shell

2016-03-03 Thread Alex Glaros
is console shell available in Windows binary version? thanks Alex Glaros -- 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] Re: for those of us who do not understand ...

2016-03-03 Thread Massimo Di Pierro
What kind of examples do you need? They are all in the HTML of the page itself. On Thursday, 3 March 2016 09:26:03 UTC-6, Ron Chatterjee wrote: > > Interesting! Are you going to have few examples? > > On Thursday, March 3, 2016 at 3:43:51 AM UTC-5, Dave S wrote: >> >> >> >> On Wednesday, March

[web2py] Using Scheduler to delete database rows older than a timestamp

2016-03-03 Thread Mohit Jain
Hello, I would like to know how can one delete rows from a web2py table where if a specific field (a timestamp) is older than 24hours? I would like this process to keep running in the background in fixed time-intervals (every 5 minutes or so) and delete entries from the table where this

[web2py] unable to install application for " The file name(s) would be too long for the destination folder."

2016-03-03 Thread Yibing Liu
Hello Everyone, I am installing an app from an .w2p file. However I get an error message "unable to install application". And I add the following code in gluon/admin.py app_install: except Exception: import traceback print traceback.format_exc() if did_mkdir:

[web2py] custom form no submiting

2016-03-03 Thread prashant joshi
def register(): form=SQLFORM(db.stud_person) print form.errors if form.process().accepted: response.flash='Bitte warten' elif form.errors: response.flash='Bitte fuellen sie das Formular richtig aus' return dict(form=form) view:- {{=form.custom.begin}}

[web2py] Re: transpose standard view to mobile phone view

2016-03-03 Thread Pierre
Yes there are bootstrap_*.css files in the static section *stupid.css* looks good. I like the name toomuch much better than *nintelligent.css*:) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: for those of us who do not understand ...

2016-03-03 Thread Ron Chatterjee
Interesting! Are you going to have few examples? On Thursday, March 3, 2016 at 3:43:51 AM UTC-5, Dave S wrote: > > > > On Wednesday, March 2, 2016 at 11:27:57 PM UTC-8, Massimo Di Pierro wrote: >> >> A damn simple and easy css framework ... stupid.css >> >> https://t.co/9vB48IjYJK >> >> No

[web2py] Re: Dal Field Types

2016-03-03 Thread Anthony
field_names = db.resultats.fields field_types = [f.type for f in db.resultats] Anthony On Thursday, March 3, 2016 at 2:23:54 AM UTC-5, Daniel Lafrance wrote: > > Hi group > > I am trying to build a db dynamic app but I am stick on the following > problem. > > I am able to get the filenames of a

[web2py] Re: Web2Py application deployment on rented server

2016-03-03 Thread Anthony
Addressed on Stack Overflow: http://stackoverflow.com/questions/35719362/web2py-application-deployment-on-rented-server#comment59132798_35719362 If you are having trouble with the deployment documentation, you should explain your specific problems. What have you tried, and what has happened?

[web2py] Re: need help with FORM.confirm

2016-03-03 Thread Anthony
Have you put the form in your view somewhere via {{=form}}? Note, it doesn't generate a pop-up, just a standard form. Anthony On Thursday, March 3, 2016 at 2:23:53 AM UTC-5, Viator wrote: > > > Hello! > > I use a SQLFORM to enter client data which works perfectly. > The problem: when adding a

[web2py] Re: Can't get routes_onerror to working properly when mapping domain to apps

2016-03-03 Thread Lisandro
Yes in deed! Thanks for the heads up! El jueves, 3 de marzo de 2016, 11:49:52 (UTC-3), Anthony escribió: > > > routes_onerror = [] >> for app in apps: >> for code in ['403', '404', '503']: >> routes_onerror.append((r'%s/%s' % (app, code), r >> '/%s/static/%s.html' % (app, code))) >>

[web2py] Re: Shell

2016-03-03 Thread Anthony
Are you using the web-based shell in the admin app? If so, don't -- instead use the console shell. Anthony On Thursday, March 3, 2016 at 2:23:53 AM UTC-5, ANSHUL BASIA wrote: > > I keep getting none in the shell unlike 1:32:00 in the first video of > lecture. Where is the problem ? > --

[web2py] Re: Can't get routes_onerror to working properly when mapping domain to apps

2016-03-03 Thread Anthony
> routes_onerror = [] > for app in apps: > for code in ['403', '404', '503']: > routes_onerror.append((r'%s/%s' % (app, code), r > '/%s/static/%s.html' % (app, code))) > routes_onerror.append((r'%s/500' % app, ' > http://mainapp.com/admin/error_handler')) > Also, you should

[web2py] Re: request.post_vars - What I'm doing wrong ?

2016-03-03 Thread Anthony
Can you show the exact final code you are using? On Thursday, March 3, 2016 at 2:23:54 AM UTC-5, Rafael Venancio Dias wrote: > > My friends, I have that code bellow working hell: > > CONTROLLER: > def index3(): > num1 = '' > if request.post_vars: > num1 =

[web2py] Re: Threading in web2py

2016-03-03 Thread Anthony
First, I assume you actually used .update_record (there is no .update_row method). Second, if you are doing the updates outside of a web2py HTTP request, then you must call db.commit() at some point for the changes to be committed. If you want to use the scheduler, you might consider

[web2py] Re: Can't get routes_onerror to working properly when mapping domain to apps

2016-03-03 Thread Lisandro
Well, sorry to bother, I think I got it. I've just had to set the full path to the error handler, like this: routes_onerror = [] for app in apps: for code in ['403', '404', '503']: routes_onerror.append((r'%s/%s' % (app, code), r'/%s/static/%s.html' % (app, code)))

[web2py] Can't get routes_onerror to working properly when mapping domain to apps

2016-03-03 Thread Lisandro
I have *several web2py apps, and each one is accessibly from a specific domain*. I've achieved this using routes.py. Also, I'm using routes_onerror inside routes.py in order to show a custom static html file on error. That is working ok. This is my working routes.py: # -*- coding: utf-8 -*-

[web2py] on button click show progress bar

2016-03-03 Thread Yebach
Hello I have call to controller function on button click that serves back a download file. Since this can take a while (up to 10 seconds), i would like to create some sort of progress bar or smth for user so he/she knows smth is going on in the background and does not click 10 times. Any

[web2py] Re: assign default user.id to a field to a filed

2016-03-03 Thread Leonel Câmara
Are you logged in? Still I think the error is somewhere else since the way you defined the field allows a NULL value. -- 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] list:reference, multiple=True, validation error

2016-03-03 Thread villas
I just upgraded to latest trunk. list:reference field displays correctly but does not pass validation when saved back to the database. Error: 'value not in database'. I searched this group and found this post which is possibly

[web2py] assign default user.id to a field to a filed

2016-03-03 Thread Alessio Varalta
Hi I have a table with a field Field('created_by',db.auth_user,default=auth.user.id, writable=False), I want that when a user save a row the field created by take the id of the user and is a reference field for auth_user. I create a sqlfrom grid but when i try to save I have this error

[web2py] Threading in web2py

2016-03-03 Thread kecajkecaj123
Hi Guys, I have a "for" loop which goes thru every row in the table (1000 rows), do some calculation and update the row. But whole process takes around 2-3 sec for one row as i'm connecting to few external databases to collect data. So for 1k rows it takes ages to accoplish all those tasks.

[web2py] Re: request.post_vars - What I'm doing wrong ?

2016-03-03 Thread Dave S
On Wednesday, March 2, 2016 at 11:23:54 PM UTC-8, Rafael Venancio Dias wrote: > > My friends, I have that code bellow working hell: > > CONTROLLER: > def index3(): > num1 = '' > if request.post_vars: > num1 = str(request.post_vars.num1) > return locals() > > > VIEW

[web2py] Re: transpose standard view to mobile phone view

2016-03-03 Thread Dave S
On Wednesday, March 2, 2016 at 9:59:52 AM UTC-8, Pierre wrote: > > what about web2py id and class selectors ? > Can these work together with bootstrap ? > or is it to replace all built-in selector names with bootstrap names ? > Doesn't web2py ship with bootstrap? But also see Massimo's post

[web2py] Re: for those of us who do not understand ...

2016-03-03 Thread Dave S
On Wednesday, March 2, 2016 at 11:27:57 PM UTC-8, Massimo Di Pierro wrote: > > A damn simple and easy css framework ... stupid.css > > https://t.co/9vB48IjYJK > > No promise of backward compatibility is made, but comments and suggestions > for improvement are welcome. > Interesting. Minor

[web2py] Re: date format CYYMMDD

2016-03-03 Thread Dave S
On Wednesday, March 2, 2016 at 11:23:53 PM UTC-8, yell...@gmail.com wrote: > > > I like to convert date format field in DAL from CYYMMDD to MMDDYY and use > SQLFORMgrid to present on the view. > > How could be done, please help > > Thank you very much > > I think

[web2py] Re: connect existing tables with legacy date format

2016-03-03 Thread Dave S
On Wednesday, March 2, 2016 at 11:23:51 PM UTC-8, yell...@gmail.com wrote: > > Hi, > > db = DAL(..., migrate_enable=False) > > db.define_table('table', Field('fld01'), Field('fld02'),'integer',length=7) > > db.fld02 actually is a date field with format CYYMMDD. > C is either 0 or 9 ? > > I

[web2py] Re: Help with displaying content from my database table

2016-03-03 Thread Dave S
On Wednesday, March 2, 2016 at 11:23:54 PM UTC-8, he...@merrimere.net wrote: > > > So I have my table (as seen below) and I want to make it display in the > view below but I don't want it to show all the records, just the records > with the same 'auth_user.teacher_id' as the currently logged