[web2py] Re: Memory usage inspection

2010-04-09 Thread David Zejda
Hi thanks for advices, I'll check it using guppy-heapy in appadmin. Yes, the benefits of caching are obvious. My project has one central table with about 100 fields representing 'user' and about 100 other tables. To allow rich relations and searching and other interaction among users, without cach

[web2py] Re: Old versions of web2py

2010-04-09 Thread mdipierro
I need to be educated. Here is my problem. I gave myself a rule of tagging releases as 1.XX.YY. The fact is that I commit before I build the binaries. It occasionally happens that I commit 1.XX.YY, build the binary and then I discover a problem (for example a file was missing because I forgot to h

[web2py] Re: LOAD and reload

2010-04-09 Thread mdipierro
create js function function update_myrecords() {web2py_component('{{=URL(r=request,c='default',f='show_foods')}}','mystuff'); }; then serverside if form.accepts(...): response.headers['web2py-component-command']='update_myrecords()' return form On Apr 9, 7:12 pm, Avik Basu wrote: > Say

[web2py] Re: google app engine, file size limits

2010-04-09 Thread mdipierro
This is fantastic! On Apr 9, 5:31 pm, howesc wrote: > Hi all, > > I implemented this today, and learned some things.  I posted my > version of the upload handler as a comment to the slice > at:http://www.web2pyslices.com/main/slices/take_slice/63 > > enhancements in this version: >  * parse the

[web2py] Re: Old versions of web2py

2010-04-09 Thread Yarko Tymciurak
On Apr 9, 7:31 pm, Richard wrote: > alternatively you could check out specific versions from the mercurial > repository:http://code.google.com/p/web2py/source/checkout I just browsed through the comments, pages of commits to find 3 comments that say 1.76.4. I assume these are the release (and th

[web2py] Re: Old versions of web2py

2010-04-09 Thread Richard
alternatively you could check out specific versions from the mercurial repository: http://code.google.com/p/web2py/source/checkout On Apr 10, 4:25 am, Kenneth wrote: > Is there a place where I could download older versions of web2py? > Source version. > > I get still problems with the new versi

[web2py] Re: LOAD and reload

2010-04-09 Thread Avik Basu
Say I have a form in component A and a records display in component B. Both are loaded on a single page. How can I update the records display when the form (SQLFORM) accepts? On Apr 9, 6:19 pm, mdipierro wrote: > Instead of > {{=LOAD('default','show_foods',ajax=True)}} > > do > > web2py_compon

[web2py] Re: google app engine, file size limits

2010-04-09 Thread howesc
Hi all, I implemented this today, and learned some things. I posted my version of the upload handler as a comment to the slice at: http://www.web2pyslices.com/main/slices/take_slice/63 enhancements in this version: * parse the blob_info object out of the request, no more dummy request * integr

[web2py] Re: Old versions of web2py

2010-04-09 Thread Yarko Tymciurak
On Apr 9, 5:01 pm, mdipierro wrote: > I tag them 1.XX.YY but I do not put the R in front. I use in fact the > logs to manually extract important changes and edit the README files > used to build the changelog above. Not completed automated yet. hg tags are stored in a file caleed ".hgtags" ---

[web2py] Re: LOAD and reload

2010-04-09 Thread mdipierro
Instead of {{=LOAD('default','show_foods',ajax=True)}} do web2py_component('{{=URL(r=request,c='default',f='show_foods')}}','mystuff') You can also have click me to reload On Apr 9, 5:07 pm, Avik Basu wrote: > Hi, > > Is there a way to reload a component that has been loaded with the > LOAD f

[web2py] LOAD and reload

2010-04-09 Thread Avik Basu
Hi, Is there a way to reload a component that has been loaded with the LOAD function without sending a request back to the server? For example, I would like to reload a list of foods whenever the data has been altered by the user, but I would like only the component to reload instead of the whole

[web2py] Re: Old versions of web2py

2010-04-09 Thread mdipierro
I tag them 1.XX.YY but I do not put the R in front. I use in fact the logs to manually extract important changes and edit the README files used to build the changelog above. Not completed automated yet. On Apr 9, 4:25 pm, Yarko Tymciurak wrote: > On Apr 9, 4:16 pm, mdipierro wrote: > > > I did f

[web2py] Re: Memory usage inspection

2010-04-09 Thread mdipierro
If you have multiple processes make sure all of them call cache.ram.clear() or consider using cache.disk(). Can you give us some data about performance benefits? If you discover anything about the cause for this problem, please keep us posted. Massimo On Apr 9, 4:28 pm, David Zejda wrote: > Hi

Re: [web2py] Memory usage inspection

2010-04-09 Thread Thadeus Burgess
heapy guppy can do this. If you install it, a later version of web2py appadmin has cache statistics in it using guppy-heapy, it can give you an overall feel for what kinds of objects are taking up so much memory. There are lots of other factors, such as what webserver, how are you executing web2p

[web2py] Memory usage inspection

2010-04-09 Thread David Zejda
Hi, I'm aggresively caching nearly everything.. it helped to reduce database queries and increase performance in result. But I have another problem now - memory usage slowly grows, during a day my server eats about 2 GB. If I flush cache by clear() function, it does not help much. Something it's l

[web2py] Re: Old versions of web2py

2010-04-09 Thread Yarko Tymciurak
On Apr 9, 4:16 pm, mdipierro wrote: > I did follow the advice you gave me some time ago: > > https://www.web2py.com/examples/default/changelog Ah - yes, to reverse the order of release comments (for most recent at the top); very nice... thanks I don't know what your personal process is for

[web2py] Re: Old versions of web2py

2010-04-09 Thread mdipierro
I did follow the advice you gave me some time ago: https://www.web2py.com/examples/default/changelog On Apr 9, 2:11 pm, Yarko Tymciurak wrote: > On Apr 9, 2:09 pm, Yarko Tymciurak > wrote: > > > Massimo: > > > I don't see that you have checkins in your Makefile, but if you made a > > "release"

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-09 Thread mdipierro
will look into this. On Apr 9, 2:14 pm, Thadeus Burgess wrote: > I do give it a name. >  In this case the name is 'current_R'. > > I just typed the line of code that caused the error to help you narrow > it down, I am sorry I did not copy/paste instead of quickly typing it. > The code is correct,

Re: [web2py] Re: Our membership is steadily growing!

2010-04-09 Thread Jason Brower
I would love that! - Original message - > Time to start planning web2pycon? :) > > On Apr 9, 12:58 pm, mdipierro wrote: > > Yes. Thank you everybody here. I can tell from a number of informal > > indicators that more and more people are looking into web2py and like > > it. Project for the

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-09 Thread Thadeus Burgess
I do give it a name. In this case the name is 'current_R'. I just typed the line of code that caused the error to help you narrow it down, I am sorry I did not copy/paste instead of quickly typing it. The code is correct, I don't edit anything when I test it on dal.py By the way, the trackback s

