Re: [web2py] Cannot start Web2py macOS Sierra

2017-05-05 Thread joseph simpson
James: I just tried it from the binary and it works fine.. Take care and have fun, Joe On Wed, May 3, 2017 at 4:17 AM, James Buckley wrote: > I am using macOS Sierra 10.12.4 and receive this error prompt when I open > the latest version of Web2py, can anyone help? It

[web2py] https://observatory.mozilla.org

2017-05-05 Thread Alex Glaros
is https://observatory.mozilla.org providing bogus results? thanks, Alex Glaros Host: web2py.com Scan ID #: 3686681 Test Time: May 5, 2017 5:36 PM Test Duration: 3 seconds Score: 0/100 Tests Passed: 5/11 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Need help with student attendance app

2017-05-05 Thread Donald McClymont
I am not sure about your data model as classes and students may well be a many to many relationship and you may be better with an intermediate table to support this. Current setup each student can only belong to a single class. With current setup there are still a number of ways that you

[web2py] Re: Cannot start Web2py macOS Sierra

2017-05-05 Thread 黄祥
is it binary or source? had you tried source version? best regards, stifan -- 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: How to get a dropdown in self referencing table, create form?

2017-05-05 Thread Matt Bockman
This worked for me too. Took me awhile to find this thread because I was searching for "reference same table". Hopefully writing this will help others searching the same way I was. On Thursday, February 2, 2012 at 10:28:43 PM UTC-8, Edward Shave wrote: > > Found this works following

[web2py] KeyError during smartgrid step of the Image Blog Tutorial

2017-05-05 Thread Matt Bockman
I'm doing the image blog tutorial using the 5th edition of the web2py Complete Reference Manual. On section 3.3.2, adding grids (page 105), I have successfully added a grid and I'm able to see the contents of my image table. However, if I click on the "View" button in the grid I get an

[web2py] Cannot start Web2py macOS Sierra

2017-05-05 Thread James Buckley
I am using macOS Sierra 10.12.4 and receive this error prompt when I open the latest version of Web2py, can anyone help? It isn't just me that is affected.

[web2py] Need help with student attendance app

2017-05-05 Thread Toe Khaing Oo
I'm building student attendance app. It has 3 databases, *class*, *student *and *attendance*. db.define_table('classes', Field('name', notnull=True, requires=IS_NOT_EMPTY()), Field('created_on', 'datetime', default=request.now), format =

Re: [web2py] Re: 403 Forbidden?

2017-05-05 Thread Erick R.
Hello, I am having a similar problem with my admin page of my domain at https://www.positivethoughtsdaily.com/admin. I initially accessed my admin console and failed too many password attempts. Then I began seeing a "Forbidden 403" page instead of the admin password entry page. I typically

[web2py] Re: [REMEMBER_ME] Not working

2017-05-05 Thread Anthony
Also, what exactly do you observe? After using the remember me option to log in, if you close the browser and then open it again, do you have to log in again? On Friday, May 5, 2017 at 4:50:56 PM UTC-4, Anthony wrote: > > After you log in via the remember me option, check the session cookie in

[web2py] Re: [REMEMBER_ME] Not working

2017-05-05 Thread Anthony
After you log in via the remember me option, check the session cookie in the browser -- does it now have an "expires" attribute now? Anthony On Friday, May 5, 2017 at 5:32:30 AM UTC-4, sunda.am...@gmail.com wrote: > > Please help me > > Le mercredi 3 mai 2017 17:14:10 UTC+2, Paolo Valleri a

[web2py] Re: convert virtual field in grid to another language

2017-05-05 Thread Dave S
On Friday, May 5, 2017 at 12:09:38 PM UTC-7, Andrea Fae' wrote: > > I have this table > > db.define_table('evento', > Field('titolo', requires=[IS_NOT_EMPTY()]), > Field('inizio', type='datetime'), > Field('fine', type='datetime'), >

Re: [web2py] Re: [REMEMBER_ME] Not working

2017-05-05 Thread Paolo Valleri
I've just tried welcome app with current master branch and 'remember me' worked well. Would you test it as well? Paolo 2017-05-05 11:32 GMT+02:00 : > Please help me > > > Le mercredi 3 mai 2017 17:14:10 UTC+2, Paolo Valleri a écrit : >> >> which web2py version are you

[web2py] convert virtual field in grid to another language

