Re: [web2py] why not PHP?

2011-01-05 Thread Branko Vukelić
On Wed, Jan 5, 2011 at 2:00 AM, Kuba Kucharski kuba.kuchar...@gmail.com wrote: Comments below the original post for full explanation. ok, I thought there is smth more there that I missed ;) Well, I just thought some have missed the fact that this bug is platform-specific. What I absolutely

Re: [web2py] web2py permissions

2011-01-05 Thread Branko Vukelić
If you want 644 perms on the directory, the owner should be the user that starts web2py. If webserver starts it, then the webserver user (nobody, http, www, etc) should own the directory (or have permissions to write to it anyway). If you start it manually, then the user you used to start web2py

Re: [web2py] why not PHP?

2011-01-04 Thread Branko Vukelić
Look at the comments below the post. On Tue, Jan 4, 2011 at 5:46 PM, Martín Mulone mulone.mar...@gmail.com wrote: Nice bug 2011/1/4 Jason (spot) Brower encomp...@gmail.com Wow, I like that one. :P On Tue, Jan 4, 2011 at 6:35 PM, mdipierro mdipie...@cs.depaul.edu wrote: among other

Re: [web2py] why not PHP?

2011-01-04 Thread Branko Vukelić
On Tue, Jan 4, 2011 at 10:08 PM, Kuba Kucharski kuba.kuchar...@gmail.com wrote: 2011/1/4 Branko Vukelić stu...@brankovukelic.com: Look at the comments below the post. ? Comments below the original post for full explanation. -- Branko Vukelic stu...@brankovukelic.com http

Re: [web2py] jQuery - need help !

2011-01-03 Thread Branko Vukelić
They are all called .custom, though. I think it doesn't run with jQuery in compatibility mode. For testing purposes try this _before_ loading the jQuery UI scripts: script $ = jQuery; /script On Mon, Jan 3, 2011 at 3:50 PM, David J da...@styleflare.com wrote: I think you don't have

Re: [web2py] jQuery - need help !

2011-01-03 Thread Branko Vukelić
? Into default/index.html, before {{extend 'layout.html')}} ? 2011/1/3 Branko Vukelić stu...@brankovukelic.com They are all called .custom, though. I think it doesn't run with jQuery in compatibility mode. For testing purposes try this _before_ loading the jQuery UI scripts:    script

[web2py] Happy New Year in 2011

2010-12-31 Thread Branko Vukelić
Well, here it's already 1AM, so: Happy New Year in 2011 to all of you guys. I wish you a productive and satisfying year! -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/

Re: [web2py] Problems in web2py 1.83.2

2010-12-29 Thread Branko Vukelić
2010/12/29 Kenneth Lundström kenneth.t.lundst...@gmail.com: If I remember correctly there was something about this on the list. I think you use the URL the wrong way and until version 1.83.2 the helper worked wrongly. In your case it worked but it has been corrected and it doesn´t work

Re: [web2py] Problems in web2py 1.83.2

2010-12-29 Thread Branko Vukelić
2010/12/29 Kenneth Lundström kenneth.t.lundst...@gmail.com: If your are using a bug and somebody repairs that bug your application stops working. I agree completely. However, it's a tricky situation if you insist on ever-backwards-compatible. You only insist on that because you don't want to

Re: [web2py] Problems in web2py 1.83.2

2010-12-29 Thread Branko Vukelić
2010/12/29 Kenneth Lundström kenneth.t.lundst...@gmail.com: I guess not even web2py is perfect. Maybe some day. Sure. I don't mind the bugs getting fixed. I just wanted to say that in a perfect world, you cannot expect backwards-compatibility-forever. :) -- Branko Vukelic

Re: [web2py] customize json output

2010-12-29 Thread Branko Vukelić
On Wed, Dec 29, 2010 at 3:38 PM, bova povetki...@gmail.com wrote: Hello! I'm using web2py with jquery and jquery.flot plugin Tell me please how can I get json output like following:  [ { label: Foo, data: [ [10, 1], [17, -14], [30, 5] ] },    { label: Bar, data: [ [11, 13], [19, 11], [30,

