[web2py] Re: web2py_htmltable styling - source code to be corrected?

2014-03-15 Thread Kiran Subbaraman
Am unable to reply to the discussion of this topic on web2py-developers: https://groups.google.com/forum/#!topic/web2py-developers/6KkkGeQSEUg Last 3 replies have been marked as "deleted". Not sure what is going on there. -Kiran On Thursday, March 6, 2014 7:26:57 PM UTC+5:30, Massimo Di Pierro

Re: [web2py] is_active column in auth_user - a question

2014-03-15 Thread Kiran Subbaraman
Vinicius, Thanks for the details. Will take a look at the code, and also create a pull-request for the documentation - if I have some details to add. Thanks -Kiran On Wednesday, March 12, 2014 7:27:16 PM UTC+5:30, viniciusban wrote: > > On Wed, Mar 12, 2014 at 8:42 AM, Kiran Subbaraman > > wrot

[web2py] Re: Bootstrap3 package - help to test

2014-03-15 Thread Dmitry Rodetsky
Ok it seems I got this thing fixed up. The problem was in the bootstrap3.py module. I am including an updated version as an attachment. Line changes: 203, 440-442. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:/

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread Massimo Di Pierro
It is a well known problem of the Python GIL that multithreaded apps on multicore CPU run slower than non-threaded apps. http://stackoverflow.com/questions/3121109/python-threading-unexpectedly-slower The solution is not to use threads but non-threaded servers, like gunicorn or nginx. That is t

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread Jonathan Lundell
On 15 Mar 2014, at 7:45 PM, Massimo Di Pierro wrote: > Could it be the GIIL. web2py is a multi-threaded app. Are the threads created > by the web server doing anything? > What if you use a non-threaded server like gunicorn instead? > I believe that Niphlod reproduced the problem with Rocket, i

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread horridohobbyist
I'll see what I can do. It will take time for me to learn how to use another framework. As for trying a different web server, my (production) Linux server is intimately reliant on Apache. I'd have to learn how to use another web server, and then try it in my Linux VM. On Saturday, 15 March 20

Re: [web2py] web2py 2.9.5 is OUT

2014-03-15 Thread Ovidio Marinho
ok , testing. Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com itjp.net...@gmail.com Brasil 2014-03-15 23:42 GMT-03:00 Massimo Di Pierro : > Contains major bug fixes. > Thanks niphlod, Tim, all the other

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread Anthony
Are you able to replicate the exact task in another web framework, such as Flask (with the same server setup)? On Saturday, March 15, 2014 10:34:56 PM UTC-4, horridohobbyist wrote: > > Well, putting back all my apps hasn't widened the discrepancy. So I don't > know why my previous web2py install

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread Massimo Di Pierro
Could it be the GIIL. web2py is a multi-threaded app. Are the threads created by the web server doing anything? What if you use a non-threaded server like gunicorn instead? On Saturday, 15 March 2014 21:34:56 UTC-5, horridohobbyist wrote: > > Well, putting back all my apps hasn't widened the dis

[web2py] web2py 2.9.5 is OUT

2014-03-15 Thread Massimo Di Pierro
Contains major bug fixes. Thanks niphlod, Tim, all the other who have contributed. Massimo -- 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

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread horridohobbyist
Well, putting back all my apps hasn't widened the discrepancy. So I don't know why my previous web2py installation was so slow. While the Welcome app with the calculations test shows a 2x discrepancy, the original app that initiated this thread now shows a 13x discrepancy instead of 100x. That'

[web2py] Re: Web2Py without Bootstrap

2014-03-15 Thread Massimo Di Pierro
The only parts of web2py that generate bootstrap specific class are the auth.navbar() and the FORMs(SQLFORM, SQLFORM.grid). The navbar can be customized to not use bootstrap classes but the HTML of navbar is also very specific of bootstrap. If you do not want bootstrap, you should make your ow

[web2py] Re: Bootstrap3 package - help to test

