Re: [web2py] Re: Scalability of web2py?

2010-12-03 Thread Branko Vukelic
On Fri, Dec 3, 2010 at 8:16 AM, pbreit pbreitenb...@gmail.com wrote: ...and Massimo is a bit like DHH... Fortunately you are almost too wrong. ;) -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio:

Re: [web2py] Re: I Just Need a Programmer

2010-12-03 Thread Branko Vukelic
On Fri, Dec 3, 2010 at 7:31 AM, Anthony abasta...@gmail.com wrote: I think web2py is really making it more and more feasible for the idea person to become the programmer, as suggested in the article. :) Lol, no. I don't think so. I've seen too many 'idea' people in my life to believe that. --

[web2py] Error while going through web2py book

2010-12-03 Thread Anaconda
Hi, i am currently working through the web2py book and i am getting a an error thrown up even though i am following the books instructions, this is the code below: -- coding: utf-8 -- # This is a samples controller - index is the default action of any application - user is required for

[web2py] when to use ajax

2010-12-03 Thread apple
Some years since I did any programming. Have had some time on my hands and taught myself python, web2py, jquery, javascript. Fine with all that. However I have some questions about the general design pattern/ architecture of a web2py application and specifically on use of AJAX. I have created an

Re: [web2py] I Just Need a Programmer

2010-12-03 Thread Michele Comitini
Programming does not fill logical gaps in ideas. But going from idea to execution for people that do not have experience in programming seems easy... 2010/12/3 mdipierro mdipie...@cs.depaul.edu: http://www.cs.uni.edu/~wallingf/blog/archives/monthly/2010-12.html#e2010-12-01T15_45_40.htm

Re: [web2py] when to use ajax

2010-12-03 Thread Branko Vukelic
On Fri, Dec 3, 2010 at 2:24 PM, apple simo...@gmail.com wrote: When should you use AJAX rather than a standard web request? At what level of usage would I find the page refresh method becomes a performance issue? I think it's best you take a look at examples on the Web and use whatever pattern

Re: [web2py] I Just Need a Programmer

2010-12-03 Thread Branko Vukelic
On Fri, Dec 3, 2010 at 2:36 PM, Michele Comitini michele.comit...@gmail.com wrote: Programming does not fill logical gaps in ideas.  But going from idea to execution for people that do not have experience in programming seems easy... I'd say 'execution' in general, not just programming. And

[web2py] Re: Rocket 1.2

2010-12-03 Thread Timbo
Thanks Jonathan! Yes, that's all correct. I forgot about uploading new documentation but there are no significant changes in the documentation. The thread count advice for Jython still holds. -tim On Dec 3, 12:17 am, Jonathan Lundell jlund...@pobox.com wrote: Rocket 1.2.0 (web2py's embedded

Re: [web2py] Re: Scalability of web2py?

2010-12-03 Thread Michele Comitini
The very great thing about web2py is that even if it is full of features, Massimo was able and willing to keep it small. Small in the sense that it has little code, because it leverages on Python language features and patterns. What does that mean? It means that anyone can reach and understand

[web2py] document.write(WTF)

2010-12-03 Thread Branko Vukelic
http://dhtmlkitchen.com/learn/js/perf/document_write.jsp My only concern was performance. The author claims (in this old article... 2007?) that document.write is 50% slower. However, from his (rather unscientific?) benchmark, I actually get results that are in favor of document.write in Firefox.

[web2py] missing post

2010-12-03 Thread apple
What happened to my post from an hour ago? It had a reply with some links but when I went back to look the post and reply had disappeared.

[web2py] Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread António Ramos
2+3=10 7+2=63 6+5=66 8+4=96 So: 9+7=??? What is the answer? They say the IQ of people that can find it is above 120 Dont write here the answer.. Just the time, maybe

[web2py] Re: Error while going through web2py book

2010-12-03 Thread mdipierro
Missing spaces... def index(): if not session.counter: session.counter = 1 else: session.counter += 1 return dict(message=Hello from MyApp,counter=session.counter) def first(): if request.vars.visitor_name: session.visitor_name = request.vars.visitor_name

Re: [web2py] Re: Server slow

2010-12-03 Thread Kenneth Lundström
Were is this logged, I could not find anything in any logs? Kenneth try import time, logging def testing(): t0=time.time() orders = db(db.orders.id 0).select() logging.info('time to fetch %s' % (time.time()-t0)) return orders so you can isolate the problem and see if