Re: [web2py] Re: customize json output

2010-12-29 Thread Branko Vukelić
I think the dictionaries should work the same, though. Never tried, but they are the same string form as JSON objects. On Wed, Dec 29, 2010 at 6:05 PM, mdipierro mdipie...@cs.depaul.edu wrote: I found that for list and dict repr(L) works as good as gluon.contrib.simplejson.dumps(L) and

Re: [web2py] Re: Web2Py Foundation?

2010-12-29 Thread Branko Vukelić
On Wed, Dec 29, 2010 at 6:04 PM, mdipierro mdipie...@cs.depaul.edu wrote: I will amend my will to release the book under an open source license. You guys really think my heirs even know what I do in front of the computer all day? I dunno, but could you ask them if they'd sue people who would

Re: [web2py] Re: Web2Py Foundation?

2010-12-29 Thread Branko Vukelić
On Wed, Dec 29, 2010 at 7:08 PM, Bruno Rocha rochacbr...@gmail.com wrote: This thread can be historical like that one: http://www.python.org/search/hypermail/python-1994q2/1040.html which was the start of PSF Why are Westerners so obsessed with death? That's quite amazing. -- Branko

Re: [web2py] Re: Web2Py Foundation?

2010-12-29 Thread Branko Vukelić
2010/12/30 mdipierro mdipie...@cs.depaul.edu: It is more that people in US are obsessed with lawsuits. ;-) Lawsuits and death. Very nice. :) -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/

Re: [web2py] Re: Problems in web2py 1.83.2

2010-12-29 Thread Branko Vukelić
Btw, in case you're new to these things, the main point of URL helpers (called URL generators in some frameworks) is to generate the URL based on the information about the internal structure of the application. This is done to avoid hard-coding the paths. If you merely use the URL helper function

Re: [web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref

2010-12-28 Thread Branko Vukelić
Toranado used to be much faster (non-blocking), but it's been stagnating lately because of the ever-increasing overhead. They've been alrted, and will hopefully work on the performance. Have you tried bjoern, btw? On Tue, Dec 28, 2010 at 7:44 AM, mdipierro mdipie...@cs.depaul.edu wrote:

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Branko Vukelić
On Tue, Dec 28, 2010 at 6:28 PM, mdipierro mdipie...@cs.depaul.edu wrote:  http://www.google.com/trends?q=django? FTR, the graph is for the 'keyword' Django, which can be many things, and doesn't reflect the popularity of either the keyword or the Django project. The overall volume of searches

Re: [web2py] Re: experts4solution: please update your profile

2010-12-28 Thread Branko Vukelić
I think Massimo said you cannot endorse users with incomplete profiles. On Tue, Dec 28, 2010 at 8:44 PM, Michele Comitini michele.comit...@gmail.com wrote: Who is that? ;-) Well I endorsed him anyway :-) 2010/12/28 mdipierro mdipie...@cs.depaul.edu: Ouch! On Dec 28, 1:27 pm, Bruno Rocha

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Branko Vukelić
On Tue, Dec 28, 2010 at 11:21 PM, mdipierro mdipie...@cs.depaul.edu wrote: benevolent? What? Prefer malevolent? :) -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Branko Vukelić
It is an open question whether distribution of such modified copies are legally allowed to still be called web2py if Massimo has sole legal rights on the name. Thus, you may be able to do that, but you likely would have to call it something other than web2py. Well, uneless dead people can sue

Re: [web2py] autocomplete - style: widht hard coded ??

2010-12-27 Thread Branko Vukelić
Better modify the code. On Mon, Dec 27, 2010 at 11:28 AM, Ole Martin Maeland olemael...@gmail.com wrote: Hi, I have a autocomplete field in a form, and I would like it to be wider. Looking at the code it looks like it is hard coded - width: 200px, how do I overriede that in CSS ??

Re: [web2py] Re: CSS probleme