2014-03-15 Thread Dmitry Rodetsky
Problems with reCaptcha. Using the following code: *In db.py*: def captcha_field(request=request): from gluon.tools import Recaptcha w = lambda x,y: Recaptcha(request, 'proper public key here ', 'proper private key here ', error_message='Invalid statement') retu

[web2py] Re: web2py on Mac OS Mavericks, trying to use port 80

2014-03-15 Thread audionuma
Hello, Le vendredi 14 mars 2014 20:33:26 UTC+1, Dave S a écrit : > > > On Friday, March 14, 2014 9:51:55 AM UTC-7, LightDot wrote: >> >> Hello Manuel, welcome to the list. >> >> The issue you're seeing is not a bug, it's a feature of the OS or, >> rather, of it's security settings. The same be

[web2py] Re: Pulling data from API for real-time calculation

2014-03-15 Thread Martin
Thanks Niphold, But what is you suggestion ? Code example etc... Le vendredi 14 mars 2014 23:14:27 UTC+2, Niphlod a écrit : > > if you do "real-time" calculations while the user presses buttons, it's > supposed to return under 300ms. Online book states that part in > environments where you do ca

[web2py] Web2Py without Bootstrap

2014-03-15 Thread Pedro Pisandelli
Hey guys! I love Python, and I´m getting fascinated about web2py. Nevertheless, I really don´t like the way it works (so tied) with Bootstrap. It´s fine get some help from Bootstrap and Build some prototype screens. But I like to use other (sometimes better) frameworks, like semantic-ui.com At th

[web2py] Table design question - displaying descriptive text for integer field

2014-03-15 Thread Dan Why
I am building a TODO-list type application while studying web2py. For each task, I would like to set a priority. Having integer values for priority makes it easier to query something like db(db.task.priority > 1).select(). Because there will be only a few of them, I would just create some cons

[web2py] Re: Understanding translation and accept-language header?