Re: [web2py] Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Branko Vukelic
Dunno, around 5 minutes... maybe a little bit less 2010/12/3 António Ramos ramstei...@gmail.com: 2+3=10 7+2=63 6+5=66 8+4=96 So: 9+7=??? What is the answer? They say the IQ of people that can find it is above 120 Dont write here the answer.. Just the time, maybe -- Branko

Re: [web2py] Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
On 03-12-2010 15:32, António Ramos wrote: 2+3=10 7+2=63 6+5=66 8+4=96 So: 9+7=??? What is the answer? They say the IQ of people that can find it is above 120 Dont write here the answer.. Just the time, maybe 10s

[web2py] Re: I Just Need a Programmer

2010-12-03 Thread Anthony
I think web2py is really making it more and more feasible for the idea person to become the programmer, as suggested in the article. :) Lol, no. I don't think so. I've seen too many 'idea' people in my life to believe that. Sure, not _all_ idea people can or will want to become

[web2py] testing

2010-12-03 Thread apple
just testing

Re: [web2py] testing

2010-12-03 Thread Branko Vukelic
SyntaxError: line 1: 'just testing' On Fri, Dec 3, 2010 at 4:00 PM, apple simo...@gmail.com wrote: just testing -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio: http://www.flickr.com/photos/foxbunny/

Re: [web2py] missing post

2010-12-03 Thread Branko Vukelic
On Fri, Dec 3, 2010 at 3:32 PM, apple simo...@gmail.com wrote: What happened to my post from an hour ago? It had a reply with some links but when I went back to look the post and reply had disappeared. Here's the reply: On Fri, Dec 3, 2010 at 2:24 PM, apple simo...@gmail.com wrote: When

Re: [web2py] Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Branko Vukelic
Damn, I suck. :) On Fri, Dec 3, 2010 at 3:46 PM, Stef Mientki stef.mien...@gmail.com wrote: On 03-12-2010 15:32, António Ramos wrote: 2+3=10 7+2=63 6+5=66 8+4=96 So: 9+7=??? What is the answer? They say the IQ of people that can find it is above 120 Dont write here the answer..