2010-12-27 Thread Branko Vukelić
On Mon, Dec 27, 2010 at 11:30 AM, Martin.Mulone mulone.mar...@gmail.com wrote:  See http://www.quirksmode.org/dom/inputfile.html if you want to do that, any easy solution is welcome. I don't think there's a good solution for that that doesn't involve javascript. And even the best-looking

Re: [web2py] Re: The stability of web2py releases

2010-12-27 Thread Branko Vukelić
In other words, you want commit access to the master repository? On Mon, Dec 27, 2010 at 11:15 PM, Thadeus Burgess thade...@thadeusb.com wrote: Also an issue when only one person has access to said clones. -- Thadeus On Mon, Dec 27, 2010 at 11:04 AM, mdipierro mdipie...@cs.depaul.edu

Re: [web2py] Default Values.

2010-12-26 Thread Branko Vukelić
Have you tried ``str(field.type[:10])``? Just a wild guess. I think just saying ``field.type[:10]`` would actually return a class instance, not a string. On Mon, Dec 27, 2010 at 2:05 AM, David J. da...@styleflare.com wrote: Thanks for the Tips; Does this have sqlite have some sort of

Re: [web2py] Default Values.

2010-12-26 Thread Branko Vukelić
Oops. Correction: str(field.type)[:10] 2010/12/27 Branko Vukelić stu...@brankovukelic.com: Have you tried ``str(field.type[:10])``? Just a wild guess. I think just saying ``field.type[:10]`` would actually return a class instance, not a string. On Mon, Dec 27, 2010 at 2:05 AM, David J

Re: [web2py] Re: please explain this

2010-12-25 Thread Branko Vukelić
Take a look at this for the explanation of _why_ you use escaping: http://en.wikipedia.org/wiki/Cross-site_scripting On Sat, Dec 25, 2010 at 8:02 AM, Sahil Arora sahilarora...@gmail.com wrote: thanks On Sat, Dec 25, 2010 at 12:09 PM, Thadeus Burgess thade...@thadeusb.com wrote: Escape will

Re: [web2py] Re: The stability of web2py releases

2010-12-25 Thread Branko Vukelić
On Sat, Dec 25, 2010 at 4:08 PM, weheh richard_gor...@verizon.net wrote: I'm not keen on the 2 button approach -- can you imagine a 2 button release for python? Nevertheless, it does potentially simplify the Yes, I can certainly imagine a 2 button Python release[1]:

Re: [web2py] I just discovered this

2010-12-24 Thread Branko Vukelić
On Fri, Dec 24, 2010 at 8:41 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://reia-lang.org/ Sweet! -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/

Re: [web2py] Re: The stability of web2py releases

2010-12-24 Thread Branko Vukelić
+1 On Fri, Dec 24, 2010 at 8:20 AM, Luis Díaz diazluis2...@gmail.com wrote: +1 2010/12/24 ron_m ron.mco...@gmail.com I for one am happy with the current release cycle. It is a good balance between new features and the ultimate stability of release 1.XX.N  where N is the last version before

Re: [web2py] Re: The stability of web2py releases

2010-12-24 Thread Branko Vukelić
2010/12/24 Kenneth Lundström kenneth.t.lundst...@gmail.com: Is there instructions how to use the hg stuff to use the trunk. Could not find the hg command in the book? Look here: http://code.google.com/p/web2py/source/checkout I think the double-update button is a good idea. I was going to

Re: [web2py] Re: Is this broken?

