[web2py] Remove request_reset_password from Auth navmenu

2018-03-21 Thread Georgia
Hi all, Is there any way to remove the 'Lost Password' (request_password_reset) item from the Auth navmenu? I'd like to keep the rest of the menu if possible, but so far I haven't found a way to remove this item only and keep the rest. Is there any way I could do this, or will I have to create

[web2py] Re: custom ordering of select results

2018-03-21 Thread Anthony
> > The "key" function passed to the Python sorted() function should take only >> a single argument -- an element from the iterator being sorted. If your >> mycmp requires two arguments, then it should fail with sorted() as well as >> with Rows.sort(). Just rewrite mycmp so it takes only one ar

[web2py] Re: custom ordering of select results

2018-03-21 Thread Dave S
On Wednesday, March 21, 2018 at 5:30:08 AM UTC-7, Anthony wrote: > > I have a different application, where I want to order the rows according >> to a string field, where the string field has a prefix and a suffix, and >> the suffix is the dominant part of the ordering: >> >> 4321A < 0123B, >> 2

[web2py] Setting session cookie expiration

2018-03-21 Thread David Manns
In the past my site has used two variations of login. For internal users with comprehensive access to our database, it has used a conventional email + password implemented via Auth. For a broader population of users who interact with the site to maintain their membership and register for events

[web2py] Re: custom ordering of select results

2018-03-21 Thread Anthony
> > I have a different application, where I want to order the rows according > to a string field, where the string field has a prefix and a suffix, and > the suffix is the dominant part of the ordering: > > 4321A < 0123B, > 2345D < 5432D > > The simplest and most efficient method is probably to

[web2py] custom ordering of select results

2018-03-21 Thread Dave S
Way back when, I asked a similar question: https://groups.google.com/d/topic/web2py/bnuall8tsgc/discussion> I have a different application, where I want to order the rows according to a string field, where the string field has a prefix and a suffix, and the suffix is the dominant part of the ord

[web2py] Re: Specify default values for custom form

2018-03-21 Thread Dave S
On Monday, March 19, 2018 at 10:43:16 PM UTC-7, Dave S wrote: [...] > Also, you can turn the readable and writable setting on or off on the fly: > > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Run-time-field-and-table-modification > > > I have a couple example