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

2016-03-04 Thread Massimo Di Pierro
On Friday, 4 March 2016 18:56:36 UTC-6, Dave S wrote: > > > > On Friday, March 4, 2016 at 4:01:09 PM UTC-8, Massimo Di Pierro wrote: >> >> If you want to try it with web2py here is welcome app based on stupid.css >> >> https://github.com/mdipierro/web2py-welcome-theme-stupid >> >> Notice a few

Re: [web2py] Re: Table.import_from_csv_file preserving ids

2016-03-04 Thread sesenmaister
For the record, To import preserving ids, import_from_csv_file() needs as parameters: (given a csv with `id` column and not using another unique column (ex. `uuid`)) *id_offset = {} id_map = None* If the table is not empty, it's needed to tuncate() before importing, or use parameter

[web2py] Re: strategy to take multi user in a sqlform grid

2016-03-04 Thread Ben Lawrence
You can do it with checkboxes using http://bootstrap-table.wenzhixin.net.cn I feel a little repetitive because I answered another problem with the same link... On Friday, March 4, 2016 at 5:46:36 AM UTC-8, Alessio Varalta wrote: > > Hi I have question about how a user can select multi user in

[web2py] Re: Grouping db rows, and showing row with the lowest value for a particular field, within a grid

2016-03-04 Thread Ben Lawrence
If you are using twitter bootstrap, you could use http://bootstrap-table.wenzhixin.net.cn/documentation/ Or if you aren't using bootstrap, https://www.datatables.net Saves a lot of your time. On Friday, February 26, 2016 at 10:45:45 AM UTC-8, Boa wrote: > > > Given a DB table (called

[web2py] Re: relation between tables for student management system?

2016-03-04 Thread Leonel Câmara
What exactly do you need help with? I think it's a bad idea to ask a student's religion and caste for example, is that the kind of input you want? -- 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-04 Thread Ron Chatterjee
Is there a reason its name stupid css as oppose to lets say simple css or silly css? Just curious to see how safe it is to use it. On Friday, March 4, 2016 at 9:48:29 PM UTC-5, Dave S wrote: > > > > On Friday, March 4, 2016 at 4:56:36 PM UTC-8, Dave S wrote: >> >> >> >> On Friday, March 4, 2016

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

2016-03-04 Thread Dave S
On Friday, March 4, 2016 at 4:56:36 PM UTC-8, Dave S wrote: > > > > On Friday, March 4, 2016 at 4:01:09 PM UTC-8, Massimo Di Pierro wrote: >> >> If you want to try it with web2py here is welcome app based on stupid.css >> >> https://github.com/mdipierro/web2py-welcome-theme-stupid >> >> Notice a

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

2016-03-04 Thread Dave S
On Friday, March 4, 2016 at 4:01:09 PM UTC-8, Massimo Di Pierro wrote: > > If you want to try it with web2py here is welcome app based on stupid.css > > https://github.com/mdipierro/web2py-welcome-theme-stupid > > Notice a few things: > - It does not require any change in the python code or form

[web2py] Re: THE VARIABLES OF SYSTEM SHOW IN PAGE

2016-03-04 Thread Massimo Di Pierro
You probably did not create a view for your app therefore web2py is using views/generic.html which shows the toolbar. Notice that once in production (no localhost) these pages will result in error because does not serve pages without a view outside localhost for security reasons. On Friday, 4

[web2py] Re: THE VARIABLES OF SYSTEM SHOW IN PAGE

2016-03-04 Thread Dave S
On Friday, March 4, 2016 at 4:05:08 PM UTC-8, Raphael Vinicius Carneiro Leão wrote: > > In my study in web2py, in page of form, show the variables of system. > How to solve !? > > Attached print of problem. > In your view file, you seem to still have a line like {{=BEAUTIFY(response._vars)}}

[web2py] THE VARIABLES OF SYSTEM SHOW IN PAGE

2016-03-04 Thread Raphael Vinicius Carneiro Leão
In my study in web2py, in page of form, show the variables of system. How to solve !? Attached print of problem. -- 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

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

2016-03-04 Thread Massimo Di Pierro
If you want to try it with web2py here is welcome app based on stupid.css https://github.com/mdipierro/web2py-welcome-theme-stupid Notice a few things: - It does not require any change in the python code or form styles or grid. I - It works with the existing bootstrap classes, it simply

[web2py] Re: How to use Let's Encrypt with Web2Py on Apache

2016-03-04 Thread Jacinto Parga
How can routes.py be configured to return the requested file? The page requested is something like this: http://example.com/.well-known/acme-challenge/dkB1xZ7bb_x1JgWilNwyYNrteHPUoqnLvNfnn3gS3b0 The response is a plain text, something like this:

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

2016-03-04 Thread Dave S
On Friday, March 4, 2016 at 12:42:22 PM UTC-8, Niphlod wrote: > > operationally it doesn't change a thing. > But (and it's a big but) your status check adds a query for each and every > request: db I/O is the most expensive (time-wise) operation you'll ever see > in every web framework, you

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

2016-03-04 Thread Niphlod
operationally it doesn't change a thing. But (and it's a big but) your status check adds a query for each and every request: db I/O is the most expensive (time-wise) operation you'll ever see in every web framework, you should avoid it at all costs. -- Resources: - http://web2py.com -

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