2010-12-24 Thread Branko Vukelić
search_form = FORM(LABEL('Search a word: ', _for='word', _id='word_label', _name='word_label'), INPUT(_id='word', _name='word', requires=IS_NOT_EMPTY()), SELECT(_name='languages', _id='languages', requires=IS_IN_DB(db,'languages.id'), *options_added),

Re: [web2py] Re: The stability of web2py releases

2010-12-24 Thread Branko Vukelić
On Fri, Dec 24, 2010 at 10:18 PM, VP vtp2...@gmail.com wrote: For one thing, I don't think the 2-button suggestion is a good idea; it's just another indirect layer of information that might not be meaningful if the underlying mechanism is meaningful.  Conversely, if the underlying mechanism is

Re: [web2py] Re: Great summary of web2py

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 4:16 AM, VP vtp2...@gmail.com wrote: I've supported web2py for a long time.  But I think it's time to rethink about PR. Frankly, I think this Flask/Django business is a distraction.  I think Massimo should completely ignore and do not say anything about Flask or Django.

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 5:37 PM, Jonathan Lundell jlund...@pobox.com wrote: On Dec 23, 2010, at 1:04 AM, cjrh wrote: On Dec 22, 6:05 pm, Thadeus Burgess thade...@thadeusb.com wrote: What I do is if my app works with a certain version, I don't ever upgrade the web2py unless I need a brand new

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 6:19 PM, Jonathan Lundell jlund...@pobox.com wrote: Seriously: no. Seriously: yes. Why? Because it's YOUR work that is going to suffer if you don't. Why WOULDN'T you test something you are going to deploy? I've just tested dozen frameworks and even PHP before starting a

Re: [web2py] Re: Unable to detect your browser

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 10:22 PM, greenpoise danel.sega...@gmail.com wrote: when I issue echo $BROWSER I get firefox. I have not used web2py in a long time, since I have ArchLinux because of this problem. Is there a way to change web2py as to where it does not launches any browser I have

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 10:40 PM, pbreit pbreitenb...@gmail.com wrote: Part of the value of a framework is being able to count on its stability. For now, we can upgrade more slowly and pay attention to stability reports of new releases. Yes, yes. Sit around and wait. For what reports again?

Re: [web2py] Re: Unable to detect your browser

2010-12-23 Thread Branko Vukelić
2010/12/23 greenpoise danel.sega...@gmail.com: brilliant!! THANKS SO MUCH! You're welcome. It also helps if you build a virtual environment for developing your apps. Keeps things clean. First you get virtualenv package with: $ easy_install-2.7 virtualenv Then you just run this: $

Re: [web2py] Re: Great summary of web2py

2010-12-23 Thread Branko Vukelić
2010/12/23 VP vtp2...@gmail.com: People who think that Django/Flask are superior to web2py, and/or web2py is deeply flawed, aren't changing their minds.  There's no point to debate, justify, etc. True. Off-topic I've recently tested Flask briefly. I didn't like it's way of routing. But then

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 9:17 AM, Michele Comitini michele.comit...@gmail.com wrote: should we have a stable and beta (latest) release?  Many people do not use trunk, because changes too fast I guess. Having a beta period before stable could help attract more beta testers, but I think it would

Re: [web2py] Apache quits Java governance group in protest of Oracle abuses

2010-12-22 Thread Branko Vukelić
We all saw it coming. :) On Wed, Dec 22, 2010 at 10:45 AM, Michele michele.comit...@gmail.com wrote: Just to keep u update on the Oracle takeover Sent to you by Michele via Google Reader: Apache quits Java governance group in protest of Oracle abuses via Open Ended by

Re: [web2py] web2py 1.91.1 is OUT (LGPLv3)

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 1:49 PM, Tom Atkins minkto...@gmail.com wrote: It's amazing how much has been added and fixed in 12 months since I've been Are you kidding? Only the last two MONTHS were insane! :D = Massimo Quick-Fingers DiPierro, the sheriff of Web2pyville. -- Branko Vukelic

Re: [web2py] The stability of web2py releases

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 3:44 PM, appydev appy...@gmail.com wrote: I think there should be a version, not to call it ... , Something likeUbuntu LTS (Long Term Support). and that this version receiveimmediate bug fixes. and other critical updates that do notprovide new features mean, for a

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Branko Vukelić
2010/12/22 Luis Díaz diazluis2...@gmail.com: in particular whenever new versions come out ... I always say ... have to wait 1 week or 2 to becomestable ... Not become stable, but be proven stable. You release, wait for everyone to give it a go. If everyone is happy, then it's considered