[web2py] Re: Old versions of web2py

2010-04-09 Thread Yarko Tymciurak
On Apr 9, 2:09 pm, Yarko Tymciurak wrote: > Massimo: > > I don't see that you have checkins in your Makefile, but if you made a > "release"  that used your "mdp" entry - that is, after hg commit, but > before hg push, add something like this in what you do: > >   hg tag $(cat VERSION | python -c '

[web2py] Re: Old versions of web2py

2010-04-09 Thread Yarko Tymciurak
Massimo: I don't see that you have checkins in your Makefile, but if you made a "release" that used your "mdp" entry - that is, after hg commit, but before hg push, add something like this in what you do: hg tag $(cat VERSION | python -c 'import sys; print sys.stdin.readline().split()[1]') (o

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-09 Thread mdipierro
This >db.table.field.sum().with_alias() is invalid syntax. You need to give it a name db.table.field.sum().with_alias('thesum') On Apr 9, 1:43 pm, Thadeus Burgess wrote: > db.table.field.sum().with_alias() > > Traceback (most recent call last): >   File "/home/tburgess/Applications/web2py/gluo

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-09 Thread Thadeus Burgess
db.table.field.sum().with_alias() Traceback (most recent call last): File "/home/tburgess/Applications/web2py/gluon/restricted.py", line 173, in restricted exec ccode in environment File "/home/tburgess/Applications/web2py/applications/pms/controllers/default.py", line 305, in File "/h