2016-03-04 Thread Dave S
On Friday, March 4, 2016 at 3:25:50 AM UTC-8, Niphlod wrote: > > never ever ever call a queue_task() in a model. models gets executed at > every request. just queue the task in a "protectedinitialsetup()" > controller and use it. > Well, that's why I have the status check, but I like your way

[web2py] Re: list:reference, multiple=True, validation error

2016-03-04 Thread villas
Did you update to latest Web2py? I mean 'git pull'. On Friday, 4 March 2016 14:40:37 UTC, eric cuver wrote: > > I teste it on my web2py it work > > Le vendredi 4 mars 2016 15:24:39 UTC+1, villas a écrit : >> >> Hi Eric, Thanks for your interest. I believe that this is a bug in >> IS_IN_DB

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

2016-03-04 Thread villas
I love this. It would be so cool if this was maintained with the rest of the framework and widgets could then include the generic stupid.css. The grid could use it and this would resolve a lot of issues with choice of css framework. A couple of questions spring to mind: Does anyone need

[web2py] Re: list:reference, multiple=True, validation error

2016-03-04 Thread eric cuver
I teste it on my web2py it work Le vendredi 4 mars 2016 15:24:39 UTC+1, villas a écrit : > > Hi Eric, Thanks for your interest. I believe that this is a bug in > IS_IN_DB validator. I am surprised that more users have not reported it. > Try this to replicate. > > 1. Make a new app. > 2.

[web2py] Re: list:reference, multiple=True, validation error

2016-03-04 Thread villas
Hi Eric, Thanks for your interest. I believe that this is a bug in IS_IN_DB validator. I am surprised that more users have not reported it. Try this to replicate. 1. Make a new app. 2. Paste this at the bottom of models/db.py db.define_table('tag', Field('name'),

[web2py] Re: list:reference, multiple=True, validation error

2016-03-04 Thread eric cuver
you can paste your code ? -- 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] Re: how to create my own profile??

2016-03-04 Thread eric cuver
which error web2py show you ?? There is an error that generates a ticket? Le jeudi 3 mars 2016 21:12:34 UTC+1, prashant joshi a écrit : > > 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) >

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

2016-03-04 Thread eric cuver
Le jeudi 3 mars 2016 08:27:57 UTC+1, Massimo Di Pierro a écrit : > > 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. > it's nice --

[web2py] strategy to take multi user in a sqlform grid

2016-03-04 Thread Alessio Varalta
Hi I have question about how a user can select multi user in one time. For example i have a sqlform grid and i want that the login user select the partecipants of a event, so i can have multipartecipant, is impossibile to created this system with sqlfrom grid? I can use requires is in db but so

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

2016-03-04 Thread Alessio Varalta
Thanks is a problem with my sqlite On Thursday, 3 March 2016 14:59:40 UTC+1, Leonel Câmara wrote: > > 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

[web2py] Re: need help with FORM.confirm

2016-03-04 Thread Viator
Hello! Thank you, Antony. This helped me a lot. I will go and add some JS to the page. Again, thank you, Thorsten -- 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

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

2016-03-04 Thread Pierre
what's the strategy to use all these goodies (bootstrap,stupid) ? build views from layout.html/adapt layout.html drop layout and start from scratch with RWD grids, containers and compressible columns ? perhaps layout.html is already configured with bootstrap classes and ids ? thanks

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

2016-03-04 Thread Niphlod
never ever ever call a queue_task() in a model. models gets executed at every request. just queue the task in a "protectedinitialsetup()" controller and use it. I have a similar approach for rebuilding/reinitializing/requeueing/rechecking all tasks in a controller (e.g. default.py) def

[web2py] Re: need help with FORM.confirm

2016-03-04 Thread Anthony
I think you misunderstand the confirmation form functionality. FORM.confirm is a static method of the FORM class, so calling it on an existing form object will do nothing to that form -- it will instead return a completely new form (so, you might as well just call FORM.confirm rather than

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

2016-03-04 Thread Anthony
Sure, ask here. On Thursday, March 3, 2016 at 11:52:55 PM UTC-5, Shayn Raney wrote: > > 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?

[web2py] Re: Dal Field Types

2016-03-04 Thread Anthony
On Friday, March 4, 2016 at 2:47:36 AM UTC-5, Mirek Zvolský wrote: > > just detail: db.resultats._fields > There is no need to use db.resultats._fields, as db.resultats.fields is a Python property that simply returns db.resultats._fields. Also, it is a SQLCallableList, so db.resultats.fields()

[web2py] Re: need help with FORM.confirm

2016-03-04 Thread Viator
Am Donnerstag, 3. März 2016 16:01:53 UTC+1 schrieb 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 > Hi Anthony! Thank you for your help. I'm afraid I don't understand you completly. I have a

[web2py] Re: Shell

2016-03-04 Thread Dave S
On Thursday, March 3, 2016 at 10:54:57 AM UTC-8, Alex Glaros wrote: > > is console shell available in Windows binary version? > > thanks > Yes web2py.exe -S welcome -M /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Web2Py application deployment on rented server

2016-03-04 Thread Mirek Zvolský
Instead of renting server you could start with virtual server http://www.forpsi.com/virtual/ for 1,30 $/month or so, and choose Debian 8 (or other linux) in their administrative interface. In additition buy a domain for ~4 $/year and point them to the public IP address of the virtual server.

[web2py] Re: Shell

2016-03-04 Thread Dave S
On Thursday, March 3, 2016 at 8:52:47 PM UTC-8, Shayn Raney wrote: > > 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