[web2py] web2py docker container
Hello, I share with you the web2py docker container. include web2py, python3, nginx and gunicorn. https://hub.docker.com/r/cabildocl/web2py -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/3cd625dc-24c5-4ef2-94d2-a6d147247db4n%40googlegroups.com.
[web2py] deploy web2py with gunicorn, Nginx y HTTPS
I wrote an article in Spanish on how to deploy web2py with https http://cabildocl.blogspot.com/2020/09/implementar-web2py-con-gunicorn-nginx-y.html -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/05dee14b-7dd8-439f-88f5-68b759a43716n%40googlegroups.com.
[web2py] Re: problem with update
was an error with a registry. thanks El lunes, 17 de diciembre de 2012 16:16:00 UTC-3, Massimo Di Pierro escribió: > > Please I need the complete traceback. I think you have a datetime field > which you later converted in date or time format. The data is still > datetime and therefore you cannot take it out. > > On Monday, 17 December 2012 12:17:44 UTC-6, cabildocl wrote: >> >> the problem is that it throws me this error. >> >> Ticket ID >> >> 10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107 >> invalid literal for int() with base 10: >> '-1 day,' >> >> >> This began to occur when upgrade web2py. Now I tried again an older >> version but the error persists >> >> El lunes, 17 de diciembre de 2012 14:59:54 UTC-3, Massimo Di Pierro >> escribió: >>> >>> Sorry I do not understand. Do you still have an error? What is the error? >>> >>> On Monday, 17 December 2012 11:55:27 UTC-6, cabildocl wrote: >>>> >>>> apologies. >>>> when doing tests to check the error makes that line. This is the code that >>>> shows me the error >>>> >>>> >>>> >>>> El lunes, 17 de diciembre de 2012 12:08:57 UTC-3, Massimo Di Pierro >>>> escribió: >>>>> >>>>> That line is definitively not commented in the web2py source code for >>>>> 2.3.1 and 2.3.2 >>>>> Code listing >>>>> >>>>> 1837. >>>>> 1838. >>>>> 1839. >>>>> 1840. >>>>> 1841. >>>>> 1842. >>>>> >>>>> 1843. >>>>> 1844. >>>>> 1845. >>>>> 1846. >>>>> >>>>> value = datetime.date(y, m, d) >>>>> return value >>>>> >>>>> def parse_time(self, value, field_type): >>>>> if not isinstance(value, datetime.time): >>>>> time_items = map(int,str(value)[:8].strip().split(':')[:3]) >>>>> >>>>> if len(time_items) == 3: >>>>> (h, mi, s) = time_items >>>>> else: >>>>> (h, mi, s) = time_items + [0] >>>>> >>>>> >>>>> On Monday, 17 December 2012 08:48:34 UTC-6, cabildocl wrote: >>>>>> >>>>>> hi, i have a problem from to update web2py to latest version, the >>>>>> error is the next: >>>>>> >>>>>> Ticket ID >>>>>> >>>>>> 10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107 >>>>>> invalid literal for int() with base >>>>>> 10: '-1 day,' >>>>>> >>>>>> Function argument list >>>>>> >>>>>> (self=, >>>>>> value=datetime.timedelta(-1, 41400), field_type='time') >>>>>> Code listing >>>>>> >>>>>> 1837. >>>>>> 1838. >>>>>> 1839. >>>>>> 1840. >>>>>> 1841. >>>>>> 1842. >>>>>> >>>>>> 1843. >>>>>> 1844. >>>>>> 1845. >>>>>> 1846. >>>>>> >>>>>> value = datetime.date(y, m, d) >>>>>> return value >>>>>> >>>>>> def parse_time(self, value, field_type): >>>>>> if not isinstance(value, datetime.time): >>>>>> #time_items = map(int,str(value)[:8].strip().split(':')[:3]) >>>>>> >>>>>> if len(time_items) == 3: >>>>>> (h, mi, s) = time_items >>>>>> else: >>>>>> (h, mi, s) = time_items + [0] >>>>>> >>>>>> Variables builtinlen time_items undefined >>>>>> >>>>>> this worked ok, your help please >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> --
[web2py] Re: problem with update
the problem is that it throws me this error. Ticket ID 10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107 invalid literal for int() with base 10: '-1 day,' This began to occur when upgrade web2py. Now I tried again an older version but the error persists El lunes, 17 de diciembre de 2012 14:59:54 UTC-3, Massimo Di Pierro escribió: > > Sorry I do not understand. Do you still have an error? What is the error? > > On Monday, 17 December 2012 11:55:27 UTC-6, cabildocl wrote: >> >> apologies. >> when doing tests to check the error makes that line. This is the code that >> shows me the error >> >> >> >> El lunes, 17 de diciembre de 2012 12:08:57 UTC-3, Massimo Di Pierro >> escribió: >>> >>> That line is definitively not commented in the web2py source code for >>> 2.3.1 and 2.3.2 >>> Code listing >>> >>> 1837. >>> 1838. >>> 1839. >>> 1840. >>> 1841. >>> 1842. >>> >>> 1843. >>> 1844. >>> 1845. >>> 1846. >>> >>> value = datetime.date(y, m, d) >>> return value >>> >>> def parse_time(self, value, field_type): >>> if not isinstance(value, datetime.time): >>> time_items = map(int,str(value)[:8].strip().split(':')[:3]) >>> >>> if len(time_items) == 3: >>> (h, mi, s) = time_items >>> else: >>> (h, mi, s) = time_items + [0] >>> >>> >>> On Monday, 17 December 2012 08:48:34 UTC-6, cabildocl wrote: >>>> >>>> hi, i have a problem from to update web2py to latest version, the >>>> error is the next: >>>> >>>> Ticket ID >>>> >>>> 10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107 >>>> invalid literal for int() with base 10: >>>> '-1 day,' >>>> >>>> Function argument list >>>> >>>> (self=, >>>> value=datetime.timedelta(-1, 41400), field_type='time') >>>> Code listing >>>> >>>> 1837. >>>> 1838. >>>> 1839. >>>> 1840. >>>> 1841. >>>> 1842. >>>> >>>> 1843. >>>> 1844. >>>> 1845. >>>> 1846. >>>> >>>> value = datetime.date(y, m, d) >>>> return value >>>> >>>> def parse_time(self, value, field_type): >>>> if not isinstance(value, datetime.time): >>>> #time_items = map(int,str(value)[:8].strip().split(':')[:3]) >>>> >>>> if len(time_items) == 3: >>>> (h, mi, s) = time_items >>>> else: >>>> (h, mi, s) = time_items + [0] >>>> >>>> Variables builtinlen time_items undefined >>>> >>>> this worked ok, your help please >>>> >>>> >>>> >>>> >>>> --
[web2py] Re: problem with update
apologies. when doing tests to check the error makes that line. This is the code that shows me the error El lunes, 17 de diciembre de 2012 12:08:57 UTC-3, Massimo Di Pierro escribió: > > That line is definitively not commented in the web2py source code for > 2.3.1 and 2.3.2 > Code listing > > 1837. > 1838. > 1839. > 1840. > 1841. > 1842. > > 1843. > 1844. > 1845. > 1846. > > value = datetime.date(y, m, d) > return value > > def parse_time(self, value, field_type): > if not isinstance(value, datetime.time): > time_items = map(int,str(value)[:8].strip().split(':')[:3]) > > if len(time_items) == 3: > (h, mi, s) = time_items > else: > (h, mi, s) = time_items + [0] > > > On Monday, 17 December 2012 08:48:34 UTC-6, cabildocl wrote: >> >> hi, i have a problem from to update web2py to latest version, the error >> is the next: >> >> Ticket ID >> >> 10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107 >> invalid literal for int() with base 10: >> '-1 day,' >> >> Function argument list >> >> (self=, >> value=datetime.timedelta(-1, 41400), field_type='time') >> Code listing >> >> 1837. >> 1838. >> 1839. >> 1840. >> 1841. >> 1842. >> >> 1843. >> 1844. >> 1845. >> 1846. >> >> value = datetime.date(y, m, d) >> return value >> >> def parse_time(self, value, field_type): >> if not isinstance(value, datetime.time): >> #time_items = map(int,str(value)[:8].strip().split(':')[:3]) >> >> if len(time_items) == 3: >> (h, mi, s) = time_items >> else: >> (h, mi, s) = time_items + [0] >> >> Variables builtinlen time_items undefined >> >> this worked ok, your help please >> >> >> >> >> --
[web2py] problem with update
hi, i have a problem from to update web2py to latest version, the error is the next: Ticket ID 10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107 invalid literal for int() with base 10: '-1 day,' Function argument list (self=, value=datetime.timedelta(-1, 41400), field_type='time') Code listing 1837. 1838. 1839. 1840. 1841. 1842. 1843. 1844. 1845. 1846. value = datetime.date(y, m, d) return value def parse_time(self, value, field_type): if not isinstance(value, datetime.time): #time_items = map(int,str(value)[:8].strip().split(':')[:3]) if len(time_items) == 3: (h, mi, s) = time_items else: (h, mi, s) = time_items + [0] Variables builtinlen time_items undefined this worked ok, your help please --
[web2py] problem with upload field
Dear I need a help regarding a problem: I have an application in web2py, which manages a database in mysql, and I have an upload area to upload some audio files. Need from other applications also upload files to this table but not working. This function uses only one sql. SQL statement used herein: INSERT INTO trabajo(titulo, audio, responsable) VALUES('${ARG1}', LOAD_FILE('${ARG2}'),'${ARG3}');
[web2py] Re: character special in DAL
I solved this so: def crear(): response.subtitle ='Prueba' form=crud.create(db.sipfriends) if form.accepts(request.vars, session): session.name = form.vars.name session.calllimit = form.vars.calllimit redirect(URL('complemento')) return dict(form=form) def complemento(): a = "UPDATE `sipfriends` SET `call-limit` = " + session.calllimit + " WHERE `name` = " + session.name + ";" db.executesql(a) redirect(URL('index')) return dict() On 11 mar, 19:45, cabildocl wrote: > Is this to be? "web2py or python? > > On 9 mar, 19:31, Massimo Di Pierro wrote: > > > > > > > > > you cannot. You can have a field.label with the id but not in the > > field name. > > > On Mar 9, 6:51 am,cabildocl wrote: > > > > I need create a field in DAL, what include a character special "-". > > > How i can do this? > > > > Greetings
[web2py] Re: character special in DAL
Is this to be? "web2py or python? On 9 mar, 19:31, Massimo Di Pierro wrote: > you cannot. You can have a field.label with the id but not in the > field name. > > On Mar 9, 6:51 am, cabildocl wrote: > > > I need create a field in DAL, what include a character special "-". > > How i can do this? > > > Greetings
[web2py] character special in DAL
I need create a field in DAL, what include a character special "-". How i can do this? Greetings