Re: [web2py] Re: routes.py

2012-04-17 Thread IVINH
Thank you, but I can use the syntax as: 'domain.com': 'domain.com:8000' to redirect with routes.py? Vào 21:03:21 UTC+7 Thứ ba, ngày 17 tháng tư năm 2012, Jonathan Lundell đã viết: > > On Apr 17, 2012, at 1:31 AM, IVINH wrote: > > Web2py server running at port 8000, how to redirect mydomain.co

Re: [web2py] CPU 210%

2012-04-17 Thread Roberto De Ioris
> Thanks this is very helpful to know. I am building a system with nginx and > uwsgi to get the system running on that. I have been avoiding using uwsgi > for anything serious because I have been seeing a lot of threads reporting > problems with it. ...and you will continue to see that :) Thread

[web2py] Re: strange jquery error

2012-04-17 Thread weheh
Aha! Found the problem. The issue is that the callback function in the controller had an @auth.requires_login() decorator on it. (It was there originally because I didn't want the function to be called unless user was logged in, but then changed my mind.) Still, the signature of this bug in my

[web2py] Re: IS_TIME(format='%H:%M') unexpected keyword argument format

2012-04-17 Thread Annet
Hi Villas, Thanks for your reply. IS_TIME() does not format but understands the following formats > > I thought maybe in line with IS_DATE(format='') and IS_DATETIME(format='') IS_TIME would have a format property as well. > Otherwise I think you'll have to make your own validator which I don

Re: [web2py] CPU 210%

2012-04-17 Thread Bruce Wade
OK when having your web2py app running on multiple servers during load balancing. What is the best way to handle the error's so I don't have to constantly lot into each server just to find out the problem? On Tue, Apr 17, 2012 at 10:17 PM, Bruce Wade wrote: > Yeah, I am not sure how well web2py

Re: [web2py] CPU 210%

2012-04-17 Thread Bruce Wade
Yeah, I am not sure how well web2py can handle load but I am going to find out pretty fast. I finished setting up a load balancer today, going to have 3 servers under it running nginx + uwsgi + web2py a single dedicated DB server for now, but figure I am going to need some slave read only servers.

Re: [web2py] CPU 210%

2012-04-17 Thread pbreit
I've never read anything but good things about uwsgi. Django and Flask both promote it.

[web2py] strange jquery error

2012-04-17 Thread weheh
I have DIV(..., onclick="ajax...") that works just fine when the user is signed in, but fails when the user is not signed in. Firebug reports: Uncaught SyntaxError: Unexpected token < jQuery.ajax.success web2py.js:21 f.Callbacks.o

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread cyan
Thank you!

[web2py] Re: how I can connect to SQLAnywhere database

2012-04-17 Thread mohamed elsebaey
thanks On Friday, April 13, 2012 4:25:43 PM UTC+3, Massimo Di Pierro wrote: > > We do not have sybase support but if you can help testing, should be easy > to add. > > On Friday, 13 April 2012 01:45:28 UTC-5, mohamed elsebaey wrote: >> >> >> Hi, >> >> Is wep2py support connection to Sybase SQLAny

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread Anthony
> > 1. The Web2py manual says that > auth.settings.register_onaccept[] > should be called *before* the re-direction. For my purpose here (i.e. > re-directing the user to a new page after auth.register() is processed), > shouldn't I just do > auth.settings.register_next = URL('registered') > ?

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread cyan
Hi Anthony, Great insight! The removal of manual re-direction fixes the email failure! One follow-up questions: 1. The Web2py manual says that auth.settings.register_onaccept[] should be called *before* the re-direction. For my purpose here (i.e. re-directing the user to a new page after aut

[web2py] How can I create new auth_user and auth_group on Web2py running on Google App Engine (GAE)?

2012-04-17 Thread Alex Benfica
I've created an app on my local computer with Web2py and it is running via WSGI with SQLite. I can successfully deploy my app to Google App Engine, using my own domain and doing all url rewrites I need. Now I need a way to create specific administrative users that will be responsible for upda

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread Anthony
> > def register(): > """ > exposes: > http:///[app]/account/register > """ > form = auth.register() > if form.process().accepted: > session.email = form.vars.email > session.password = form.vars.password > redirect(URL('registered')) >

[web2py] unable to create application (permissions?)

2012-04-17 Thread web-dev-m
Hey everyone, I recently upgraded web2py. Afterwards, I am unable to create applications. I chown'd www-data:www-data the web2py directory, so everything is correctly permitted. I also chmod 755 everything. I had a NEWINSTALL file in there, and my deposit folder is there as well. My current

Re: [web2py] Re: How to accept credit card payments (video)

2012-04-17 Thread weheh
You guys should be using my website for voiceover: YAKiToMe.com. The version on the web is old, but the new one is coming online very shortly (as soon as I can finish it) and it will be 100% web2py. On Monday, March 7, 2011 9:35:39 AM UTC+8, rochacbruno wrote: > > I found a utility called Festi

[web2py] Re: jstree, controller call

2012-04-17 Thread Simon Ashley
Thanks. An excellent explanation and much appreciated. That works. I'll look at extending this to a new page and/ or a modal window. On Wednesday, 18 April 2012 08:53:50 UTC+10, Niphlod wrote: > > sorry to be so late > > if you have {{=URL('tree','stree','index')}} anywhere in the view it ge

[web2py] Re: A helper returning an unexpected result

2012-04-17 Thread Simon Ashley
Thanks, was expecting a call to the the 'index' function as defined within the default controller. ('index' is just calling a simple grid - to see if something/ anything could be called) This was a derivation of an earlier thread (jstree, controller call) and was part of a many of attempts (all

[web2py] Re: Database design

2012-04-17 Thread simon
You can do this with a single form. At the top of the controller set readable=false, writable=false for the fields you do not want on the form. On Tuesday, 17 April 2012 23:44:54 UTC+1, leftcase wrote: > I'm a new adopter of web2py and I'm trying to learn the framework by > building a simple p

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruce Wade
Good to know thanks. On Tue, Apr 17, 2012 at 4:42 PM, Niphlod wrote: > ps, $scheme is usually mapped before in /etc/nginx.conf as > > map $scheme $server_https { > default off; > https on; > } > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Niphlod
ps, $scheme is usually mapped before in /etc/nginx.conf as map $scheme $server_https { default off; https on; }

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruce Wade
Thanks Niphlod that solved it :D Thanks Bruno your set up files are helping a lot. -- Regards, Bruce On Tue, Apr 17, 2012 at 4:35 PM, Niphlod wrote: > uhm just my 2 cents > > If cert is loaded incorrectly in nginx all pages with https are reported > to the browser as "insecure" but web

[web2py] Re: Database design

2012-04-17 Thread Niphlod
if you need to "do" common operation with the two "sets" (old and new), create a table that maps the "larger" (as in "attributes") set and leave for the other set the fields not relevant to NULL. In your case, if "old" table has more columns, just insert the values from "new" leaving all the non

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Niphlod
uhm just my 2 cents If cert is loaded incorrectly in nginx all pages with https are reported to the browser as "insecure" but web2py should not complain about an insecure channel (web2py doesn't check for cert validation) maybe nginx is not passing the "https" variable to uwsgi, and the

[web2py] Re: how to make basic auth work?

2012-04-17 Thread Niphlod
what web2py version are you using ? I just used with auth.settings.allow_basic_login = True curl -u t...@test.com:test "url" and it works without a hitch in 1.99.7 Il giorno venerdì 13 aprile 2012 14:52:31 UTC+2, selecta ha scritto: > > I enable basic auth with > auth.settings.allow_basic_logi

[web2py] Re: Digitally signed URLs

2012-04-17 Thread Niphlod
you're right, book is wrong, correct use is: KEY = 'mykey' def one(): return dict(link=URL('two', vars=dict(a=123), hmac_key=KEY)) def two(): if not URL.verify(request, hmac_key=KEY): raise HTTP(403) # do something return locals() Il giorno domenica 15 aprile 2012 04:03:00 UTC+

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruce Wade
I have a verisign certificate, that could be the problem trying to figure out how to set that properly with nginx which is different then apache. On Tue, Apr 17, 2012 at 3:52 PM, Bruno Rocha wrote: > this is my web2py + uwsgi + ngonx configs https://gist.github.com/2359513 > > look the .crt and

[web2py] Re: jstree, controller call

2012-04-17 Thread Niphlod
sorry to be so late if you have {{=URL('tree','stree','index')}} anywhere in the view it gets translated to: /appname/tree/stree/index Now, if you check your source, you should see it. So, try to "hardcode" that url without using {{=URL()}} syntax and check if your javascript is working.

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruno Rocha
this is my web2py + uwsgi + ngonx configs https://gist.github.com/2359513 look the .crt and .key part did you created a self signed https key? On Tue, Apr 17, 2012 at 7:49 PM, Bruce Wade wrote: > Yes you were right it was a permissions issue. > > However even using https: I am getting: Admin i

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread cyan
Hah! I think I finally eliminate the first error by removing the files in /database folder of my application after each db drop. Many thanks to both Ron and Anthony! I have tested the verification email bit again and again, using different email addresses and check both their inbox and spam fo

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruce Wade
Yes you were right it was a permissions issue. However even using https: I am getting: Admin is disabled because insecure channel when trying to view tickets. Using nginx + uwsgi On Tue, Apr 17, 2012 at 3:43 PM, Bruno Rocha wrote: > May be permission issues on the tickets folder > > > On Tue,

[web2py] Database design

2012-04-17 Thread Chris Rowson
I'm a new adopter of web2py and I'm trying to learn the framework by building a simple property site. I have two types of properties, new or old. New properties have a few core attributes, let's say name, price, location, bedrooms Old properties have the same core attributes with a few more adde

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruno Rocha
May be permission issues on the tickets folder On Tue, Apr 17, 2012 at 7:26 PM, Bruce Wade wrote: > How to troubleshoot this? Internal errorTicket issued: > unrecoverable > > -- > -- > Regards, > Bruce Wade > http://ca.linkedin.com/in/bru

[web2py] Re: SQLFORM.grid, links and buttons placement specification (before other columns, after, or both)

2012-04-17 Thread villas
+1 all work to improve the grid is good! I am a big fan of it.. On Tuesday, 17 April 2012 09:57:04 UTC+1, nikos wrote: > > Hello there follow web2py users, > > First of all, Massimo, thanks for the great work you have done to get > web2py to this high level of functionality. > > I recently star

[web2py] Re: jstree, controller call

2012-04-17 Thread Simon Ashley
Thanks but unfortunately this doesn't help as the controller needs to be called from within the view. (what we believe to be normal python escaping techniques i.e. {{ ... }} doesn't seems to be returning appropriate responses. Have been stuck on this for weeks now. While our javascript skills m

[web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruce Wade
How to troubleshoot this?Internal errorTicket issued: unrecoverable -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.fittraineronline.com - Fitness Personal Trainers Online http://www.w

Re: [web2py] CPU 210%

2012-04-17 Thread Michele Comitini
Apropos of Bruno... my rules are more from a sysadmin point of view, while Bruno has defined a way to boost performance from the application developer POV. Bruno rule is simple but effective: 1. move as much as you can out of the models and put it in the modules. The speed increase can be dramat

[web2py] Re: display a list of the database entries

2012-04-17 Thread Anthony
db(db.artikles).select(orderby=~db.artikles.date, limitby=(0,5)) See http://web2py.com/books/default/chapter/29/6#orderby,-groupby,-limitby,-distinct . Anthony On Tuesday, April 17, 2012 4:47:18 PM UTC-4, BlueShadow wrote: > > Hi, > I got a table for artikles and I like to display the 5 of them

Re: [web2py] CPU 210%

2012-04-17 Thread Bruce Wade
Thanks this is very helpful to know. I am building a system with nginx and uwsgi to get the system running on that. I have been avoiding using uwsgi for anything serious because I have been seeing a lot of threads reporting problems with it. Michele thanks for the feed back I am working on impleme

Re: [web2py] CPU 210%

2012-04-17 Thread Michele Comitini
As always Massimo is also correct on this. Do not try to optimize code before the profiler says where to optimize. Use the profiler any time you want increase performance of the code you wrote, it helps you save much time, since unless you optimize every line of code you will end optimizing things

Re: [web2py] CPU 210%

2012-04-17 Thread Bruno Rocha
Or you can just hire Michele to solve all your scaling problems! :) On Tue, Apr 17, 2012 at 5:40 PM, Michele Comitini < michele.comit...@gmail.com> wrote: > Richard you are right. We should make a web2py slice out of this. I > keep repeating same things over from time to time, I suppose it's th

[web2py] display a list of the database entries

2012-04-17 Thread BlueShadow
Hi, I got a table for artikles and I like to display the 5 of them sorted by date starting witth the most recent. the table has 3 fields article name content and date. It should be pretty easy but I got no clue where to start.

Re: [web2py] CPU 210%

2012-04-17 Thread Michele Comitini
Richard you are right. We should make a web2py slice out of this. I keep repeating same things over from time to time, I suppose it's the age... ;-) Anyway a put a star on the thread so one day I will write. Here are 10 system configuration rules I follow for high scalability with web2py on mul

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread Anthony
> > I just tried another test, I delete the whole app using Web2py appadmin, > and re-create it from scratch. And it worked for > auth.settings.create_user_groups = False > part with all the Auth tables created for the first test, though > verification email is still not sent. However, after I

[web2py] Not a question, but thanks

2012-04-17 Thread Larry Wapnitsky
Just wanted to say thanks to everyone who answered my questions over the past 2-3 months or so in regards to developing my IP management application. FYI - it's working great, and I couldn't have done it without all of you (particularly Massimo for creating this great framework). -Larry

Re: [web2py] CPU 210%

2012-04-17 Thread Richard Vézina
Massimo post : https://groups.google.com/forum/#!topic/web2py/hB3y_6gFIi4 Pretty instructive on speed trouble shooting. Richard On Tue, Apr 17, 2012 at 3:02 PM, Ron McOuat wrote: > I ran across newrelic.com which offers profiling for Python web apps > amongst several other environments. I did

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread Ron McOuat
If you do a drop db followed by a create db you should remove the files under applicatios/app_name/databases Ron

Re: [web2py] CPU 210%

2012-04-17 Thread Ron McOuat
I ran across newrelic.com which offers profiling for Python web apps amongst several other environments. I did a search on the web2py users list and found a few threads about a problem using LIKE % values with PostgreSQL but it appears to have been resolved. It looks like it might help with ide

Re: [web2py] CPU 210%

2012-04-17 Thread Richard Vézina
Michele, I read this thread, not sure if it is not already existing... But it start to look like a recipe for speed tuning that could be translate into a web2py slice or blog post :) Richard On Tue, Apr 17, 2012 at 2:32 PM, Michele Comitini < michele.comit...@gmail.com> wrote: > What I suggest

Re: [web2py] CPU 210%

2012-04-17 Thread Michele Comitini
What I suggest is use nginx + uwsgi or nginx + scgi or nginx + fcgi. You will notice big reduction in resource consuption compared to Apache. Apache can be taken away. By the way you can use any of the above protocols to do balancing over a pool of machines running web2py and in front you can put

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread cyan
Hi Anthony, When I say 'sometimes Web2py fails to create Auth tables and other times it does', I mean running a test procedure like this: 1. if 'mydb' already exists, it is dropped from PostgreSQL server using 'dropdb mydb' 2. a fresh 'mydb' is created using 'createdb mydb' 3. then run the Web

[web2py] Re: New CMS for web2py? - Cms2py

2012-04-17 Thread Gour
On Tue, 17 Apr 2012 08:30:53 -0700 (PDT) Mirek Zvolský wrote: > As all beginners (in web programming, python, web2py) I try create a > CMS. Heh...I'd prefer as beginner (in web programming, python, web2py) to be able to learn using some stable & robust CMS by writing add-ons or plugins, customiz

Re: [web2py] CPU 210%

2012-04-17 Thread Richard Vézina
Notice, that caching query not improve speed that much, at least it didn't help very much. But if you use to build dict with query for iteration caching the whole dict creation variable, that help a lot. The syntax for caching variable is the following : dblabels_en = cache.ram('dblabels_en',

Re: [web2py] CPU 210%

2012-04-17 Thread Bruce Wade
Currently I just had 1 server running apache mod_wsgi using the same configuration as pyramid. However I just got approved for a few grand a month to spend on server resources, so I am looking at load balancers. And I will put nginx in front of apache, and also start using a lot more caching. On T

[web2py] Re: bootstrap vs YAML (for web2py)

2012-04-17 Thread Gour
On Tue, 17 Apr 2012 09:59:13 -0700 (PDT) pbreit wrote: > Bootstrap has a lot of momentum right now both inside and outside > Web2py. Yaml looks OK but Bootstrap looks a little nicer in most > aspects. Thank you...and since web2py will use bootstrap, it's good-enough reason to try it out. Since

[web2py] Re: bootstrap vs YAML (for web2py)

2012-04-17 Thread pbreit
Bootstrap has a lot of momentum right now both inside and outside Web2py. Yaml looks OK but Bootstrap looks a little nicer in most aspects.

[web2py] Re: New CMS for web2py? - Cms2py

2012-04-17 Thread pbreit
Is there an example or demo available? Perhaps a good idea to load it on to Google App Engine if possible.

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread Anthony
> > After these two steps and before starting Web2py, I check on the > PostgreSQL server running on the localhost and make sure that an empty > 'mydb' indeed exists. Then I start Web2py server, and navigate to > http://127.0.0.1:8000/myapp/account/register, where I type in email, > pwds, and h

[web2py] New CMS for web2py? - Cms2py

2012-04-17 Thread Mirek Zvolský
Hi friends, As all beginners (in web programming, python, web2py) I try create a CMS. CMS implements Plugin-wiki (MarkMin, Template Code, Widgets) at articles level - we can have more posts(articles) in standard Web2py blocks (statusbar, left_sidebar, center, right_sidebar, footer), publish more

[web2py] Re: heroku, web2py and gunicorn

2012-04-17 Thread Massimo Di Pierro
Can you try the anyserver in trunk? Looks like they changed some API. On Tuesday, 17 April 2012 05:43:51 UTC-5, Rahul wrote: > > Hi Massimo, > I did the typo in the "anyserver.py" file but now I am getting > this issue. > > -bash-3.2$ *python anyserver.py -s gunicorn* > starting gunicor

[web2py] Re: auth.settings.create_user_groups and auth.settings.registration_requires_verification in Auth

2012-04-17 Thread cyan
Hi Anthony, I've done more tests on my machine, and it appears that the first issue does *not* lie with auth.settings.create_user_groups = False , but rather with the interaction between Web2py and PostgreSQL in general. It seems to me that Web2py behaves inconsistently with respect to auth.d

[web2py] Re: web2py CRUD tutorial

2012-04-17 Thread Anthony
> > I am very new to python and web2py also. I have some experience in > programming. in last 2 weeks i also learnt python basics. I would like to > ask if you have a link or tutorial on WEB2PY CRUD web application from > scratch. I would greatly appreciate your help. Thanks in advance. > > Ha

Re: [web2py] ImportError: cannot import name PickleableStorage after upgrading to 1.99.7

2012-04-17 Thread Massimo Di Pierro
fixed in trunk On Monday, 16 April 2012 12:22:12 UTC-5, Richard wrote: > > Could it be cPickleableStorage now? > > 2012/4/12 David Zejda > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> After upgrade to 1.99.7. I started receiving this error: >> >> Traceback (most recent call last): >>

[web2py] Re: A helper returning an unexpected result

2012-04-17 Thread Anthony
> > Just wondering why a 'A' helper with a call back as follows: > > {{=A('click me', callback=URL('index'))}} > > would return the following: > > http://127.0.0.1:8000/tree/stree/tree#null>" > onclick="ajax('/tree/stree/index',[],'');return > false;">click me > What would you expect it to retu

Re: [web2py] Re: routes.py

2012-04-17 Thread Jonathan Lundell
On Apr 17, 2012, at 7:33 AM, Wikus van de Merwe wrote: > Oh, so the default for functions is ALL_FUNCTIONS? In the comments it says: > "list of valid functions in the default controller (default None)". From that > I concluded (without testing I admit) that by default no function name will > be

[web2py] Re: IS_TIME(format='%H:%M') unexpected keyword argument format

2012-04-17 Thread villas
> > IS_TIME() does not format but understands the following formats hh:mm:ss [am/pm] hh:mm [am/pm] hh [am/pm] Otherwise I think you'll have to make your own validator which I don't think would be too difficult.

Re: [web2py] Re: routes.py

2012-04-17 Thread Wikus van de Merwe
Oh, so the default for functions is ALL_FUNCTIONS? In the comments it says: "list of valid functions in the default controller (default None)". From that I concluded (without testing I admit) that by default no function name will be mapped unless explicitly specified. It make sense to map all f

[web2py] janrain logs in but stuck on login screen

2012-04-17 Thread simon
Is the janrain interface not currently working or have I missed something? I can login using janrain but I cannot navigate to any other pages. It is just stuck on a screen that says "welcome back".

[web2py] Re: jstree, controller call

2012-04-17 Thread villas
>From the book: response.render(view, vars): a method used to call the view explicitly inside the controller. view is an optional parameter which is the name of the view file, vars is a dictionary of named values passed to the view. HTH David

Re: [web2py] Re: routes.py

2012-04-17 Thread Jonathan Lundell
On Apr 17, 2012, at 1:31 AM, IVINH wrote: > Web2py server running at port 8000, how to redirect mydomain.com to this > server without using the link mydomain.com:8000? A web browser using that URL will make a request on port 80. You either need to configure web2py to run on port 80 or use a fron

Re: [web2py] how to setup web2py

2012-04-17 Thread Nicolas Palumbo
Rajesh, From what I heard, you need to setup the whole web2py as a python project. There are a few more steps to get better code completion. Please do look in the archive of this mailing list On Tue, Apr 17, 2012 at 9:01 AM, Rajesh Rajendran wrote: > Hi, > > I am using ubuntu and eclipse ide. i h

[web2py] Re: jstree, controller call

2012-04-17 Thread Simon Ashley
Ok, I'll rephrase this: - what's the best/ simpliest way of calling a controller from a view? - using javascript? or escaping python code? On Sunday, 15 April 2012 16:30:16 UTC+10, Simon Ashley wrote: > > Having difficulties coming up with an appropriate call back from a jstree > trigg

Re: [web2py] CPU 210%

2012-04-17 Thread Michele Comitini
One more thing make css and js packed + server side gzipped (nginx and cherokee can do also gzip caching) mic Il 17 aprile 2012 14:12, Michele Comitini ha scritto: > If you are on postgreSQL use a process per request setup, you will > have a great benefit.  Use cherokee or nginx (with keepalive

Re: [web2py] CPU 210%

2012-04-17 Thread Michele Comitini
If you are on postgreSQL use a process per request setup, you will have a great benefit. Use cherokee or nginx (with keepalive working) you will scale smoothly. Check that you do as much as possible of a page in a single http request (i.e. limit ajax load). Use only one cacheable css and limit t

Re: [web2py] CPU 210%

2012-04-17 Thread Michele Comitini
What is your architecture? What do you use as frontend http server? What protocol: SCGI, UWSGI, FCGI...? Are you in a thread per request or process per request setup? mic Il 17 aprile 2012 08:36, Bruce Wade ha scritto: > Yes you are correct plus there was 10,000+ requests a second just hitting

[web2py] how to setup web2py

2012-04-17 Thread Rajesh Rajendran
Hi, I am using ubuntu and eclipse ide. i have installed pydev for eclipse. i want to create web2py applicaiton. how do i setup seb2py development environment in eclipse.. please tellme the steps..

Re: [web2py] web2py CRUD tutorial

2012-04-17 Thread Johann Spies
Did you read http://www.web2py.com/books/default/chapter/29/7?search=crud#CRUD ? Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

[web2py] web2py CRUD tutorial

2012-04-17 Thread bayram orazdurdiyev
Dear web2py-users I am very new to python and web2py also. I have some experience in programming. in last 2 weeks i also learnt python basics. I would like to ask if you have a link or tutorial on WEB2PY CRUD web application from scratch. I would greatly appreciate your help. Thanks in advance

[web2py] SQLFORM.grid, links and buttons placement specification (before other columns, after, or both)

2012-04-17 Thread nikos
Hello there follow web2py users, First of all, Massimo, thanks for the great work you have done to get web2py to this high level of functionality. I recently started using it for a project and was faced with a challenge: in SQLFORM.grid, when a table has many fields, the users have to scroll to

[web2py] Re: heroku, web2py and gunicorn

2012-04-17 Thread Rahul
Hi Massimo, I did the typo in the "anyserver.py" file but now I am getting this issue. -bash-3.2$ *python anyserver.py -s gunicorn* starting gunicorn on 127.0.0.1:8000... Traceback (most recent call last): File "anyserver.py", line 299, in main() File "anyserver.py", line 295,

[web2py] bootstrap vs YAML (for web2py)

2012-04-17 Thread Gour
I see that web2py-2.0 is supposed to embrace bootstrap framework, while in the past we've been considering to use YAML (http://www.yaml.de/). Is anyone familiar with both to compare 'em or, considering that web2py will use bootstrap, it is recommended to learn & use it we plan to adopt web2py? Is

[web2py] Re: Possible to put controller code and view in same file?

2012-04-17 Thread stefaan
It doesn't seem like a very dumb idea, it would go a bit in the direction of literate programming. (see e.g. http://monday.sourceforge.net/litprog.html ) Currently switching between controller and view indeed takes a mental and physical context switch. Sometimes views are reused across controll

Re: [web2py] Re: routes.py

2012-04-17 Thread IVINH
HI, Web2py server running at port 8000, how to redirect mydomain.com to this server without using the link mydomain.com:8000? Vào 01:08:45 UTC+7 Thứ ba, ngày 17 tháng tư năm 2012, Jonathan Lundell đã viết: > > On Apr 16, 2012, at 10:57 AM, Wikus van de Merwe wrote: > > For this type of routi

[web2py] Re: priority of web2py CMS

2012-04-17 Thread Gour
On Mon, 16 Apr 2012 04:50:39 -0700 (PDT) Ross Peoples wrote: > No, I've been tied up doing other (non-web2py) projects lately. I > hope to get back to being more active here in a couple of weeks. OK. Thank you for info. Sincerely, Gour -- When your intelligence has passed out of the dense fo