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

2010-12-22 Thread Michele Comitini
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 add a burden for version control... mic 2010/12/22 ron_m : > If you are sensitive to n

[web2py] Re: Left Join with aliased table and the new DAL

2010-12-22 Thread HaM
Ok in order to simplify the problem I have changed my code to this: Domain = db.domain Client = db.client Manager = db.contact.with_alias('manager') sql = db((Domain.id==1)&(Client.id==Domain.client_id))._select( Domain.name, Client.name, Manager.name, left=[Manager

[web2py] Members database

2010-12-22 Thread Kenneth Lundström
Hello, a small design question. I´m planing a intranet which contains a members database. Their postal address and some other info. Would you use the auth_user table to store all members or make a different table for it. - If I use auth_user what to do with members not intresered in login?

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

2010-12-22 Thread Michele
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 segpha...@arstechnica.com (Ryan Paul) on 12/9/10 The Apache Software Foundation (ASF) announced today that it is resigning from

[web2py] Pagination, memory usage and grids(jqgrid, powerTable, webgrid)

2010-12-22 Thread Johann Spies
I work with tables of hundreds of thousands of records. Although jqgrid seems faster than the other grids mentioned in the Subject-line it still works too long when a large table is selected. All the abovementioned grids have their own pagination but it seems that they do not use that while query

[web2py] Re: It is done GPL2 -> LGPL3

2010-12-22 Thread vihang
+3 LGPL ! Will make web2py more acceptable... ! On Dec 22, 7:38 am, Luis Díaz wrote: > +1 > > 2010/12/22 R. Strusberg > > > Another reason to switch from *webframework to web2py!. > > > +1 :-) Merry Christmas +1 > > > 2010/12/21 mdipierro : > > > For now trunk only. This will propagate to stable

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 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 add a burden for versio

Re: [web2py] Pagination, memory usage and grids(jqgrid, powerTable, webgrid)

2010-12-22 Thread rochacbruno
I am working on server side pagination/sorting/search for powerTable. Hope to finish soon. Enviado via iPhone Em 22/12/2010, às 08:24, Johann Spies escreveu: > I work with tables of hundreds of thousands of records. Although jqgrid > seems faster than the other grids mentioned in the Subje

Re: [web2py] Pagination, memory usage and grids(jqgrid, powerTable, webgrid)

2010-12-22 Thread Johann Spies
On 22 December 2010 14:01, rochacbruno wrote: > I am working on server side pagination/sorting/search for powerTable. > > Hope to finish soon. > > Thanks. I have since my previous email discovered that switching from the rocket server to apache makes a huge difference in speed and memory usage.

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 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 segpha...@arstechnica.com (

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

2010-12-22 Thread Tom Atkins
I hereby nominate web2py for 'Fastest developing full-stack web framework of the year award'. It's amazing how much has been added and fixed in 12 months since I've been using web2py. Well done Massimo and everyone. Looking forward to 2011!

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 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 stu...@brankovukelic.

Re: [web2py] The stability of web2py releases

2010-12-22 Thread appydev
Regards, Sometimes I notice that when an error is detected in the stable,this is fixed in the trunk. On the other hand, all the new featuresare included in the trunk. New features bring new bugs, thus thetrunk will always have some errors that are passed to the stable. I think there should be a v

Re: [web2py] The stability of web2py releases

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 3:44 PM, appydev 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 considerable time u

[web2py] Re: The stability of web2py releases

2010-12-22 Thread KR
I support that. For me the last stable is 1.89.5 (or maybe 1.90.6 ? if the new DAL is stable) The only missing stuff is a place to download it. On 22 déc, 15:49, Branko Vukelić wrote: > On Wed, Dec 22, 2010 at 3:44 PM, appydev wrote: > > I think there should be a version, not to call it ... , >

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

2010-12-22 Thread Luis Díaz
in particular whenever new versions come out ... I always say ... have to wait 1 week or 2 to becomestable ... unless the new features are highly anticipated and then one is dedicated to testing the system 2010/12/22 KR > I support that. > For me the last stable is 1.89.5 (or maybe 1.90.6 ? if

Re: [web2py] The stability of web2py releases

2010-12-22 Thread appydev
I have not talked for 3 years. not, I did not say which should be LTS. I said that there should be a stable release, and is receiving immediate bug fixes. and other critical updates that do not provide new features mean, for a considerable time until the new features are sufficiently tested. but di

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

2010-12-22 Thread Richard Vézina
I have been hacking a bit with Django yesterday and realize how much simpler web2py is... I Like w2p so much... Thanks to Massimo and all the core dev team that improve web2py every day. Happy holidays to all Richard 2010/12/22 Branko Vukelić > On Wed, Dec 22, 2010 at 1:49 PM, Tom Atkins

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

2010-12-22 Thread R. Strusberg
+1 2010/12/22 Tom Atkins : > I hereby nominate web2py for 'Fastest developing full-stack web framework of > the year award'. > It's amazing how much has been added and fixed in 12 months since I've been > using web2py.  Well done Massimo and everyone.  Looking forward to 2011!

[web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread dcrodjer
Hi, I just *updated my web2py* version to *1.91.1* but after the update I am unable to deploy my applications on *GAE*. The apps run on the local app engine skd with no errors. I even tried downloading a fresh source and deploying it but no effect I stll get an Internal server error and these a

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

2010-12-22 Thread Branko Vukelić
2010/12/22 Luis Díaz : > > 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 stable, and move to st

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 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 with it. And even then, pa

Re: [web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread Bruno Rocha
May be this line : if not request.env.web2py_runtime_gae: is missing in referred method. Can you try to change the method for test? IN main.py line 445 def create_missing_folders(): for path in ('applications', 'deposit', 'site-packages', 'logs'): path = abspath(path, gluon=True)

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

2010-12-22 Thread Thadeus Burgess
Funny, Every three to four weeks this topic of discussion comes up. Lots of the same ideas are said over and over again. 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 I do is if my app works with a certain

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 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 upgrade, test, etc? --

[web2py] Re: country / state / city of the current visitor?

2010-12-22 Thread Carlos
Thank you all for your replies ! On Dec 20, 10:21 pm, Plumo wrote: > Or you could use this service and cache the > values:http://www.geobytes.com/IpLocator.htm?GetLocation&template=json.txt&i...

Re: [web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 7:55 AM, Bruno Rocha wrote: > May be this line : > if not request.env.web2py_runtime_gae: > > > is missing in referred method. > > > Can you try to change the method for test? > > > IN main.py line 445 > > > > def create_missing_folders(): > for path in ('applicatio

Re: [web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread dcrodjer
@Bruno, Thanks for the prompt reply I found the function you specified in admin.py, following the error. This won't work, the function needs the *request* var. So if not request.env.web2py_runtime_gae: can't be put there. Also I tried putting passing *request* as argument in * create_missing

[web2py] Link to mod_wsgi.so download for py25 not working

2010-12-22 Thread Rupesh Pradhan
The following link from the web2py online book is not working. http://adal.chiriliuc.com/mod_wsgi/revision_1018_2.3/mod_wsgi_py25_apache22/mod_wsgi.so Any alternate URL? Rupesh

[web2py] Re: default values in options widget

2010-12-22 Thread Oleg
As far as I understood, the problem is that, it is not possible (??) in current web2py crud implementation to map one label in dropdown control to database NULL value. If you do IS_IN_SET({None:'Unknown','Opt1':'Opt1', 'Opt2':'Opt2'}, zero=None) and submit the 'Unknown', you become 'None' as str

Re: [web2py] The stability of web2py releases

2010-12-22 Thread Anthony
On Wednesday, December 22, 2010 9:44:27 AM UTC-5, appydev wrote: > > Regards, > > Sometimes I notice that when an error is > detected in the stable,this is fixed in the trunk. On the > other hand, all the new featuresare included in the > trunk. New features bring new bugs, thus thetrunk will a

[web2py] Re: How to do this in web2py..?

2010-12-22 Thread Carlos
Hi, Maybe the following can help (with respect to one common form from multiple tables)?: http://www.web2pyslices.com/main/slices/take_slice/102 Good luck, Carlos On Dec 20, 10:47 pm, Fabiano wrote: > Hi Villas, > > yes, I know this concept, I have a good background in computer > science,

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

2010-12-22 Thread Thadeus Burgess
The latter. No time to test aside from upgrading in production. No time to develop a test application which can handle all of web2py features (including all DAL databases) No time to set up and maintain a server just for said tests. -- Thadeus 2010/12/22 Branko Vukelić > On Wed, Dec 22, 2

[web2py] Great summary of web2py

2010-12-22 Thread Anthony
This is a great summary of the awesomeness that is web2py: http://www.reddit.com/r/Python/comments/eps76/web2py_1911_is_out_the_license_has_changed_to/ Sadly, reddit is downvoting again, but they can't stop us. :-) Anthony

Re: [web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread dcrodjer
So as a workaround what I am doing is: try: create_missing_folders() except AttributeError: pass Is this safe? Is there some other way that I can check if the environment is gae as it seems the request variable is not available in main.py .

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

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 7:47 AM, Branko Vukelić wrote: > > 2010/12/22 Luis Díaz : >> >> 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.

Re: [web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 8:59 AM, dcrodjer wrote: > So as a workaround what I am doing is: > > try: > create_missing_folders() > except AttributeError: > pass > > > Is this safe? Is there some other way that I can check if the environment is > gae as it seems the request variable is not ava

Re: [web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 8:20 AM, Jonathan Lundell wrote: > > I think that's right, Bruno. The missing-folder logic got factored out, > because it wasn't being invoked for any server except Rocket, but it > shouldn't run for GAE. However, we still want the sys.path logic, so the fix > should look mo

Re: [web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 9:05 AM, Jonathan Lundell wrote: > > On Dec 22, 2010, at 8:59 AM, dcrodjer wrote: >> So as a workaround what I am doing is: >> >> try: >>create_missing_folders() >> except AttributeError: >>pass >> >> >> Is this safe? Is there some other way that I can check if the

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

2010-12-22 Thread pbreit
I do think at some point the concept of "stable" and "new" will be useful for newer users. "stable" might be a loaded word so maybe just "recommended" or something. One challenge will be how to process bug fixes on "stable". A start may be the ability to specify a branch in admin. And new users

[web2py] Re: Link to mod_wsgi.so download for py25 not working

2010-12-22 Thread pbreit
Might check here: http://code.google.com/p/modwsgi/wiki/DownloadTheSoftware?tm=2

Re: [web2py] Version 1.91.1 GAE deployment, mkdir error

2010-12-22 Thread dcrodjer
thanks @Jonathan, It works!! Seems clean too!

[web2py] Re: use of 'timedelta' as a field

2010-12-22 Thread Luther Goh Lu Feng
Instead of using 3 fields, you could store everything in 1 field using the lowest denomination of time that you will use, eg seconds. Then use a function to convert the value of `seconds` to days, minutes, hours. On Dec 22, 3:20 pm, ron_m wrote: > timediff is just 3 integers representing days, se

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

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 9:17 AM, pbreit wrote: > I do think at some point the concept of "stable" and "new" will be useful for > newer users. "stable" might be a loaded word so maybe just "recommended" or > something. One challenge will be how to process bug fixes on "stable". A > start may be the a

[web2py] Re: Members database

2010-12-22 Thread Luther Goh Lu Feng
I would use the auth_user table by customising it. For members not interested in logging in, I might create a field that flags such users. On Dec 22, 5:29 pm, Kenneth Lundström wrote: > Hello, > > a small design question. > > I m planing a intranet which contains a members database. Their postal

[web2py] Re: Members database

2010-12-22 Thread pbreit
I would suggesting only using auth_user for people who register and need to log in. If you're just storing and publishing information like that, create a new table and don't worry about duplicate data. People might want to display a different contact email address anyway.

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

2010-12-22 Thread ron_m
This is very interesting. I tried all the web servers I have installed cherrypy, twisted, eventlet, rocket. The logs say the request service speed is all about the same but twisted seemed slower from an unscientific response time feel of the app. I load map images using IMG tags in the part of

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 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 help judging the qual

[web2py] form.accepts = False. How to find out why

2010-12-22 Thread Johann Spies
I have the following controller: === def show_fpipl01(): tabel = request.vars.tabel tb = tabel.lower() if auth.user_id in [21,22]: # Johann Spies (22) or ERA (21) rdata = db((db.service_provider.id == db[tb].service_provider)

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

2010-12-22 Thread Bruno Rocha
I see the need to organize a test team Some ideas: https://wiki.ubuntu.com/Testing https://wiki.ubuntu.com/Testing/LoCoTeam http://ubuntutesting.wordpress.com/2010/08/06/desktop-testing-team/ https://launchpad.net/~desktop-testing-team Or, we can organizze Local S

[web2py] Re: form.accepts = False. How to find out why

2010-12-22 Thread villas
form.accepts is a filter that moves request.vars into form.vars after parsing and also populates form.errors. Looking at form.errors should help. On Dec 22, 6:58 pm, Johann Spies wrote: > I have the following controller: > === > def show_fpipl01(): >        tabel = request.v

[web2py] Re: The stability of web2py releases

2010-12-22 Thread mdipierro
The idea was to have stable and nightly-build. The problem is that very few people check the nightly build. On Dec 22, 11:17 am, pbreit wrote: > I do think at some point the concept of "stable" and "new" will be useful > for newer users. "stable" might be a loaded word so maybe just "recommended"

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

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 8:29 PM, mdipierro 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 something like that, s

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

2010-12-22 Thread Vasile Ermicioi
that means we prefer a stable one :)

[web2py] Re: form.accepts = False. How to find out why

2010-12-22 Thread mdipierro
I think because Field('id', requires = IS_IN_SET(ids), id in the form is a string and ids in the set are integers. On Dec 22, 1:19 pm, villas wrote: > form.accepts is a filter that moves request.vars into form.vars after > parsing and also populates form.errors. > > Looking at form.errors shoul

[web2py] Re: The stability of web2py releases

2010-12-22 Thread mdipierro
We can change the name. It is not truly a nigthly built. it is closer to a release candidate even if the final release is not equivalent to the latest nightly built. On Dec 22, 1:31 pm, Branko Vukelić wrote: > On Wed, Dec 22, 2010 at 8:29 PM, mdipierro wrote: > > The idea was to have stable and

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

2010-12-22 Thread Anthony
Also, you probably need some kind of announcement to prompt testing -- there's nothing prompting people to check the nightly build (or even to know when anything substantial has been added to it). When a new .1 release (e.g., 1.91.1) is announced (usually with a list of new features), that prom

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

2010-12-22 Thread Anthony
Oh, also, I noticed a typo on the website -- it says "Nightly Built" instead of "Nightly Build". Maybe that's the problem. ;-)

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

2010-12-22 Thread Branko Vukelić
On Wed, Dec 22, 2010 at 8:47 PM, Anthony 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 http://www.br

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

2010-12-22 Thread Anthony
Please, don't encourage me. :D On Wednesday, December 22, 2010 3:13:32 PM UTC-5, stu...@brankovukelic.com wrote: > On Wed, Dec 22, 2010 at 8:47 PM, Anthony wrote: > > Oh, also, I noticed a typo on the website -- it says "Nightly Built" > instead > > of "Nightly Build". Maybe that's the problem

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

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 11:42 AM, mdipierro wrote: > > We can change the name. It is not truly a nigthly built. it is closer > to a release candidate even if the final release is not equivalent to > the latest nightly built. I'm sounding like a broken record here (remember those?), but in view of the

Re: [web2py] Re: form.accepts = False. How to find out why

2010-12-22 Thread Johann Spies
On 22 December 2010 21:32, mdipierro wrote: > I think because > > Field('id', requires = IS_IN_SET(ids), > > id in the form is a string and ids in the set are integers. > > Thanks for your answer. Changing the definition to form = SQLFORM.factory(Field('id', 'integer', requires = IS_IN_SET(ids),

[web2py] Full text search again

2010-12-22 Thread mdipierro
Somebody posted an interesting question on Stack Overflow: http://stackoverflow.com/questions/4512181/web2py-like-equivalents-with-google-app-engine/4513397#4513397 please please ... ask questions here.

Re: [web2py] Simple debugger

2010-12-22 Thread Johann Spies
On 14 December 2010 06:45, Bruno Rocha wrote: > > At model defined: > > > #debugger > def dbg(*attributes): > print '---\n' > print attributes > while not raw_input('\nPRESS TO CONTINUE\n'): > break > > > > I get this when I use your code (and

Re: [web2py] Re: form.accepts = False. How to find out why

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 12:22 PM, Johann Spies wrote: > On 22 December 2010 21:32, mdipierro wrote: > I think because > > Field('id', requires = IS_IN_SET(ids), > > id in the form is a string and ids in the set are integers. > > > Thanks for your answer. Changing the definition to > > form = SQL

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

2010-12-22 Thread Michele Comitini
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 2010/12/22 Jonathan Lundell : > On Dec 22, 2010, at 11:42 AM, mdipierro wrote: >> >> We can change the name. It

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 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 and discipline, if I'm

[web2py] Re: The stability of web2py releases

2010-12-22 Thread Stefaan Himpe
Is there a typo on this planet that can evade Anthony? :D While we're on the subject... *cough*experts4solutions.com*cough* Its typos still make my eyes bleed :p

[web2py] Re: Full text search again

2010-12-22 Thread weheh
Massimo, how is this full text search? It seems to search db.data.title only? What if you had a file that you wanted to search? Would you tokenize it as you did in your example? I'm going to run into this issue, soon. I want to search a database of documents (stored in files).

[web2py] Re: The stability of web2py releases

2010-12-22 Thread Michael McGinnis
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 Himpe wrote: > > Is there a typo on this planet that can evade Anthony? :D > > While we're on the subject... *cough*experts4solutions.com*cough* > Its ty

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 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 Himpe wrote: >> >

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread Charis
I define the db using: db = DAL('sqlite://db.db') db.define_table('database', SQLField('email','string'), SQLField('data','upload') ) I create a form using form = SQLFORM.factory(db.database.email,db.database.data) The form appears correctly but

[web2py] Re: Full text search again

2010-12-22 Thread mdipierro
it is not full text search. The title is wrong. It is a way to for keywords in one or more fields. On Dec 22, 4:30 pm, weheh wrote: > Massimo, how is this full text search? It seems to search > db.data.title only? What if you had a file that you wanted to search? > Would you tokenize it as you di

[web2py] couchdb support again

2010-12-22 Thread mdipierro
This now works with dal in trunk: from gluon.dal import DAL, Field db=DAL('couchdb://127.0.0.1:5984') db.define_table('person',Field('name'),Field('age','integer',default=2)) id=db.person.insert(name='Jim') print id print db.person(id) print db(db.person.id==id).update(name="john", age=5) print db

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

2010-12-22 Thread Plumo
agreed. Less overhead to releases means new features get added faster.

[web2py] couchdb support again

2010-12-22 Thread mdipierro
This now works with dal in trunk: from gluon.dal import DAL, Field db=DAL('couchdb://127.0.0.1:5984') db.define_table('person',Field('name'),Field('age','integer',default=2)) id=db.person.insert(name='Jim') print id print db.person(id) print db(db.person.id==id).update(name="john", age=5) print db

[web2py] Encountering problem with a computer field

2010-12-22 Thread Magnitus
Hi, btw, I upgraded from 1.87 to 1.91 to see if the problem would get resolved and 1.91 is loading my pages significantly faster. Also, the revised version of the pdf manual is greatly superior to the original. Thank you for that. So, I tried to get fancy and use a computer field in my model and

[web2py] Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
Hi there, I need to make few apps that will share sessions. For testing purposes, i have applications "shared", "app1" and "app2". In application "shared", i have: db = DAL('sqlite://storage.sqlite') session.connect(request, response, db = db) (...) in applications "app1" and "app2" i have:

[web2py] Re: Encountering problem with a computer field

2010-12-22 Thread mdipierro
The problem is that you have compute attribute set at table definition so web2py tries to use it at every insert and every update. Even if in your update you is has no knowledge of the previous Alias_ordinal because you only updating Number_of_posts. There are two solutions... set db.table.field.c

[web2py] Re: Sharing sessions and authentication

2010-12-22 Thread mdipierro
This smells like a bug or web2py is picking up some leftover sessions from cookies. Try this: delete everything in the sessions/ folder of the three apps. If you still have the problem I will try reproduce the problem and fix it. Massimo On Dec 22, 5:40 pm, Marin Pranjic wrote: > Hi there, > I

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread mdipierro
The problem is thet you have an upload field is a form that is not connected to a database (because you are using a factory). web2py does not know what to do with the file. You need to specify the uploadfolder. uf=os.path.join(request.folder,'uploads') form = SQLFORM.factory(Field('email','string'

Re: [web2py] Re: Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
Hi Massimo, I had that in mind already. And doublechecked. No sessions in folders. I cleared the session table using appadmin on "shared". Resulting: Stil cannot login from "app1" to account created by "shared". I just created another account in "shared" registration forum. Cannot login from "app2

[web2py] Re: Sharing sessions and authentication

2010-12-22 Thread mdipierro
I cannot today but I will tomorrow. ;-) On Dec 22, 6:18 pm, Marin Pranjic wrote: > Hi Massimo, > > I had that in mind already. And doublechecked. No sessions in folders. I > cleared the session table using appadmin on "shared". > Resulting: > Stil cannot login from "app1" to account created by "s

Re: [web2py] Re: Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
No prob. I deleted all Recent history in browser, and tried again with the same result. Pretty sure it's not about cookies :) On Thu, Dec 23, 2010 at 1:20 AM, mdipierro wrote: > I cannot today but I will tomorrow. ;-) > > On Dec 22, 6:18 pm, Marin Pranjic wrote: > > Hi Massimo, > > > > I had th

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread Charis
it worked. Thank you very much. On Dec 23, 12:15 am, mdipierro wrote: > The problem is thet you have an upload field is a form that is not > connected to a database (because you are using a factory). web2py does > not know what to do with the file. You need to specify the > uploadfolder. > > uf=o

Re: [web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 4:15 PM, mdipierro wrote: > > The problem is thet you have an upload field is a form that is not > connected to a database (because you are using a factory). web2py does > not know what to do with the file. You need to specify the > uploadfolder. It might not hurt to check thi

[web2py] DotCloud is Heroku with more options

2010-12-22 Thread pbreit
Could be an interesting deployment option for Web2py: http://www.dotcloud.com/

[web2py] Re: database query

2010-12-22 Thread czamb
Massimo, thanks for the quick reply, seems to work :) Regards czamb On 22 Dez., 02:21, mdipierro wrote: > If you have joins, I would do this: > > movies_with_activeTag=db(db.movies.id.belongs(db(db.link.tagID==id_of_activeTag)._select(db.link.movieID,groupby=db.link.movieID,orderby=db.link.movie

[web2py] staging setup with apache2 and directive?

2010-12-22 Thread czamb
Hello web2py universe, does anybody have experience with a staging setup through apache mod_auth_basic or mod_auth_digest? I want to have some beta testers run a prototype. After entering username and password they should be able to use the app just as normal with internal authentication and so on

[web2py] Re: The stability of web2py releases

2010-12-22 Thread VP
In my humble opinion, the word "Enterprise" demands a more systematic approach to dealing with this issue. I think the simplest way is perhaps has a numbering scheme that is understood by everyone. For example, increment the third number (e.g. from 1.90.2 to 1.90.3) only for bug fixes, and increm

[web2py] Re: Great summary of web2py

2010-12-22 Thread VP
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.

[web2py] Re: Encountering problem with a computer field

2010-12-22 Thread Magnitus
Ah, ok. So basically, because the computed field is stored and updated during writes, it will get re-computed at every input (even if its dependencies are not changed) and expects its dependencies to be present in the input (ie, won't read the fields in the DB for missing values). I guess I shoul

[web2py] Re: The stability of web2py releases

2010-12-22 Thread Luther Goh Lu Feng
I think the suggested versioning works great What I suggest is perhaps label the latest release as the testing branch eg 1.91 is the testing branch. 1.90 will be the stable branch. These will of course increment by 0.01 in the next web2py release. In the admin panel, have the option for the user

[web2py] Re: The stability of web2py releases

2010-12-22 Thread Luther Goh Lu Feng
To clarify, what I am saying is, no change to current release system, except to label stable and testing branches. It's a little like the branches of Debian Linux http://wiki.linuxquestions.org/wiki/Debian#Stable.2C_Testing.2C_Unstable.2C_and_Experimental web2py probably don't need so many branch

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

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 8:01 PM, Luther Goh Lu Feng wrote: > > To clarify, what I am saying is, no change to current release system, > except to label stable and testing branches. It's a little like the > branches of Debian Linux > http://wiki.linuxquestions.org/wiki/Debian#Stable.2C_Testing.2C_Unsta

[web2py] syntax checker won't let me save this

2010-12-22 Thread rāma
I tried to construct a validator: db.sender.keywords.requires = IS_IN_DB(db( db.auth_user.id=user_id ), db.userkeywords.keyword) I was able to do this in previous versions. Please help.

Re: [web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-12-22 Thread pbreit
I added instructions for SSL: http://web2pyslices.com/main/slices/take_slice/110 Seems to work OK.

Re: [web2py] Re: Sharing sessions and authentication

2010-12-22 Thread ron_m
Would this key have to be the same in all applications in your case? auth.settings.hmac_key = 'sha512:63f0a5e7-e395-4a28-8488-cf072a0464b6' # before define_tables() not the same as this particular one but consistent across all of the applications you have since you are sharing your auth_user

Re: [web2py] Re: Sharing sessions and authentication

2010-12-22 Thread ron_m
Would this key have to be the same in all applications? from my last post doesn't read correctly. I mean the same hmac_key in your set of shared applications. Sorry the deleted posts showed up as duplicates, the web app was showing error #316 post failed and saying try again but then they were

[web2py] Re: Great summary of web2py

2010-12-22 Thread mdipierro
+1 I think we should go after PHP, ASP, JSP On Dec 22, 9:16 pm, VP 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 abo

  1   2   >