2014-03-15 Thread Massimo Di Pierro
Yes. This is the relevant code in gluon/languages.py def set_current_languages(self, *languages): """ Sets current AKA "default" languages Setting one of this language

[web2py] Re: Verbatim Tag

2014-03-15 Thread Massimo Di Pierro
Please open a ticket. We will discuss on web2py-developers. On Friday, 14 March 2014 14:17:44 UTC-5, David Simmons wrote: > > Hi Leonel >> > > I think you are correct in that it might make it a little more difficult > to parse. My problem with having to change either of the delimiters for > Angu

[web2py] Re: One Step Production Deployment

2014-03-15 Thread horridohobbyist
I downloaded the zip file for the source. I unzipped it in my home directory, went into the scripts folder and executed setup-web2py-ubuntu.sh. For some reason, this gave me a working installation, whereas going the wget route did not. On Saturday, 15 March 2014 17:11:42 UTC-4, Anthony wrote:

Re: [web2py] Python Performance Issue

2014-03-15 Thread Jonathan Lundell
On 15 Mar 2014, at 8:19 AM, Niphlod wrote: > @mcm: you got me worried. Your test function was clocking a hell lower than > the original script. But then I found out why; one order of magnitude less > (5000 vs 5). Once that was corrected, you got the exact same clock times > as "my app" (i.e

[web2py] Re: One Step Production Deployment

2014-03-15 Thread Anthony
On Saturday, March 15, 2014 4:10:32 PM UTC-4, horridohobbyist wrote: > > Well, I solved the problem by installing manually from source (ie, wget, > ./setup-web2py-ubuntu.sh). > Can you explain what you mean by "manually from source"? Aren't those the exact instructions for the one-step productio

Re: [web2py] Web2py on Koding.com

2014-03-15 Thread wuelfhis asuaje
Thanks let me try it out On Sat, Mar 15, 2014 at 12:59 AM, 黄祥 wrote: > please take a look at : > http://www.web2pyslices.com/slice/show/1956/install-web2py-on-kodingcom > > what is still outstanding is about the admin page still can not reach it > said : > admin disabled because unable to acces

Re: [web2py] Web2py on Koding.com

2014-03-15 Thread wuelfhis asuaje
The weird thing here is that app runs fine locally, even in pythonanywhere ! i don't know what's wrong Starting to think its something with koding.com On Fri, Mar 14, 2014 at 2:37 PM, Richard Vézina wrote: > Showing the callback code would help. > > Richard > > > On Fri, Mar 14, 2014 at 2:50

[web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread SimonD
Hi LightDot, Thanks for the info. I have a well thumbed printed 5th edition book and to be honest, this is not too well documented in there. A quick look at the 6th edition didn't help. But I will probe the 5th edition again. The reference I did find appears related to nginx, rather than Apache (

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread horridohobbyist
Interestingly, now that I've got a fresh install of web2py with only the Welcome app, my Welcome vs command line test shows a consistent 2x discrepancy, just as you had observed. My next step is to gradually add back all the other apps I had in web2py (I had 8 of them!) and see whether the disc

[web2py] Re: One Step Production Deployment

2014-03-15 Thread horridohobbyist
Well, I solved the problem by installing manually from source (ie, wget, ./setup-web2py-ubuntu.sh). Strange that this works and the "One step production deployment" doesn't. Someone really ought to look into this. On Saturday, 15 March 2014 15:15:52 UTC-4, LightDot wrote: > > As I just wrote in

[web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread LightDot
Btw, this seems to be one of the more elusive features of web2py, when it comes to finding information about it... @simonD, can I ask what did you first think when you saw _2.9.4 in the path, but no corresponding folder? Did you assume anything else besides a missing folder? Did you search the

[web2py] Re: One Step Production Deployment

2014-03-15 Thread LightDot
As I just wrote in another thread: the _2.9.4 comes from *virtual* static asset management. This number will change now and then, as static files get updated, so please don't go creating actual folders for this. This feature is defined with response.static_version, it's in the book and the trou

[web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread LightDot
Er... creating folders is NOT the solution. You don't have any folders missing. The _2.9.4 comes from *virtual* static asset management. This number will change now and then, as static files get updated, so please don't go creating actual folders for this. Search the book and this group for re

[web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread SimonD
Thanks to all other contributors. Massimo nailed it, I think, with the proposal to use Chromes diagnostics. I must get properly acquainted with Chrome... The core problem was: a folder missing under admin/static (called _2.9.4). Although I think the other Apache config solution may have worked,

[web2py] Re: One Step Production Deployment

2014-03-15 Thread horridohobbyist
Sorry, I spoke too soon. While the visual rendering is okay, the menus don't work. So I can't create the _2.9.4 folder. Damn. On Saturday, 15 March 2014 13:08:36 UTC-4, horridohobbyist wrote: > > Okay, I solved the other piece of the mystery. The Administrative > Interface view is now referenci

[web2py] Re: One Step Production Deployment

2014-03-15 Thread horridohobbyist
Okay, I solved the other piece of the mystery. The Administrative Interface view is now referencing its CSS, JS, and plugins in a folder one level deeper called "_2.9.4". So I simply created a _2.9.4 folder and moved css, js, plugin_multiselect and plugin_statebutton into it. Everything is now

[web2py] Re: One Step Production Deployment

2014-03-15 Thread horridohobbyist
Okay, I figured out what happened. During the "One step production deployment", *for some reason*, the wsgihandler.py file did NOT get copied to the web2py parent folder. Don't ask me why. (In my test VM, the wsgihandler.py file did get copied, in fact, moved. Go figure.) Now, I'm finding that

[web2py] Re: One Step Production Deployment

2014-03-15 Thread 黄祥
hm, not sure about the web2py process running, because it's just a framework that access by webserver. not just web2py, i think the other web framework too. at least for ensure that your web server is running, perhaps you can do in terminal something like : netstat -tnlp or top | grep apache an

[web2py] Re: One Step Production Deployment

2014-03-15 Thread horridohobbyist
Well, it's not the welcome app. I also can't access the administrative interface: https://67.213.70.250/admin It's almost as if web2py isn't running. How can I verify that the process is running? On Saturday, 15 March 2014 08:09:37 UTC-4, 黄祥 wrote: > > had you remove the welcome apps? please

Re: [web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread Niphlod
On Friday, March 14, 2014 11:19:56 PM UTC+1, Dewes wrote: > > Maybe in apache2, on default config you have this line: > > AliasMatch ^/([^/]+)/static/(.*) > /var/www/web2py/applications/$1/static/$2 > > Change it to: > AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*)

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread Niphlod
@mcm: you got me worried. Your test function was clocking a hell lower than the original script. But then I found out why; one order of magnitude less (5000 vs 5). Once that was corrected, you got the exact same clock times as "my app" (i.e. function directly in the controller). I also stri

Re: [web2py] Re: Python Performance Issue

2014-03-15 Thread Michele Comitini
About the logging: http://web2py.com/books/default/chapter/29/04/the-core?search=logger#Logging 2014-03-15 2:32 GMT+01:00 horridohobbyist : > I don't understand logging. How do I examine the log? Where is it?? > > > On Friday, 14 March 2014 18:29:15 UTC-4, Michele Comitini wrote: >> >> Can you t

[web2py] Go to most recent topic post

2014-03-15 Thread Ruud Schroen
I'm building a small forum for my website. In a topic, you will see 10 posts per page. Outside the topic, in the forum overview, each topic will have a shortcut to the most recent post. How do i find out which page to redirect to (the page where the most recent post is)? (there is another top

[web2py] Go to most recent forum post

2014-03-15 Thread Ruud Schroen
Hi there, I'm creating a small forum for my website. When you view a topic you will see 10 posts per page. I'm using the pagination from web2py utils. Outside the topic (in the forum overview) i want each topic to have a shortcut to the most recent post. How do i find out which page i have to

[web2py] Re: Latest thinking -- Bootstrap vs. Foundation?

2014-03-15 Thread Jay Martin
Hi Arnon, Please see this post if you're interested in helping to test BS3 or want to keep up with the progress: https://groups.google.com/forum/#!topic/web2py/oSABtjmnYM0 My best, Jay On Tuesday, March 11, 2014 1:18:41 PM UTC-4, Arnon Marcus wrote: > > Any news on this? > > When should BS3 b

[web2py] Re: One Step Production Deployment

2014-03-15 Thread 黄祥
had you remove the welcome apps? please describe your steps that reproduce the error. ref: http://www.web2pyslices.com/slice/show/1957/install-web2py-on-lubuntu-with-apache-and-mod-wsgi best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://git

[web2py] One Step Production Deployment

2014-03-15 Thread horridohobbyist
I'm trying to reinstall web2py on my Linux server. I'm trying to start from a clean slate... First, I've updated my server to Ubuntu Server 12.04. I've restored the original *httpd.conf* (empty file) and *sites-available/default* files for Apache2. So, for all intents and purposes, web2py is go

[web2py] Re: Column width

2014-03-15 Thread Richard
hi, fluid works better, thank you. Richard On Monday, March 10, 2014 1:34:14 AM UTC+1, Kiran Subbaraman wrote: > Instead of tweaking the column widths, did you try ? > > On Monday, March 10, 2014 12:17:25 AM UTC+5:30, Richard wrote: >> >> Hello, >> >> I have restarted developing a full-screen a

Re: [web2py] Re: login_next and next var

2014-03-15 Thread Annet
Hi Trevor, The following button works for me: Login In cms/default/user if request.args(0) == 'login': if request.vars.nxt: session.nxt = request.vars.nxt In cms/default/my_login if session.nxt: redirect(session.nxt) else: redirect(URL('index')) I h