[web2py] Re: Old versions of web2py

2010-04-09 Thread mdipierro
http://web2py.com/examples/static//web2py_src.zip is one of 1.67.2: web2py_osx.zip web2py_src.zip web2py_win.zip 1.68.2: web2py_osx.zip web2py_src.zip web2py_win.zip 1.71.2: web2py_osx.zip web2py_src.zip web2py_win.zip 1.72.3: web2py_osx.zip web2py_src.zip web2py_win.zip 1.73.1: web2

[web2py] Re: Our membership is steadily growing!

2010-04-09 Thread mdipierro
We could organize a workshop here in Chicago for the first week of September. I can have conference rooms for free before the start of the quarter. I can also provide university discount rates http://discounts.depaul.edu/travel/hotels.html we need to setup a web site to that people can pre-registe

[web2py] Old versions of web2py

2010-04-09 Thread Kenneth
Is there a place where I could download older versions of web2py? Source version. I get still problems with the new version and can´t understand why. So I thought that by trying to upgrade one version a time I could maybe find out whats the problem. Kenneth -- To unsubscribe, reply using "r

[web2py] Re: Our membership is steadily growing!

2010-04-09 Thread mr.freeze
Time to start planning web2pycon? :) On Apr 9, 12:58 pm, mdipierro wrote: > Yes. Thank you everybody here. I can tell from a number of informal > indicators that more and more people are looking into web2py and like > it. Project for the summer: manual 3rd edition. > > On Apr 9, 11:59 am, cesmiga

[web2py] Re: Yet another site to add to the list of sites running web2py....

2010-04-09 Thread mdipierro
I will show it to my son when he is back from school. :-) On Apr 9, 10:25 am, Jason Brower wrote: > http://whodunitballoons.com > I have had a lot of freedom making this one.  I am so excited about it I > wanted to show it before it was done.  You guys can keep an eye on it in > the future if you

[web2py] Re: Our membership is steadily growing!

2010-04-09 Thread mdipierro
Yes. Thank you everybody here. I can tell from a number of informal indicators that more and more people are looking into web2py and like it. Project for the summer: manual 3rd edition. On Apr 9, 11:59 am, cesmiga wrote: > All: > > We know what a wonderful web framework Web2Py is and I just looke

[web2py] Re: Yet another site to add to the list of sites running web2py....

2010-04-09 Thread Yarko Tymciurak
How wonderfully whimsical (and appropriate for the business) Of course, for here, I hope you'll have something to say about developing this ;-) On Apr 9, 11:05 am, Thadeus Burgess wrote: > That is cool! > > -Thadeus > > On Fri, Apr 9, 2010 at 10:25 AM, Jason Brower wrote: > >http://whodunitball

[web2py] Our membership is steadily growing!

2010-04-09 Thread cesmiga
All: We know what a wonderful web framework Web2Py is and I just looked at our group membership. Our membership numbers are growing steadily and I can't wait till we hit the threshold of rapid acceptance. This is really great since Web2Py does not have the marketing other Python web frame works

Re: [web2py] Yet another site to add to the list of sites running web2py....

2010-04-09 Thread Thadeus Burgess
That is cool! -Thadeus On Fri, Apr 9, 2010 at 10:25 AM, Jason Brower wrote: > http://whodunitballoons.com > I have had a lot of freedom making this one.  I am so excited about it I > wanted to show it before it was done.  You guys can keep an eye on it in > the future if you like. > My siste

[web2py] Helpful web2py gedit snippets

2010-04-09 Thread Thadeus Burgess
Just some python snippets for html, to be used with web2py templates. { -- {{}} = -- {{=}} if -- {{ if : pass }} for -- {{ for in : pass }} -Thadeus -- To unsubscribe, reply using "remove me" as the subject. html.web2py.snippets.gedit.tar.gz Description: GNU Zip compressed data

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread carlo
you meant to avoid 404 page? mmh, It does not seem to work..maybe I misunderstood. carlo On 9 Apr, 17:07, mdipierro wrote: > You can set > > auth.settings.on_failed_authorization = URL(...) -- To unsubscribe, reply using "remove me" as the subject.

Re: [web2py] Re: web2py URLs

2010-04-09 Thread Jonathan Lundell
On Apr 9, 2010, at 8:25 AM, Thadeus Burgess wrote: > Just as long as its a variable we have to flag on, and web2py > continues to work like it always has :) That's the plan. > > -Thadeus > > > > > > On Fri, Apr 9, 2010 at 10:17 AM, Jonathan Lundell wrote: >> On Apr 9, 2010, at 6:16 AM, De

