[web2py] Re: Controller View Question

2017-07-28 Thread Stuart Rolinson
Yes you can do this. what you need to do is use either the scheduled task function or the another queuing system, such as celery. The web2py scheduler works well for most scenarios. The flow will go something like this:- 1. User access the front end app and request a scheduled action or long

[web2py] Re: is it safe to create url in javascript?

2016-06-13 Thread Stuart Rolinson
Embedding URLs is generally not a problem as long as you are not including any particular server information. You should ensure that your server side code is secure and validates the input / parameters it receives. If the user is logged in for this function call you could user @auth.requires_l

[web2py] Re: Weird Javascript Behavior -- 2 clicks to fire (Sorry, Dont know where else to turn)

2016-04-29 Thread Stuart Rolinson
Hi Mark, Can you pull together a simple example showing this with your HTML, CSS and Javascript. I understand what you are trying to do but I need to see more in order to understand when the click event is being applied to the .iframe_add objects. Thanks Stuart On Friday, April 29, 2016 at 1

[web2py] Re: Adding appended text to SQLFROM

2016-04-14 Thread Stuart Rolinson
Ron, I am pretty sure the only way to do this would be a custom for, so yes {{=form.custom.begin}}. {{=form.custom.begin}} Form Name Appended Text {{=form.custom.widget.appendedtext}} append help {{=form.custom.end}} Hope that helps. Stuart. On Thursd

[web2py] Re: Possible Bug: Custom form rendering of auth.profile not working.

2016-03-27 Thread Stuart Rolinson
Thank you Anthony. Once the process() is removed it works correctly. On Sunday, March 27, 2016 at 9:43:22 AM UTC-7, Stuart Rolinson wrote: > > I think I may have found a bug when rendering custom auth forms using > SQLFORM. > When the auth profile form is rendered using form.

[web2py] Possible Bug: Custom form rendering of auth.profile not working.

2016-03-27 Thread Stuart Rolinson
I think I may have found a bug when rendering custom auth forms using SQLFORM. When the auth profile form is rendered using form.custom.begin - form.custom.end the hidden fields are rendered incorrectly causing the form not submit correctly. The following code works correctly: *Model* db.def

[web2py] Re: how to upgrade web2py on turnkey linux

2016-02-05 Thread Stuart Rolinson
The issue is due to a conflict with turnkey server and the git.py module. This needs to be disabled once the upgrade has been done, you may have a script called upgrade-web2py in the root users home folder which should fix this, but if not I have included the contents of the script below. #!/

[web2py] Re: Can web2py app be hosted on any other host other than pythonanywhere?

2015-12-19 Thread Stuart Rolinson
I have hosted our company website on Amazon Web Services platform with their managed mySQL services and it has so far proven fairly easy to setup. I used the Turnkey Linux web2py appliance and with a little work have a reliable hosting solution. There are a few gotchas when it comes to upgrad

Re: [web2py] Re: web2py and python3

2015-11-16 Thread Stuart Rolinson
I wanted to add to this discussion as well. I think that developing with python 2.7 and web2py has been fine, however I have been really concerned as my application gets bigger that we are going to have to migrate to a .net or java based solution in the future. The more I develop, the more I

[web2py] Re: PyCharm license for web2py dev - who wants?

2015-10-14 Thread Stuart Rolinson
+1 Thanks, Stuart On Sunday, October 11, 2015 at 12:21:16 PM UTC-7, Francisco Ribeiro wrote: > > Hello all, > > for those who know PyCharm is a great IDE from JetBrains that provides > free licenses for Open Source projects like web2py ( > https://www.jetbrains.com/buy/opensource/?product=pycha

[web2py] Re: One form in multiple tabs

2015-09-18 Thread Stuart Rolinson
José, How did you do your form validation and ensure the right tab was open to show the error? I am doing something similar and would like to do the validation in the controller rather than using lots of javascript. Thanks, Stuart On Thursday, April 18, 2013 at 5:15:32 PM UTC-7, Jose wrote:

[web2py] Re: Adding class='hidden' creates an element style='display: none'

2015-09-17 Thread Stuart Rolinson
That got it , Thanks. On Wednesday, September 16, 2015 at 6:42:55 AM UTC-7, Stuart Rolinson wrote: > > When I create an item directly in the html form with a class ='hidden' for > use with bootstrap, web2py appears to be rendering an additional element > style &quo

[web2py] Re: Adding class='hidden' creates an element style='display: none'

2015-09-17 Thread Stuart Rolinson
That got it , Thanks. On Wednesday, September 16, 2015 at 10:02:23 AM UTC-7, Anthony wrote: > > What Bootstrap functionality is broken by this? > > On Wednesday, September 16, 2015 at 9:42:55 AM UTC-4, Stuart Rolinson > wrote: >> >> When I create an item directly in

[web2py] Re: Adding class='hidden' creates an element style='display: none'

2015-09-17 Thread Stuart Rolinson
That got it, thank you. On Wednesday, September 16, 2015 at 8:25:18 AM UTC-7, Leonel Câmara wrote: > > web2py.js does that, I think it's because of appadmin using class hidden > and since appadmin uses your app's layout it may not have the css saying > it's supposed to be display:none, but to be

[web2py] Re: Adding class='hidden' creates an element style='display: none'

2015-09-17 Thread Stuart Rolinson
y is broken by this? > > On Wednesday, September 16, 2015 at 9:42:55 AM UTC-4, Stuart Rolinson > wrote: >> >> When I create an item directly in the html form with a class ='hidden' >> for use with bootstrap, web2py appears to be rendering an additional >&

[web2py] Adding class='hidden' creates an element style='display: none'

2015-09-16 Thread Stuart Rolinson
When I create an item directly in the html form with a class ='hidden' for use with bootstrap, web2py appears to be rendering an additional element style "display:none" which stops bootstrap functionality working correctly. Raw HTML: Select County Rendered HTML: Select County