Re: [web2py] Re: Upcoming birthdays

2017-10-03 Thread Jim Steil
Thanks everyone. Time for me to call it a night. I'll give it a run tomorrow morning. -Jim On Tue, Oct 3, 2017 at 9:46 PM, Limedrop wrote: > What about something like this... > > import datetime > now = datetime.datetime.now() > the_future = now +

Re: [web2py] Re: Upcoming birthdays

2017-10-03 Thread Dave S
On Tuesday, October 3, 2017 at 4:48:52 PM UTC-7, Jim S wrote: > > I don't think that will do it. The date stored in the database would be > 10/15/1980, or 10/21/1993. > > Those should both show a birthday in the month of August. > Er, October? > But, I don't want just a matching month. I

Re: [web2py] Re: Upcoming birthdays

2017-10-03 Thread Jim Steil
I don't think that will do it. The date stored in the database would be 10/15/1980, or 10/21/1993. Those should both show a birthday in the month of August. But, I don't want just a matching month. I want it for the next 30 days. So, on December 15th I should see all birthdays between December

[web2py] Re: Upcoming birthdays

2017-10-03 Thread Dave S
On Tuesday, October 3, 2017 at 2:38:38 PM UTC-7, Jim S wrote: > > Stifan > > I use that method to build dates quite often. However, I don't know how > to translate that into a DAL query. > > -Jim > > I have an example, but it's at home. /dps > On Tuesday, October 3, 2017 at 4:18:30 PM

[web2py] Re: Upcoming birthdays

2017-10-03 Thread Jim S
Stifan I use that method to build dates quite often. However, I don't know how to translate that into a DAL query. -Jim On Tuesday, October 3, 2017 at 4:18:30 PM UTC-5, 黄祥 wrote: > > perhaps you can use python datetime module. > e.g. > import datetime > print (datetime.date.today() +

[web2py] Re: Upcoming birthdays

2017-10-03 Thread 黄祥
perhaps you can use python datetime module. e.g. import datetime print (datetime.date.today() + datetime.timedelta(1*365/12)).isoformat() or from datetime import date from dateutil.relativedelta import relativedelta six_months = date.today() + relativedelta(months=+1) The advantage of the

[web2py] Upcoming birthdays

2017-10-03 Thread Jim S
Hopefully I'm missing something obvious. I have a birth date in my employee table. I want to build a DAL query to show people who will have a birthday in the next month. db.define_table('employee', Field('id', 'id', readable=False), Field('first_name',

[web2py] Re: Insert into reference:list not working - FOREIGN KEY constraint failed field:upload

2017-10-03 Thread LoveWeb2py
I moved all of the table files to an archive directory and let everything rebuild and it worked great. Thanks, Anthony! Really appreciate the time you take to help us all. On Tuesday, October 3, 2017 at 11:42:47 AM UTC-4, LoveWeb2py wrote: > > I tried just renaming both databases and still

[web2py] Re: Insert into reference:list not working - FOREIGN KEY constraint failed field:upload

2017-10-03 Thread LoveWeb2py
I tried just renaming both databases and still received the same error. On Tuesday, October 3, 2017 at 11:27:53 AM UTC-4, Anthony wrote: > > On Monday, October 2, 2017 at 9:24:29 PM UTC-4, LoveWeb2py wrote: >> >> Still receiving same error... >> > > Maybe you didn't properly delete the table. No

[web2py] Re: Insert into reference:list not working - FOREIGN KEY constraint failed field:upload

2017-10-03 Thread Anthony
On Monday, October 2, 2017 at 9:24:29 PM UTC-4, LoveWeb2py wrote: > > Still receiving same error... > Maybe you didn't properly delete the table. No foreign key constraint is set for a list:reference field, so if you are getting that error, that means the database still has a foreign key

[web2py] Re: Insert into reference:list not working - FOREIGN KEY constraint failed field:upload

2017-10-03 Thread LoveWeb2py
Would it be easier to create a name field instead of a file and then just reference the name ID, and pull the file from the associated table? On Monday, October 2, 2017 at 9:24:29 PM UTC-4, LoveWeb2py wrote: > > Still receiving same error... > > This is my html code: > > I'm taking values from

Re: [web2py] Re: Google AMP - benefits with web2py?

2017-10-03 Thread António Ramos
People should use a tool to minimize js and css files. Grunt or Gulp for ex... 2017-09-29 23:34 GMT+01:00 Dave S : > > > On Friday, September 29, 2017 at 2:25:30 PM UTC-7, Leonel Câmara wrote: >> >> AMP will also change the URL of your webpages to have google in them. >>

Re: [web2py] Teste Softwares

2017-10-03 Thread António Ramos
example app with pytest https://github.com/jredrejo/bancal/tree/master/web2py/applications/bancal 2017-10-03 9:32 GMT+01:00 António Ramos : > already in discussion > > https://groups.google.com/d/topic/web2py/4HdkjbnlhBU/discussion > > > > > 2017-10-02 19:06 GMT+01:00

Re: [web2py] Teste Softwares

2017-10-03 Thread António Ramos
already in discussion https://groups.google.com/d/topic/web2py/4HdkjbnlhBU/discussion 2017-10-02 19:06 GMT+01:00 Gelzieny rezende martins : > Como fazer teste Softwares com web2py > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] Re: web2py 2.15.4 is OUT

2017-10-03 Thread IVINH
gluon.contrib.feedparser is using for Python 2.7 On Saturday, September 2, 2017 at 11:10:30 AM UTC+7, Massimo Di Pierro wrote: > > Includes a few bug-fixes (thanks to Anthony and Leonel in particular) and > it is tracking the latest python (thanks Giovanni). > > Please report any outstanding