[web2py] DAL for ldap

2010-04-09 Thread winti
Hello, I want to build a user interface for some tasks in a ldap backend (eDirectory). Actually i am using the python ldap module within web2py. This is working, but i miss some features from the DAL. I was using web2py in some projects and was surprised how straight forward things can be implement

[web2py] Yet another site to add to the list of sites running web2py....

2010-04-09 Thread Jason Brower
http://whodunitballoons.com I have had a lot of freedom making this one. I am so excited about it I wanted to show it before it was done. You guys can keep an eye on it in the future if you like. My sister does balloons, and really cool ones at that. We are now starting to finallize the small des

Re: [web2py] Re: web2py URLs

2010-04-09 Thread Thadeus Burgess
Just as long as its a variable we have to flag on, and web2py continues to work like it always has :) -Thadeus On Fri, Apr 9, 2010 at 10:17 AM, Jonathan Lundell wrote: > On Apr 9, 2010, at 6:16 AM, DenesL wrote: > >> I like the semicolon idea. >> But doesn't it imply changing web2py, anywher

Re: [web2py] Re: web2py URLs

2010-04-09 Thread Jonathan Lundell
On Apr 9, 2010, at 8:09 AM, mdipierro wrote: > Right not if there is a ; the URL does not pass validation so ; is > simply not allowed. We can write this so that if ; is present the new > method for parsing is used and urls generated by URL would always > follow the new convention. Old convention

Re: [web2py] Re: web2py URLs

2010-04-09 Thread Jonathan Lundell
On Apr 9, 2010, at 6:16 AM, DenesL wrote: > I like the semicolon idea. > But doesn't it imply changing web2py, anywhere where args and vars are > used, like the URL function?. The URL function, yes, because it's basically the rewrite-out handler. Nobody else should care, because the fields have

[web2py] Re: small patch for 1.76.5

2010-04-09 Thread mdipierro
thank you this was already fixed in trunk. I will post a new version soon. On Apr 9, 8:43 am, "ont.rif" wrote: > Easy and small fixes for newest web2py. This is generated with 'git > format-patch -1' command. > > From: ont.rif > Date: Fri, 9 Apr 2010 20:28:03 +0700 > Subject: [PATCH] (f) fix cod

[web2py] Re: web2py URLs

2010-04-09 Thread mdipierro
Right not if there is a ; the URL does not pass validation so ; is simply not allowed. We can write this so that if ; is present the new method for parsing is used and urls generated by URL would always follow the new convention. Old convention would still work. I do not see any ambiguity. On Apr

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread mdipierro
You can set auth.settings.on_failed_authorization = URL(...) On Apr 9, 7:02 am, Yarko Tymciurak wrote: > On Apr 9, 6:07 am, carlo wrote: > > > I think I have found the problem: > > :-)  Yes, you did! > > > > > in the models folder I had 3 files: db.py, lastdb.py, menu.py. > > Lastdb.py was an o

[web2py] Re: when send email containing Chinease characters with tools.Mail, Mojibake appears

2010-04-09 Thread mdipierro
This was already fixed in trunk a couple of weeks ago. Can you please check it is done correctly? On Apr 9, 5:52 am, szimszon wrote: > See that: > > http://groups.google.com/group/web2py/browse_frm/thread/6ff484a8d651a... > > at line 285 in gluon/tools.py. > I changed the >                 attach

Re: [web2py] Re: How to by-pass user/login page for authentication

2010-04-09 Thread Thadeus Burgess
>From any controller. return dict(auth_form=auth()) Then you can just {{=auth_form}} in your controllers view. -Thadeus On Fri, Apr 9, 2010 at 7:19 AM, Rohan wrote: > Thanks Yarko, > > I don't want to use auth.requires_login() to index function as it will > lead the user to login page. >