Re: [web2py] web2py 1.91.1 is OUT (LGPLv3)

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 4:19 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: I have been hacking a bit with Django yesterday and realize how much simpler Django is a humongous monster (call it feature-rich, I call it bloat). You really have to spend a lot of time before you can do anything

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 5:05 PM, Thadeus Burgess thade...@thadeusb.com wrote: Nobody has time to work on certain things like this since most of us have full time jobs that may or may not be related to web2py. What do you mean? No time to develop a system of labeling releases or no time to

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 5:57 PM, Thadeus Burgess thade...@thadeusb.com wrote: The latter. No time to test aside from upgrading in production. Oh, but that's a bit upside down. web2py comes with no warranties, you should at least test it a bit before going live. And as a double-win, you also

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 8:29 PM, mdipierro mdipie...@cs.depaul.edu wrote: The idea was to have stable and nightly-build. The problem is that very few people check the nightly build. Well, yeah, it's because it's sounds like a nightly TRUNK dump. :) It's better to make a 'incubation release' or

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 8:47 PM, Anthony abasta...@gmail.com wrote: Oh, also, I noticed a typo on the website -- it says Nightly Built instead of Nightly Build. Maybe that's the problem. ;-) Is there a typo on this planet that can evade Anthony? :D -- Branko Vukelic stu...@brankovukelic.com

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 9:38 PM, Michele Comitini michele.comit...@gmail.com wrote: Web2py supports unit testing.  Why not have an app with controller(s) that can be tested for each solved bug?  this would reduce at least regressions.  Kinda continuos integration system That also requires time

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Branko Vukelić
Shoot Massimo an e-mail. I'm sure he'd be happy to hear from you. On Wed, Dec 22, 2010 at 11:37 PM, Michael McGinnis ish...@biographiks.com wrote: I'd like to help fix those typos. Let me know how I can get started. Michael McGinnis michael.d.mcgin...@gmail.com On Dec 22, 4:01 pm, Stefaan

Re: [web2py] When to use lambda?

2010-12-21 Thread Branko Vukelić
On Tue, Dec 21, 2010 at 9:36 PM, pbreit pbreitenb...@gmail.com wrote: I see lambda used quite a bit and don't totally understand the concept. Is there a simple rule to follow to know when it is necessary to use? You can get away with NEVER using lambda. But it's cool to know it. Lambda is

Re: [web2py] Re: it case you missed it...

2010-12-21 Thread Branko Vukelić
On Tue, Dec 21, 2010 at 11:08 PM, mdipierro mdipie...@cs.depaul.edu wrote: Perhaps I should add a new exception: you loose the license to use web2py if you complain about web2py or its license. ;-) for 1000 years or life, whichever comes last ;) -- Branko Vukelic stu...@brankovukelic.com

Re: [web2py] look ma, no flash!

2010-12-21 Thread Branko Vukelić
Damn, that's nice. On Tue, Dec 21, 2010 at 11:31 PM, Michele Comitini michele.comit...@gmail.com wrote: http://spritely.net/ -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/

Re: [web2py] look ma, no flash!

2010-12-21 Thread Branko Vukelić
somewhere else on the window? 2010/12/21 Branko Vukelić stu...@brankovukelic.com: Damn, that's nice. On Tue, Dec 21, 2010 at 11:31 PM, Michele Comitini michele.comit...@gmail.com wrote: http://spritely.net/ -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com

Re: [web2py] Re: When to use lambda?

2010-12-21 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 12:13 AM, Stefaan Himpe stefaan.hi...@gmail.com wrote: myfunction(lambda x: print 'Eat %s!' % x) and that would print 'Eat this!'. Ahm... :) You can't use print in lambda as it is a statement, not an expression (in python 2.x at least) Yah, I know. I've corrected

Re: [web2py] It is done GPL2 - LGPL3

2010-12-21 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 1:30 AM, Bruno Rocha rochacbr...@gmail.com wrote: LGPL3 + 1 Merry Christmas + 1 [i + 1 for i in [LGPL3, MerryChristmas]] ;) -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/