[web2py] Re: MULTIPLE APPLICATIONS IN SAME HOST/SUBDOMAINS WITH NGINX

2017-02-07 Thread Ivan Gazzola
Just edit the routes.py file I'm using sub-domains and a file like this: # -*- coding: utf-8 -*- routers = dict( BASE = dict( default_application="site1", domains= { 'domain.com':'site1', 'app.domain.com

[web2py] Re: Fullcalendar scheduler

2017-02-07 Thread T.R.Rajkumar
In controller -- def home(): rows = db(db.cal_events).select() return dict(rows=rows) In view $(document).ready(function() { $('#calendar').fullCalendar({ aspectRatio: 0.7, fixedWeekCount: false, height: "auto",

[web2py] Re: Fullcalendar scheduler

2017-02-07 Thread T.R.Rajkumar
You have to add this in view. On Monday, February 6, 2017 at 1:32:00 AM UTC+5:30, Andrea Fae' wrote: > > Someone can help me? Thank you > > Any people can tell me how to load from database table resources to show > using this add-on? > > https://fullcalendar.io/scheduler/ > > Any suggestion

Re: [web2py] Re: MULTIPLE APPLICATIONS IN SAME HOST/SUBDOMAINS WITH NGINX

2017-02-07 Thread Áureo Dias Neto
i'm using a fix ip, and the syntax: 'domain.com/app1':'app1', 'domain.com /app2':'app2', the app1 work great, but app2 return invalid controller sometimes 2017-02-07 6:36 GMT-02:00 Ivan Gazzola : > Just edit the routes.py file > I'm using sub-domains and a file like

[web2py] appropriate to ask for a log call to be removed?

2017-02-07 Thread Carl Hunter Roach
In \gluon\packages\dal\pydal\adapters\google_adapters.py there is a single log output that writes out a number without a context string. More of a debug aid meant to be removed. 554 self.db.logger.info(str(counter)) Is this file part of Web2py or imported, untouched, from another project? C

Re: [web2py] Re: Fullcalendar scheduler

2017-02-07 Thread Richard Vézina
T.R. is the code you show us come from the AppointmentApplicance app? If so, be notice that this way of integration with fullcalendar trigger a memory leaks... I am not sure it still the case of you have recent version of web2py or fullcalendar... But in the past I use to experiment this memory le

[web2py] Database question, problem adding column

2017-02-07 Thread Martin
Still having this issue! Do the migration not work for mysql databases? I never had this problem with sqlite, but for various reasons I cannot use an sqlite database. I have now also tried manually adding the field by altering the table in the database and can then start the app. However, when

[web2py] Re: Database question, problem adding column

2017-02-07 Thread Jim S
Can you show the migrate options you've tried? I do this all the time with MySQL and it works great. Another possibility is that it ran through migration already on a different instance of the database. If so, turn on fake_migrate_all and remove the column. That should remove it from the file

[web2py] Re: Database question, problem adding column

2017-02-07 Thread Jim S
Also, I'm assuming you've also read through this: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=migrate#Other-DAL-constructor-parameters -Jim On Tuesday, February 7, 2017 at 9:14:54 AM UTC-6, Jim S wrote: > > Can you show the migrate options you've tried? >

[web2py] Re: Using an inherited database with special characters in field names in table

2017-02-07 Thread Leonel Câmara
The DAL actually has a db_codec keyword argument which defaults to "UTF-8" but that you can set to anything you would like. BTW I think it's really bad practise to use special characters in table names, in fact I consider it bad practise to use any language other than English in anything re

[web2py] Re: Database question, problem adding column

2017-02-07 Thread martin
Thanks for your reply! I did as you said and reverted back to a version without the new field, turned fake_migrate_all on like : "db = DAL(myconf.get('db.uri'), pool_size = myconf.get('db.pool_size'), #migrate_enabled = myconf.get('db.migrate'), check_rese

[web2py] Re: Database question, problem adding column

2017-02-07 Thread Leonel Câmara
Using the old version without the column you need both migrate=True and fake_migrate=True to rebuild the table files. Then add the new field and fake_migrate=False. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: Database question, problem adding column

2017-02-07 Thread martin
I'm pretty sure I tried that as well without success... However, the problem is solved now. Something was wrong with the databases files (or I was missing something) and also I had comiled files that was recreating this field whenever I tried to remove it. My solution was perhaps not so pretty

[web2py] Re: Fullcalendar scheduler

2017-02-07 Thread Andrea Fae'
Thanks but I need RESOURCE because I want to use scheduler add-on... Il giorno martedì 7 febbraio 2017 10:28:05 UTC+1, T.R.Rajkumar ha scritto: > > In controller > -- > def home(): > rows = db(db.cal_events).select() > return dict(rows=rows) > > In view > > >

[web2py] Re: Changing Bootstrap Navbar to light background colour

2017-02-07 Thread Paul Ellis
In my version of web2py the layout.html has this: However, it is definitely black. If I change it to navbar-inverse I get a green navbar. By using the above css. I am able to get a light navbar. Thanks On Thursday, 3 December 2015 11:32:48 UTC+1, Leonel Câmara wrote: > > I don't mean in the

[web2py] W2P NGINX ERROR

2017-02-07 Thread Áureo Dias Neto
I have the 502 bad gateway error, on nginx + centos + uwsgi.. it's work's great, but after restart the server system, i get the error.. i atached the config files and nginx error log any ide0? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

Re: [web2py] W2P NGINX ERROR

2017-02-07 Thread Áureo Dias Neto
And, the nginx conf file 2017-02-07 19:17 GMT-02:00 Áureo Dias Neto : > I have the 502 bad gateway error, on nginx + centos + uwsgi.. it's work's > great, but after restart the server system, i get the error.. i atached the > config files and nginx error log > > any ide0? > > -- > Resources: > -

[web2py] how to control what A displays while working

2017-02-07 Thread Tim Korb
I'm using the Ajax feature of the A tag to replace a component: A(IMG(_src=image), _href=URL('default', 'getit'), user_signature=True, cid=request.cid) While the content (default/getit) is being fetched, I would like to replace the current image with a spinner image, rather than the defau

[web2py] Re: how to control what A displays while working

2017-02-07 Thread Leonel Câmara
In your web2py_ajax.html view there's a w2p_ajax_disable_with_message you can change it there. -- 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 receiv

Re: [web2py] W2P NGINX ERROR

2017-02-07 Thread Jim S
What about the uwsgi log? -Jim On Tuesday, February 7, 2017 at 3:42:10 PM UTC-6, Áureo Dias Neto wrote: > > And, the nginx conf file > > 2017-02-07 19:17 GMT-02:00 Áureo Dias Neto >: > >> I have the 502 bad gateway error, on nginx + centos + uwsgi.. it's work's >> great, but after restart the s

Re: [web2py] W2P NGINX ERROR

2017-02-07 Thread Áureo Dias Neto
Is here, sorry 2017-02-08 0:27 GMT-02:00 Jim S : > What about the uwsgi log? > > -Jim > > On Tuesday, February 7, 2017 at 3:42:10 PM UTC-6, Áureo Dias Neto wrote: >> >> And, the nginx conf file >> >> 2017-02-07 19:17 GMT-02:00 Áureo Dias Neto : >> >>> I have the 502 bad gateway error, on nginx +

[web2py] Re: how to control what A displays while working

2017-02-07 Thread Tim Korb
Thanks, I'll look at that. Maybe a content= parameter to A(...) would be useful, analogous to the one for LOAD(...). -- 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