[web2py] [python2.4] small patch for 1.76.5

2010-04-09 Thread ont.rif
Easy and small fixes for newest web2py. This is generated with 'git format-patch -1' command. From: ont.rif Date: Fri, 9 Apr 2010 20:28:03 +0700 Subject: [PATCH] (f) fix code to work with python 2.4 --- tools.py | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git

[web2py] Re: web2py URLs

2010-04-09 Thread DenesL
I like the semicolon idea. But doesn't it imply changing web2py, anywhere where args and vars are used, like the URL function?. On Apr 8, 2:22 pm, mdipierro wrote: > I think if ; is present it be used by default to delimit the args > since there cannot be confusion there > > /a/c/f.ext;a0/a1/a2

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread carlo
thank you, I knew all you said but I did not focus enough on the "double" model issue oops! About the 404 error page your link is broken but browsing the manual I think you pointed me to the routes_onerror solution. Thank you for bridging the execution stream clearly, carlo On 9 Apr, 14:02, Ya

[web2py] Re: How to by-pass user/login page for authentication

2010-04-09 Thread Rohan
Thanks Yarko, I don't want to use auth.requires_login() to index function as it will lead the user to login page. > another is to point auth() to get > login form / action from your more involved controller function, which > also has your home page (and login form, of course). Can you please ela

[web2py] Re: How to by-pass user/login page for authentication

2010-04-09 Thread Yarko Tymciurak
On Apr 9, 5:46 am, Rohan wrote: > Hi All, > >   I am a newbie with web2py. Basically I want to by-pass the user's > visit to user/login page. My home page will have the login fields like > twitter and I am planning to collect username/email and password from > login screen and pass it to web2py'

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread Yarko Tymciurak
On Apr 9, 6:07 am, carlo wrote: > I think I have found the problem: :-) Yes, you did! > > in the models folder I had 3 files: db.py, lastdb.py, menu.py. > Lastdb.py was an old copy of db.py but, as far as I remeber, there was > no "auth.settings.actions_disabled.append('register')" in it. > > Af

[web2py] How to by-pass user/login page for authentication

2010-04-09 Thread Rohan
Hi All, I am a newbie with web2py. Basically I want to by-pass the user's visit to user/login page. My home page will have the login fields like twitter and I am planning to collect username/email and password from login screen and pass it to web2py's default authentication service for verificat

[web2py] Re: Problem with MANY-MANY relationship

2010-04-09 Thread Ishbir
That seems to be a good idea... I would love to see this in the next release. On Apr 8, 9:41 pm, Thadeus Burgess wrote: > Ive sent emails on the list twice, and one email to you personally > about this. I have not implemented it since it never received any > feedback. > > There will be a 'pre' an

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread carlo
I think I have found the problem: in the models folder I had 3 files: db.py, lastdb.py, menu.py. Lastdb.py was an old copy of db.py but, as far as I remeber, there was no "auth.settings.actions_disabled.append('register')" in it. After I deleted lastdb.py it worked as expected: I think that lastd

[web2py] Re: when send email containing Chinease characters with tools.Mail, Mojibake appears

2010-04-09 Thread szimszon
See that: http://groups.google.com/group/web2py/browse_frm/thread/6ff484a8d651a935/edb931e024aaff32?lnk=gst&q=when+send+email#edb931e024aaff32 at line 285 in gluon/tools.py. I changed the attachment.attach(MIMEText.MIMEText(text)) line to attachment.attach(MIMEText.MIMEText(text,_

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread carlo
thank you all. Thadeus: in my model below the place Auth tables are created; Massimo: no I do not have my register action, everything is web2py Auth out of the box. Yarko: Definitely not routes fault: I commented my routes but I still can access the registration page. I am down at debugging, lat

[web2py] Re: Beginners Advice

2010-04-09 Thread AndyBuchan
Massimo, Thank you for the guidance on structuring the application, that helps a lot. However, it seems to me that there is no scope for creating a deeper hierarchy than Application/Controller/Action, is this correct? Would this be an inherent part of any web framework which does the URL mapping f