[web2py] Controller View Question

2017-07-27 Thread briannd81
Can I run 2 instances of web2py of the same application, with 1 instance process the Business Logic (controller) while the other instance doing the User Interface (View)? What I'm trying to achieve here is to separate the API and UI by hosting them on separate server, to allow me to scale them

[web2py] Web2py Docker

2017-07-21 Thread briannd81
I've searched through the discussion archive before posting this question. There were few threads here and there but nothing definitive. Please share your experience with using the web2py docker image. Can you recommend a docker image(s) that you've been using in production? Thanks, CD -- Res

[web2py] web2py deployment strategies

2017-07-20 Thread briannd81
There are several sections in the web2py documentation that showed some strategies to optimize the performance of web2py, i.e. using lazy table, memcache, etc... Should I incorporate some of these strategies on a new deployment of web2py, or should I just stick with the standard configuration

[web2py] Scaling web2py

2017-06-23 Thread briannd81
I'm planning to have 2 servers hosting web2py for load balancing and high availability. Will sessions be persistent across both servers? If not, then I need to make sure the load balancer always direct the same user session to the same server? Is my understanding correct? -- Resources: - http:

[web2py] Missing Preview in Built-in Wiki

2017-01-28 Thread briannd81
Hi Web2py Family, I hope you guys and gals can help me with this problem. I'm using the Volvox Bootstrap Template for my web2py application. I followed the recommended steps to make other bootstrap templates compatible with web2py, i.e. stored the template static and update href/src tags to po

[web2py] Display URL from Component LOAD

2017-01-18 Thread briannd81
Hi, I'm trying to display the current URL inside an html page that's embedded via Component LOAD. However, the URL displayed is not the one that's on the browser's address bar. Instead, it's the URL of the embedded page. How do I display the URL on the browser's address bar instead of itself?

[web2py] LOAD Component returns "invalid function"

2017-01-05 Thread briannd81
Please help with the following: In CONTROLLER: def get_author(*args): In VIEW: {{=LOAD('default', 'get_author.load', ajax=True)}} With the LOAD component inside a view, it returns "Invalid function (default/get_author)". Seems like it doesn't like the function argument *args. There is no er

[web2py] python code in wiki page

2017-01-02 Thread briannd81
How do I get the built-in wiki page to run python code, i.e. {{=URL('default','blog')}} I use auth.wiki(render='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 (Repor

[web2py] menu

2016-12-31 Thread briannd81
I'm using a bootstrap theme that comes with its own menu. How do I add web2py's wiki menu to the bootstrap's theme? -- 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 Is

[web2py] wiki menu in bootstrap theme

2016-12-13 Thread briannd81
Hi, What is the best way to add the default wiki menu to a different bootstrap theme? I manually added the menu to the theme but didn't realized that the wiki sub-menu changes based on the current page. Should I modify the wiki menu to reflect the theme's html? If so, how can it be done? Than

[web2py] markmin

2016-05-07 Thread briannd81
I can read the x value of http get as: tmp = request.vars['x'] What is the equivalent syntax in *markmin*? -- 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) --

[web2py] Re: built-in wiki

2016-04-22 Thread briannd81
Solution to this is pass in argument attachment=False when calling response.download inside media function from tools.py On Tuesday, April 19, 2016 at 5:09:32 PM UTC-4, bria...@gmail.com wrote: > > I use the built-in wiki for my application. I created a page (slug) and > upload the image using t

[web2py] wiki search

2016-04-22 Thread briannd81
How do I append search results to another div class rather than displaying it beneath the search box? -- 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

[web2py] Re: turn off tags in search wiki

2016-04-21 Thread briannd81
Figured out to turn off tagging under search by setting cloud=False in search function arg On Thursday, April 21, 2016 at 10:33:52 PM UTC-4, bria...@gmail.com wrote: > > How do I turn off the tags appear under the search function of the > built-in wiki? > -- Resources: - http://web2py.com - ht

[web2py] turn off tags in search wiki

2016-04-21 Thread briannd81
How do I turn off the tags appear under the search function of the built-in wiki? -- 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 messa

[web2py] Re: built-in wiki

2016-04-20 Thread briannd81
Can you elaborate more on both solutions? How can I get this to work when I create the image link inside the slug? On Tuesday, April 19, 2016 at 5:09:32 PM UTC-4, bria...@gmail.com wrote: > > I use the built-in wiki for my application. I created a page (slug) and > upload the image using the bui

[web2py] Re: built-in wiki

2016-04-20 Thread briannd81
I apologize. My initial question is not very clear so I'll rephrase it more appropriately. The problem here is that when I link to the image it's saving it instead of display it, and the latter is my intention. It looks like this feature is built into web2py. I think the following HTTP header

[web2py] built-in wiki

2016-04-19 Thread briannd81
I uploaded the image via the media function of the built-in wiki. I created a link to the larger image to display it when user click on the thumbnail. But instead, it downloads the larger image. Please advise how to display the image instead of download it through the anchor tag. Thanks, CD

[web2py] built-in wiki

2016-04-19 Thread briannd81
I use the built-in wiki for my application. I created a page (slug) and upload the image using the built-in media function. I created a link to display the large image when user clicked on the thumbnail, but instead it downloads the image. This is my code within the page. Please advise how c