2017-05-05 Thread Andrea Fae'
I have this table db.define_table('evento', Field('titolo', requires=[IS_NOT_EMPTY()]), Field('inizio', type='datetime'), Field('fine', type='datetime'), Field.Virtual('giorno_inizio', lambda

[web2py] Re: widget.autocomplet vs IS_IN_DB : formatting, filtering

2017-05-05 Thread Dave S
On Friday, May 5, 2017 at 8:50:18 AM UTC-7, jean-mic...@meggitt.com wrote: > > Hi, > I'm developping a tool to fill a pruchase request. Then it will be sent, > sign , ... > [...] > Thank you all for this nice tool and nice forum. > I discover web2py for 2 months, and my first app already

Re: [web2py] Re: Html helper module?

2017-05-05 Thread António Ramos
2017-05-05 18:26 GMT+01:00 Anthony : > T=current.T Thank you. -- 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: Html helper module?

2017-05-05 Thread Anthony
On Friday, May 5, 2017 at 12:58:09 PM UTC-4, Pierre wrote: > > one way to access T from a module : > > in db.py: > > from gluon import current > current.T=T > There is no need for the above code, as the framework already sets current.T for you (as well as current.request, etc.). > in module:

[web2py] Re: Html helper module?

2017-05-05 Thread Pierre
one way to access T from a module : in db.py: from gluon import current current.T=T in module: T=current.T -- 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] Box: Python dictionaries with recursive dot notation access

2017-05-05 Thread pbreit
https://github.com/cdgriffith/Box -- 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

[web2py] widget.autocomplet vs IS_IN_DB : formatting, filtering

2017-05-05 Thread jean-michel . gaite
Hi, I'm developping a tool to fill a pruchase request. Then it will be sent, sign , ... First step : design the database (it's done, under MSSQL), draw the form, and fill it. When the use arrive to the field "Supplier", sometime he knows it and its code, sometime he know about its name but not

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Jim S
Can you try the following: 1. or 2. {{=form.custom.submit}} and then control your text and classes through your controller. -Jim On Friday, May 5, 2017 at 10:17:06 AM UTC-5, Maurice Waka wrote: > > Without js, form still only submitted by hitting enter. I'll check this > other link.

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Maurice Waka
Without js, form still only submitted by hitting enter. I'll check this other link. Regards On May 5, 2017 18:07, "Jim S" wrote: > Can you strip out all of your javascript and confirm that the standard > form submission is working with Kiran's solution? > > Then, put your

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Jim S
Can you strip out all of your javascript and confirm that the standard form submission is working with Kiran's solution? Then, put your javascript back in and watch the javascript console during execution to see where you're getting hung up? Then for your second issue, have you looked at

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Maurice Waka
Still no change. How about the preventing page refreshing On May 5, 2017 10:06, "Kiran Subbaraman" wrote: > The `{{=form.custom.end}}` has to be after the submit button. > http://web2py.com/books/default/chapter/29/07/forms- > and-validators#Custom-forms > >

[web2py] Re: onupdate or ondelete for 'Check to delete' ?

2017-05-05 Thread Robin Bryce
Thanks thats great! On Friday, 5 May 2017 13:08:41 UTC+1, 黄祥 wrote: > > i think you can use conditional if else to check > form.vars.delete_this_record > *e.g.* > def onupdate_event(form, table): > time_stamp = request.now > client_ip = request.client > user_id = auth.user_id > origin = '%s/%s'

[web2py] Re: onupdate or ondelete for 'Check to delete' ?

2017-05-05 Thread 黄祥
i think you can use conditional if else to check form.vars.delete_this_record *e.g.* def onupdate_event(form, table): time_stamp = request.now client_ip = request.client user_id = auth.user_id origin = '%s/%s' % (request.controller, request.function) *if form.vars.delete_this_record:*

[web2py] Re: onupdate or ondelete for 'Check to delete' ?

2017-05-05 Thread Robin Bryce
Ok, the solution I've gone with is to set editable=False in the SQLFORM constructor. This disables the built in edit support for grid records. I've replaced that using a links parameter with custom 'Edit' button linking to my own edit record controller and view. This view omits 'Check to

[web2py] Re: Html helper module?

2017-05-05 Thread António Ramos
from html import * Next error , where is the T() function ? 2017-05-05 11:20 GMT+01:00 António Ramos : > hello im generation html from a module. > However html helper functions are not available from modules > What module do i need to import ? > > regards > António > > >

[web2py] Html helper module?

2017-05-05 Thread António Ramos
hello im generation html from a module. However html helper functions are not available from modules What module do i need to import ? regards António Sem vírus. www.avast.com

[web2py] Re: Clicks counter in a button

2017-05-05 Thread sunda . amran
i take a look and i tryed it ... its not work, do you think i can use google analytics Le mercredi 3 mai 2017 16:02:33 UTC+2, 黄祥 a écrit : > > pls take a look in book > ref: > http://web2py.com/books/default/chapter/29/03/overview#Let-s-count > >

[web2py] Re: [REMEMBER_ME] Not working

2017-05-05 Thread sunda . amran
Please help me Le mercredi 3 mai 2017 17:14:10 UTC+2, Paolo Valleri a écrit : > > which web2py version are you using? > would you post the html of the 'remember me' input tag > > Paolo > > On Wednesday, May 3, 2017 at 10:31:23 AM UTC+2, sunda...@gmail.com wrote: >> >> Hello Anthony, >> >> Yeah

Re: [web2py] Delete EXPORT button from SQLFORM.grid

2017-05-05 Thread Yebach
How can you also remove the text "Export" ?? If I set all classes to False the text stays, if I remove export classes from signature it displays all On Wednesday, August 15, 2012 at 12:41:28 PM UTC+2, Jan Rozhon wrote: > > Silly me didnt notice this option. Thx > > Dne středa, 15. srpna 2012

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Kiran Subbaraman
The `{{=form.custom.end}}` has to be after the submit button. http://web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 05-05-2017 11:15 AM, Maurice Waka wrote: I