[web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread mdipierro
I am too dumb to solve it but this program can: x=[(2,3,10),(7,2,63),(6,5,66),(8,4,96)] alphabet = 'ab+-*' for i in range(10): e = '' while i: e = e+alphabet[i%5] i = i / 5 try: for (a,b,c) in x: if eval(e)!=c: raise Exception a,b = 9,7

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Richard Vézina
Google! On Fri, Dec 3, 2010 at 10:22 AM, mdipierro mdipie...@cs.depaul.edu wrote: I am too dumb to solve it but this program can: x=[(2,3,10),(7,2,63),(6,5,66),(8,4,96)] alphabet = 'ab+-*' for i in range(10): e = '' while i: e = e+alphabet[i%5] i = i / 5 try:

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Branko Vukelic
Is that a new IQ test? Cause I'm totally failing it. :) On Fri, Dec 3, 2010 at 4:22 PM, mdipierro mdipie...@cs.depaul.edu wrote: I am too dumb to solve it but this program can: x=[(2,3,10),(7,2,63),(6,5,66),(8,4,96)] alphabet = 'ab+-*' for i in range(10):    e = ''    while i:        

[web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Anthony
10s Are you saying it took you .002 + 83.3313 minutes?

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
Although the result seems to be ok, I don't understand a bit of this program, so my IQ must be well under 120 ;-) Can you explain the program, because I can not see the program and my solution. cheers, Stef On 03-12-2010 16:26, Richard Vézina wrote: Google! On Fri, Dec 3, 2010 at 10:22 AM,

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
On 03-12-2010 16:39, Anthony wrote: 10s Are you saying it took you .002 + 83.3313 minutes? yep, very nice !!

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
very inserting!! (insert print e and the explanation is there ) On 03-12-2010 16:26, Richard Vézina wrote: Google! On Fri, Dec 3, 2010 at 10:22 AM, mdipierro mdipie...@cs.depaul.edu mailto:mdipie...@cs.depaul.edu wrote: I am too dumb to solve it but this program can:

Re: [web2py] testing

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 7:09 AM, Branko Vukelic wrote: SyntaxError: line 1: 'just testing' On Fri, Dec 3, 2010 at 4:00 PM, apple simo...@gmail.com wrote: just testing Google Groups has been having some problems today. fwiw.

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 7:22 AM, mdipierro wrote: I am too dumb to solve it but this program can: Cute, though the program somewhat presupposes the pattern of the answer. The answer was obvious at a glance to those of us who had multiplication tables drilled into us all those years ago, I think.

[web2py] Re: missing post

2010-12-03 Thread pbreit
I don't think performance should be the main thing necessarily. I think the use of Ajax should really depend on usability (of which performance is a component).

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
On 03-12-2010 17:31, Jonathan Lundell wrote: On Dec 3, 2010, at 7:22 AM, mdipierro wrote: I am too dumb to solve it but this program can: Cute, though the program somewhat presupposes the pattern of the answer. The answer was obvious at a glance to those of us who had multiplication tables

[web2py] Re: when to use ajax

2010-12-03 Thread pbreit
If you *really* want it to be like a desktop app you should have a look at Ext JS from Sencha. It's quite a bit more involved but can support some very rich interfaces.

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Michele Comitini
Copied the program with wrong indentation it went infinite looping eating all virtual memory. So I was faster yeah! :D 2010/12/3 Stef Mientki stef.mien...@gmail.com: On 03-12-2010 17:31, Jonathan Lundell wrote: On Dec 3, 2010, at 7:22 AM, mdipierro wrote: I am too dumb to solve it but this

Re: [web2py] Re: when to use ajax

2010-12-03 Thread Michele Comitini
http://www.dynarchlib.com/ very well designed 2010/12/3 pbreit pbreitenb...@gmail.com: If you *really* want it to be like a desktop app you should have a look at Ext JS from Sencha. It's quite a bit more involved but can support some very rich interfaces.

[web2py] new in trunk signed URLS

2010-12-03 Thread mdipierro
New feature in trunk: URL('index',args=[],vars={},hash_key='xxx') the URL will have a _signature attached. The associated controller can check for the signature with def index(): if not URL.verify(hmac_key='xxx'): .. ... Please test it. In particular we need to test the workflow

[web2py] Re: Scalability of web2py?

2010-12-03 Thread blackthorne
hi, I haven't commented this discussion but I've been reading it. I have to tell you that you are bouncing way out of the point ironically complaining that everyone else is talking about things other than the elephant in the room. It really doesn't matter Django (unless you bring something

Re: [web2py] new in trunk signed URLS

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 9:01 AM, mdipierro wrote: New feature in trunk: URL('index',args=[],vars={},hash_key='xxx') the URL will have a _signature attached. The associated controller can check for the signature with def index(): if not URL.verify(hmac_key='xxx'): .. ...

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Bruno Rocha
I didn't need to run the program, just looked how it works then I solved in seconds, even if my IQ is under 120, now I know I can understand the Massimo's code very well! :P 2010/12/3 Michele Comitini michele.comit...@gmail.com Copied the program with wrong indentation it went infinite looping

[web2py] Re: Rocket 1.2

2010-12-03 Thread Fran
On Dec 3, 6:17 am, Jonathan Lundell jlund...@pobox.com wrote: Rocket 1.2.0 (web2py's embedded web server) is now in the trunk. It have various improvements, which perhaps Tim will describe. There is one user-visible interface change that might affect some of you. In the previous version,

Re: [web2py] I Just Need a Programmer

2010-12-03 Thread Jason Brower
Personally, I see the other way. So many programmers, so little creativity. :D On Thu, 2010-12-02 at 19:14 -0800, mdipierro wrote: http://www.cs.uni.edu/~wallingf/blog/archives/monthly/2010-12.html#e2010-12-01T15_45_40.htm attachment: face-smile-big.png

Re: [web2py] Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Jason Brower
EASY... 42 is always the answer. :D On Fri, 2010-12-03 at 14:32 +, António Ramos wrote: 2+3=10 7+2=63 6+5=66 8+4=96 So: 9+7=??? What is the answer? They say the IQ of people that can find it is above 120 Dont write here the answer.. Just the time, maybe

[web2py] Re: when to use ajax

2010-12-03 Thread ron_m
Took a quick look at dynarchlib, looks great and BSD licensed. I would be careful on the licensing of Ext JS, wasn't this the one that caused some concerns a couple of years ago when they switched as they became popular with the GWT users? On Dec 3, 8:58 am, Michele Comitini

Re: [web2py] Re: Rocket 1.2

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 9:32 AM, Fran wrote: On Dec 3, 6:17 am, Jonathan Lundell jlund...@pobox.com wrote: Rocket 1.2.0 (web2py's embedded web server) is now in the trunk. It have various improvements, which perhaps Tim will describe. There is one user-visible interface change that might affect

Re: [web2py] Re: Rocket 1.2

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 9:32 AM, Fran wrote: On Dec 3, 6:17 am, Jonathan Lundell jlund...@pobox.com wrote: Rocket 1.2.0 (web2py's embedded web server) is now in the trunk. It have various improvements, which perhaps Tim will describe. There is one user-visible interface change that might affect

[web2py] problem with web2py and plugin_datatables

2010-12-03 Thread mmartinez
Good afternoon: I'm using the plugin_datatable and I have an error by doing the following: the controller left=db.clientes.on(db.accountcode.id_clientes==db.clientes.id) rws=db().select(db.accountcode.ani, db.clientes.rsocial, left=left, orderby=db.clientes.rsocial)

[web2py] Re: Error running Web2py admin app non-SSL apps together with mod_wsgi

2010-12-03 Thread azarkowsky
Thanks for the quick response! My web2py installation resides at C: \aproj\web2py, therefore according to your examples and the Apache documentation on the DocumentRoot directive, I tried setting DocumentRoot to C:/aproj/web2py/applications for both the SSL Non- SSL VirutalHosts. I made sure

[web2py] Re: Error running Web2py admin app non-SSL apps together with mod_wsgi

2010-12-03 Thread mdipierro
It's almost like web2py is not creating a new session when the protocol changes and just reusing the prior session. Perhaps that is intentional? Yes. if session.secure() that an https session will not over http. But there is no mechanism to prevent an http session to go over https. You can do

Re: [web2py] Re: missing post

2010-12-03 Thread Branko Vukelic
On Fri, Dec 3, 2010 at 5:39 PM, pbreit pbreitenb...@gmail.com wrote: I don't think performance should be the main thing necessarily. I think the use of Ajax should really depend on usability (of which performance is a component). Well, fwiw, our company moved from MS Exchange to Google Apps

[web2py] Re: Rocket 1.2

2010-12-03 Thread Fran
On Dec 3, 6:20 pm, Jonathan Lundell jlund...@pobox.com wrote: I sent Massimo a patch that will retain backward compatibility. Thanks but not quite yet: Traceback (most recent call last): File C:\Bin\web2py\gluon\winservice.py, line 46, in SvcDoRun self.start() File

[web2py] Any success getting web2py to run on Cherokee?

2010-12-03 Thread pbreit
I've been trying to get web2py running on Cherokee on a clean install of Ubuntu 10.04 but no luck so far. I've seen different sets of instructions but they all seem to be for older versions. I am working with: Ubuntu 10.04, web2py 1.89.5, Cherokee 1.0.12 and uswgi 0.9.6.5. It seems like I'm

Re: [web2py] Re: Rocket 1.2

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 11:20 AM, Fran wrote: On Dec 3, 6:20 pm, Jonathan Lundell jlund...@pobox.com wrote: I sent Massimo a patch that will retain backward compatibility. Thanks but not quite yet: Traceback (most recent call last): File C:\Bin\web2py\gluon\winservice.py, line 46, in SvcDoRun

Re: [web2py] Re: Scalability of web2py?

2010-12-03 Thread Branko Vukelic
I don't know why but Java hasn't been mentioned even once. Java has seen lots of deployment, and I imagine some huge stuff might have been built on it, and it's open-source-ish. :) PHP? It's well capable of handling it's business, you know. Facebook's front-end runs on PHP. And it's open-source.

Re: [web2py] Re: Rocket 1.2

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 11:27 AM, Jonathan Lundell wrote: On Dec 3, 2010, at 11:20 AM, Fran wrote: On Dec 3, 6:20 pm, Jonathan Lundell jlund...@pobox.com wrote: I sent Massimo a patch that will retain backward compatibility. Thanks but not quite yet: Traceback (most recent call last): File

Re: [web2py] Re: Rocket 1.2

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 11:32 AM, Jonathan Lundell wrote: On Dec 3, 2010, at 11:27 AM, Jonathan Lundell wrote: On Dec 3, 2010, at 11:20 AM, Fran wrote: On Dec 3, 6:20 pm, Jonathan Lundell jlund...@pobox.com wrote: I sent Massimo a patch that will retain backward compatibility. Thanks but

[web2py] Re: Scalability of web2py?

2010-12-03 Thread mdipierro
What do you people make of this: http://muharem.wordpress.com/2007/07/31/erlang-vs-stackless-python-a-first-benchmark/ (web2py runs on stackless except that out server does not take advantage of its features). Massimo On Dec 3, 1:32 pm, Branko Vukelic bg.bra...@gmail.com wrote: I don't know

Re: [web2py] Re: Scalability of web2py?

2010-12-03 Thread Branko Vukelic
I found this: http://code.google.com/p/stacklessexamples/wiki/StacklessWSGI On Fri, Dec 3, 2010 at 8:40 PM, mdipierro mdipie...@cs.depaul.edu wrote: What do you people make of this: http://muharem.wordpress.com/2007/07/31/erlang-vs-stackless-python-a-first-benchmark/ (web2py runs on

[web2py] Safety in my registration form

2010-12-03 Thread appydev
Greetings. I disable the registration form that generated auth: auth.settings.actions_disabled = ['register'] I made a new registration form that stores information in two tables (auth_user and teacher), with the help of this recipe: http://www.web2pyslices.com/main/slices/take_slice/102

Re: [web2py] I Just Need a Programmer

2010-12-03 Thread Branko Vukelic
I think it's the same with designers, actually, and they are _expected_ to be creative. But once you're in the industry, so little of it is actually demanded. On Fri, Dec 3, 2010 at 6:54 PM, Jason Brower encomp...@gmail.com wrote: Personally, I see the other way.  So many programmers, so little

Re: [web2py] problem with web2py and plugin_datatables

2010-12-03 Thread Ivan Matveev
Example of usage is like this: {{=plugin_datatable(db(db.shout.id0).select(),_class='datatable')}} I think plugin_datatable wants Rows object as a parameter, not a table created with SQLTABLE

[web2py] Re: I Just Need a Programmer

2010-12-03 Thread mdipierro
I do not think there is a lack of ideas not a lack of execution capabilities. The problem is that the more interesting projects require a critical mass of users to start. Think about this... you walk by a restaurant and it is empty. It does not matter how good the restaurant look and how

Re: [web2py] Re: when to use ajax

2010-12-03 Thread Branko Vukelic
On Fri, Dec 3, 2010 at 7:04 PM, ron_m ron.mco...@gmail.com wrote: I would be careful on the licensing of Ext JS, wasn't this the one that caused some concerns a couple of years ago when they switched as they became popular with the GWT users? They require you to release your _application_ code

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Branko Vukelic
On Fri, Dec 3, 2010 at 5:31 PM, Jonathan Lundell jlund...@pobox.com wrote: The answer was obvious at a glance to those of us who had multiplication tables drilled into us all those years ago, I think. I hated those tables. :) Probably explains why it took me so long. But I did in my head more

[web2py] Re: Rocket 1.2

2010-12-03 Thread Fran
On Dec 3, 7:39 pm, Jonathan Lundell jlund...@pobox.com wrote: A patch is on its way to Massimo. Works a treat :) No need to touch options.py - phew :) Many thanks, Fran.

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 1:19 PM, Branko Vukelic wrote: On Fri, Dec 3, 2010 at 5:31 PM, Jonathan Lundell jlund...@pobox.com wrote: The answer was obvious at a glance to those of us who had multiplication tables drilled into us all those years ago, I think. I hated those tables. :) Probably

Re: [web2py] Re: Rocket 1.2

2010-12-03 Thread Jonathan Lundell
On Dec 3, 2010, at 1:24 PM, Fran wrote: On Dec 3, 7:39 pm, Jonathan Lundell jlund...@pobox.com wrote: A patch is on its way to Massimo. Works a treat :) No need to touch options.py - phew :) Many thanks, Glad to help. Sorry for the initial confusion, but I suppose that's why the trunk

