Re: [web2py] Re: web2py hosting

2020-10-14 Thread Jose C
Hi Antonio, I just saw this announcement: https://www.webfaction.com/faq Reading the "What will not be available when I am migrated to tsohost"... makes you wonder what they actually do host on their servers! And they're starting migrations in a couple of weeks and shutting WF down 100% in

[web2py] Re: web2py hosting

2020-10-14 Thread Gaël Princivalle
Hi Antonio. i'm worried about the same thing. It seems that all the applications gone be migrated to TsoHost, a Godaddy company. Someone have some experience about Web2py on TsoHost ? Il giorno venerdì 22 maggio 2020 alle 09:45:12 UTC+2 Ramos ha scritto: > I´m a webfaction long time user

[web2py] Re: Limiting database entries

2020-10-14 Thread Jim S
I'm not entirely clear on what you're asking for. Are you trying to limit the number of records in a table in the database? If so, then I'd probably create a trigger on the database. The way to do that would be dependent on which database you are using. If not, can you explain a little more?

[web2py] How to use multiple bespoke 400 pages with error text

2020-10-14 Thread 'hyan...@googlemail.com' via web2py-users
I'm creating my own bespoke 404 / 400 error page by editing routes.py like this: routes_onerror = [('app/400', '/app/default/custom_400.html')] and I have 2 questions: 1) The custom_400 page is displayed when from within a controller, I call e.g. raise HTTP(400, "my error message text")

[web2py] Re: Object type None error

2020-10-14 Thread Jim S
Can you share the relevant code? -Jim On Wednesday, October 14, 2020 at 12:29:54 AM UTC-5, T.R.Rajkumar wrote: > > this is the result of the sp for amcid = 1910 > > unitidamcnothsktsktssktuskawgdavda > pfamtsacamtesiamt > ts2AHO20DP052

[web2py] Re: web2py hosting

2020-10-14 Thread Gaël Princivalle
I think the new business TsoHost plans are the ones that will replace the Webfaction cloud plans: https://www.tsohost.com/business-hosting Il giorno mercoledì 14 ottobre 2020 alle 15:55:32 UTC+2 Gaël Princivalle ha scritto: > Hi Antonio. > > i'm worried about the same thing. > > It seems that

[web2py] routes.py and root_static

2020-10-14 Thread 'Annet' via web2py-users
I have the following lines of code in routes.py routers = dict( # base router BASE = dict( domains = { 'domain.com' : 'init', 'www.domain.com' : 'init', 'ldc.domain.com' : 'admin', 'my.domain.com' : 'controlpanel', } ),

[web2py] Re: Limiting database entries

2020-10-14 Thread Clemens
Since you surely have to handle the case, that the limit is reached, I would define a constant value for the limit, stored in your model. Let's call MAX_DB_ENTRIES (=100). Then just check if the the limit is reached by if db(db.table.id>0).count() >= MAX_DB_ENTRIES: . Then you are independent

Re: [web2py] Re: web2py hosting

2020-10-14 Thread António Ramos
no python??? on TsoHost?? Em qua., 14 de out. de 2020 às 15:50, António Ramos escreveu: > no postgresql db... i´m doomed > > Em qua., 14 de out. de 2020 às 15:00, Gaël Princivalle < > gaelprinciva...@gmail.com> escreveu: > >> I think the new business TsoHost plans are the ones that will

Re: [web2py] Re: web2py hosting

2020-10-14 Thread António Ramos
no postgresql db... i´m doomed Em qua., 14 de out. de 2020 às 15:00, Gaël Princivalle < gaelprinciva...@gmail.com> escreveu: > I think the new business TsoHost plans are the ones that will replace the > Webfaction cloud plans: > https://www.tsohost.com/business-hosting > > Il giorno