[web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread ron_m
When I saw these I was thinking what kind of weird number base is this in to get simple addition to yield those results. Oh well back to the planet I live on. On Dec 3, 1:25 pm, Jonathan Lundell jlund...@pobox.com wrote: On Dec 3, 2010, at 1:19 PM, Branko Vukelic wrote: On Fri, Dec 3, 2010

[web2py] Re: Rocket 1.2

2010-12-03 Thread mr.freeze
I'm getting this in the console on Windows 7: ERROR:Rocket.Errors.Thread-15:Traceback (most recent call last): File C:\web2py\gluon\rocket.py, line 989, in run self.run_app(conn) File C:\web2py\gluon\rocket.py, line 1429, in run_app self.write(data, sections) File

[web2py] Strange behavior in web2py 1.89

2010-12-03 Thread leo (kirotawa)
Hi there, When I installed the plugin, layouts, and tried to get it, my web2py stay in infinite loop,and overloaded my processor. I talked to another user and he had the same problem but with another plugin, so the problem is in web2py 1.89. Is this not a serious bug? []'s

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Branko Vukelic
That's an example of thinking outside the box. :D On Fri, Dec 3, 2010 at 10:34 PM, ron_m ron.mco...@gmail.com wrote: When I saw these I was thinking what kind of weird number base is this in to get simple addition to yield those results. Oh well back to the planet I live on. On Dec 3, 1:25 

[web2py] Re: Strange behavior in web2py 1.89

2010-12-03 Thread mdipierro
Which plugins? Which python version? Which os? On Dec 3, 4:06 pm, leo (kirotawa) kirot...@gmail.com wrote: Hi there, When I installed the plugin, layouts, and tried to get it, my web2py stay in infinite loop,and overloaded my processor. I talked to another user and he had the same problem

[web2py] Re: Rocket 1.2

2010-12-03 Thread mr.freeze
On second look, this doesn't seem related to the new version. I rolled back with the same result. I will try to debug and let you know. On Dec 3, 4:02 pm, mr.freeze nat...@freezable.com wrote: I'm getting this in the console on Windows 7: ERROR:Rocket.Errors.Thread-15:Traceback (most recent

[web2py] Re: Strange behavior in web2py 1.89

2010-12-03 Thread leo (kirotawa)
plugin: web2py.plugin.layouts python 2.6.2 SO: ubuntu 9.04 On Dec 3, 7:24 pm, mdipierro mdipie...@cs.depaul.edu wrote: Which plugins? Which python version? Which os? On Dec 3, 4:06 pm, leo (kirotawa) kirot...@gmail.com wrote: Hi there, When I installed the plugin, layouts, and

[web2py] Re: Strange behavior in web2py 1.89

2010-12-03 Thread leo (kirotawa)
And my friend in web2py list BR, with this plugin: jqgrid. On Dec 3, 7:35 pm, leo (kirotawa) kirot...@gmail.com wrote: plugin: web2py.plugin.layouts python 2.6.2 SO: ubuntu 9.04 On Dec 3, 7:24 pm, mdipierro mdipie...@cs.depaul.edu wrote: Which plugins? Which python version? Which

[web2py] Re: Strange behavior in web2py 1.89

2010-12-03 Thread mdipierro
I will take a look. Anyway, try not to use plugin.layouts, it is deprecated. Use individual layout plugins instead web2py.com/layouts Massimo On Dec 3, 4:35 pm, leo (kirotawa) kirot...@gmail.com wrote: plugin: web2py.plugin.layouts python 2.6.2 SO: ubuntu 9.04 On Dec 3, 7:24 pm, mdipierro

[web2py] Re: Strange behavior in web2py 1.89

2010-12-03 Thread VP
I have observed a strange behavior of web2py (recent versions) that I have no clue what it is. The behavior is that sometimes when I submit a form, nothing happens. No errors. Nothing. The fields are cleared. So I would have to fill in the fields one more time. Another user also experienced

[web2py] List of fields, want to use in .select(myList)

2010-12-03 Thread Lorin Rivers
I have a list of Field variables whichAttributes = [t.f1, t.f2, t.f3] and I want to use them in my .select, like so: records = dbset.select(whichAttributes,orderby=t.f4|t.f5) How do I unroll that list into the select? -- Lorin Rivers Mosasaur: Killer Technical Marketing

[web2py] Re: List of fields, want to use in .select(myList)

2010-12-03 Thread mr.freeze
records = dbset.select(*whichAttributes,orderby=t.f4|t.f5) * unpacks a list ** unpacks a dict On Dec 3, 5:16 pm, Lorin Rivers lriv...@mosasaur.com wrote: I have a list of Field variables whichAttributes = [t.f1, t.f2, t.f3]  and I want to use them in my .select, like so:     records =

[web2py] IS_EMPTY_OR with list instead of one

2010-12-03 Thread Carlos
Hi, Shouldn't IS_EMPTY_OR accept a list instead of only one alternative validator as arg 0?. For example in the case where an email field can be either empty or unique, in which case we would need something like the following: IS_EMPTY_OR([ IS_EMAIL(), IS_NOT_IN_DB(db, db.table.email) ])

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Albert Abril
about 3 or 4 minutes with, with a paper and a pencil On Fri, Dec 3, 2010 at 11:10 PM, Branko Vukelic bg.bra...@gmail.com wrote: That's an example of thinking outside the box. :D On Fri, Dec 3, 2010 at 10:34 PM, ron_m ron.mco...@gmail.com wrote: When I saw these I was thinking what kind of

Re: [web2py] Re: List of fields, want to use in .select(myList)

2010-12-03 Thread Lorin Rivers
SRSLY?!?! facepalm. On Dec 3, 2010, at 17:29 , mr.freeze wrote: records = dbset.select(*whichAttributes,orderby=t.f4|t.f5) * unpacks a list ** unpacks a dict On Dec 3, 5:16 pm, Lorin Rivers lriv...@mosasaur.com wrote: I have a list of Field variables whichAttributes = [t.f1, t.f2, t.f3]

[web2py] Re: gae, lists and scaling

2010-12-03 Thread Wikus van de Merwe
The alternative is to keep for each user a list of friends as a String (or Text) and do the contains check in your controller. This will make all your datastore calls quick at the expense of extra CPU usage. It also requires extra effort on update but the read is fast (and more frequent than

[web2py] Newbie question:add new record as a copy of an existing row in SQLFORM

2010-12-03 Thread tomt
Hi, I've started to write a simple application to learn web2py. I am using SQLFORM to insert, modify and delete records. So far everything is working as planned. I would like to give the user the ability add a new record as a copy of an existing one. The idea is that the user would view an

[web2py] Re: Supporting user translations on GAE

2010-12-03 Thread howesc
because you cannot write to the file system, your updated files will need to be stored in the database. since these could get large you might consider using blobstore to store the files. then yes, you'll have to override T() with something that reads blobstore, or your database. i would

[web2py] Re: Anyone willing to help out with Paypal

2010-12-03 Thread howesc
Michael, while i have not tested it, i would expect all of it to work except for the crypt() methods. You can post un-encrypted forms to paypal (provided you configure paypal to accept them). The IPN should be able to be made to work - it might take some tweaks to use the google url_fetch()

[web2py] minimal setup on Debian for using Mail()

2010-12-03 Thread Miguel Lopes
I'm having problems trying to make gluon.tools.Mail work on a vps, and wonder if anyone knows what would be a minimal setup for sending mail. I just need to send the an occasional mail. The server as sendmail working, which I've confirmed in the command line. However, I'm unable to make it work

Re: [web2py] Re: Bug: if theres is two forms normal of request.vars. become LISTS!

2010-12-03 Thread Phyo Arkar
I do not use form.accepts as it goes to different controller/function.. here is code for /{{=request.application}}/extraction/index : def index(): response.files.append( URL( r = request, c = 'static/css/smoothness', f = 'jquery-ui.css' ) ) response.files.append( URL( r = request,

[web2py] Re: minimal setup on Debian for using Mail()

2010-12-03 Thread mdipierro
did you apt-get install portfix? On Dec 3, 6:36 pm, Miguel Lopes mig.e.lo...@gmail.com wrote: I'm having problems trying to make gluon.tools.Mail work on a vps, and wonder if anyone knows what would be a minimal setup for sending mail. I just need to send the an occasional mail. The server as

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-03 Thread Miguel Lopes
On Sat, Dec 4, 2010 at 1:12 AM, mdipierro mdipie...@cs.depaul.edu wrote: did you apt-get install portfix? Do you mean postfix? No I didn't. By the way, tp be precise in the config I'm using: mail.settings.server = 'myIPaddress:25' # your SMTPserver since sendmail

[web2py] web2py automatic instalation

2010-12-03 Thread Bruno Rocha
Simple and usefull script, I tested and it works. I know it has a simple purpose, but this is very useful as it downloads and unpack web2py for me. I am always testing new versions and nightly builds and this script will save some clicks. http://snipt.net/italomaia/web2py-admin/ -- Bruno Rocha

[web2py] Re: onvalidation problem

2010-12-03 Thread DenesL
It works just fine for me in 1.89.5 . On Dec 2, 2:25 am, VP vtp2...@gmail.com wrote: latest version.  THere are no form errors.

[web2py] Re: Bug: if theres is two forms normal of request.vars. become LISTS!

2010-12-03 Thread DenesL
The closing form tags are wrong (should be /form), so the browser only sees one form with duplicated fields, which when processed in web2py turn into lists. On Dec 1, 11:23 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote:    I use html forms, that code was since 1.7x and today i get complains

[web2py] Re: Newbie question:add new record as a copy of an existing row in SQLFORM

2010-12-03 Thread DenesL
Hi Tom, you can use dbio=False in the accepts and do the insert manually as explained in http://web2py.com/book/default/chapter/07#SQLFORM-without-database-IO On Dec 3, 7:12 pm, tomt tom_tren...@yahoo.com wrote: Hi, I've started to write a simple application to learn web2py. I am using

Re: [web2py] Re: Bug: if theres is two forms normal of request.vars. become LISTS!

2010-12-03 Thread Phyo Arkar
Thats very stupid of me.. But i wonder why it was working before.. (coz i have not updated that page for long). On 12/4/10, DenesL denes1...@yahoo.ca wrote: The closing form tags are wrong (should be /form), so the browser only sees one form with duplicated fields, which when processed in

Re: [web2py] Re: Bug: if theres is two forms normal of request.vars. become LISTS!

2010-12-03 Thread Phyo Arkar
Thats very stupid of me.. But i wonder why it was working before.. (coz i have not updated that page for long). Thanks a lot for spotting this Den!! On 12/4/10, DenesL denes1...@yahoo.ca wrote: The closing form tags are wrong (should be /form), so the browser only sees one form with

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Phyo Arkar
8 sec too easy :D On 12/4/10, Albert Abril albert.ab...@gmail.com wrote: about 3 or 4 minutes with, with a paper and a pencil On Fri, Dec 3, 2010 at 11:10 PM, Branko Vukelic bg.bra...@gmail.com wrote: That's an example of thinking outside the box. :D On Fri, Dec 3, 2010 at 10:34 PM, ron_m

[web2py] Re: IS_EMPTY_OR with list instead of one

2010-12-03 Thread DenesL
..requires=[IS_EMPTY_OR(IS_EMAIL()), IS_EMPTY_OR(IS_NOT_IN_DB(db, db.table.email)) ] On Dec 3, 6:31 pm, Carlos carlosgali...@gmail.com wrote: Hi, Shouldn't IS_EMPTY_OR accept a list instead of only one alternative validator as arg 0?. For example in the case where an email field can be

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Phyo Arkar
hint = ^+* On 12/4/10, Phyo Arkar phyo.arkarl...@gmail.com wrote: 8 sec too easy :D On 12/4/10, Albert Abril albert.ab...@gmail.com wrote: about 3 or 4 minutes with, with a paper and a pencil On Fri, Dec 3, 2010 at 11:10 PM, Branko Vukelic bg.bra...@gmail.com wrote: That's an example of

[web2py] Re: Newbie question:add new record as a copy of an existing row in SQLFORM

2010-12-03 Thread mr.freeze
Here is an example: Model - db.define_table('things',Field('name',requires=IS_NOT_EMPTY()), Field('age','integer'),Field('weight','double')) db.things.id.represent = lambda v: A(v,_href=URL(vars=dict(dupe=v)), _onclick='return confirm(Copy

[web2py] Re: IS_EMPTY_OR with list instead of one

2010-12-03 Thread Carlos
Thanks Denes! On Dec 3, 9:04 pm, DenesL denes1...@yahoo.ca wrote: ..requires=[IS_EMPTY_OR(IS_EMAIL()), IS_EMPTY_OR(IS_NOT_IN_DB(db, db.table.email)) ] On Dec 3, 6:31 pm, Carlos carlosgali...@gmail.com wrote: Hi, Shouldn't IS_EMPTY_OR accept a list instead of only one alternative

  1   2   >