Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-04-04 Thread Dima Barsky
Hi Mark, I'm on holiday now until the 13th of April. When I get back I'll continue working on the gluon package. There is not much to document there, it's quite straightforward. If you want to help you could start with developing the setup.py file for the gluon module. You can find the

[web2py] Re: Errors with the new version

2010-04-04 Thread hamdy.a.farag
I also have some comments on the latest version in repo in auth.login() captcha = self.settings.login_captcha or self.settings.captcha this's had a bad effect for web applications having the login form in the index page This made the captcha appear in that form , the thing that had a bad effect

[web2py] Re: concurrency problem

2010-04-04 Thread Sven
Thanks for your thoughts. @Yarko the locking code snippet seems useful. In this case, however, my users never updated the same record. The problem was the locking of the complete database each time two users updated or created 'their own' records. @Beerc PostgreSQL did the trick, thanks :) The

[web2py] Re: Errors with the new version

2010-04-04 Thread hamdy.a.farag
There's also another suggestion The crud.update() forms doesn't display the 'record deleted message' flash message in case of deleting records instead it displays 'record updated' in function update of the Crud class I suggest adding : if form.accepts(request.post_vars, _session,

[web2py] Unicode characters problem (Dreamhost installation)

2010-04-04 Thread Alexei Vinidiktov
Hello, I've deployed the latest version of web2py on Dreamhost using wsgi. I'm using a custom installation of Python 2.5. The web2py installation seems to work fine, but there's one problem. I've created a test program using the qooxdoo web application framework for the GUI part which mimics

[web2py] Re: concurrency problem

2010-04-04 Thread Yarko Tymciurak
On Apr 4, 5:04 am, Sven svenstrin...@gmail.com wrote: Thanks for your thoughts. @Yarko the locking code snippet seems useful. In this case, however, my users never updated the same record. The problem was the locking of the complete database each time two users updated or created 'their own'

[web2py] args problem in 1.76.5

2010-04-04 Thread annet
After upgrading to web2py version 1.76.5 one of the functions I defined no longer works. I defined a table newsmonth: db.define_table('newsmonth', db.Field('number',type='integer',length=2,default='',notnull=True), db.Field('month',length=14,default='',notnull=True,unique=True),

[web2py] args problem in 1.76.5

2010-04-04 Thread annet
After upgrading to web2py version 1.76.5 one of the functions I defined no longer works. I defined a table newsmonth: db.define_table('newsmonth', db.Field('number',type='integer',length=2,default='',notnull=True), db.Field('month',length=14,default='',notnull=True,unique=True),

[web2py] Re: args problem in 1.76.5

2010-04-04 Thread annet
In the view, when I replace: td {{=A(month.month,_href=URL(r=request,args=[month.number,month.month]))}} /td with: td {{=A(month.maand,_href=URL(r=request,args=[3,'maart_2010']))}} /td The function works. When I replace the underscore with a space: td

[web2py] Re: args problem in 1.76.5

2010-04-04 Thread annet
In the view, when I replace: td {{=A(month.month,_href=URL(r=request,args=[month.number,month.month]))}} /td with: td {{=A(month.month,_href=URL(r=request,args=[3,'maart_2010']))}} /td The function works. When I replace the underscore with a space: td

[web2py] how use python 2.6 ?

2010-04-04 Thread Sky
Hi, I've installed Python 2.6 and web2py in my windows. but web2py runs under python 2.5 ( i didn't installed 2.5 ), so my installed site-packages are not available for web2py. any one can help me ? Regards -- You received this message because you are subscribed to the Google Groups

Re: [web2py] how use python 2.6 ?

2010-04-04 Thread Kuba Kucharski
Hi Web2py-binary-runs-it's-own-python.-you-have-to-use-source-version. On 4 Apr 2010 15:08, Sky hmonfa...@gmail.com wrote: Hi, I've installed Python 2.6 and web2py in my windows. but web2py runs under python 2.5 ( i didn't installed 2.5 ), so my installed site-packages are not available for

Re: [web2py] how use python 2.6 ?

2010-04-04 Thread Vasile Ermicioi
I use python 2.6 too, use source distribution instead of windows one http://www.web2py.com/examples/static/web2py_src.zip it runs without problems on my pc (windows xp) -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send

[web2py] Re: Unicode characters problem (Dreamhost installation)

2010-04-04 Thread Alexei Vinidiktov
I don't know what I have done, but my test apps have stopped working at all on Dreamhost. The default apps still work fine. Here's the ticket I'm getting when trying to load any app in the browser: Error traceback Traceback (most recent call last): File

[web2py] Re: Unicode characters problem (Dreamhost installation)

2010-04-04 Thread Alexei Vinidiktov
I seem to have used the wrong old version of web2py, but even now that I've installed the new version, I'm getting a different error: Traceback (most recent call last): File /home/alvinru/phonetizer.com/gluon/restricted.py, line 62, in restricted File

[web2py] Friendly URLs

2010-04-04 Thread Francisco Costa
Hello! I've installed WordpressClone http://web2py.com/appliances/default/show/36 and i would like to have each post with a friendly url instead of http://domain/blog/default/post/7 have something like http://domain/welcome-to-pypress/ Thank you -- You received this message because you are

[web2py] cx_Oracle segfaults

2010-04-04 Thread Gabriele Alberti
Hello, I have been using web2py with oracle since few months now. With small loads everything works fine, but when the load grows, often the python process gets killed with a segfault; after few headaches to understand what was going on, I think I spotted the problem and tried a solution that

[web2py] Re: Errors with the new version

2010-04-04 Thread mdipierro
Can you please email me a patch or the updated tools.py? Thanks Massimo On Apr 4, 5:07 am, hamdy.a.farag hamdy.a.fa...@inbox.com wrote: There's also another suggestion The crud.update() forms doesn't display the 'record deleted message' flash message in case of deleting records instead it

[web2py] Re: args problem in 1.76.5

2010-04-04 Thread mdipierro
The problem is that web2py does not like spaces '%20' in url and replaces them with underscore. On Apr 4, 7:20 am, annet annet.verm...@gmail.com wrote: After upgrading to web2py version 1.76.5 one of the functions I defined no longer works. I defined a table newsmonth:

[web2py] Re: Unicode characters problem (Dreamhost installation)

2010-04-04 Thread mdipierro
where d you get it. I do not think this is a new version. On Apr 4, 10:02 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: I seem to have used the wrong old version of web2py, but even now that I've installed the new version, I'm getting a different error: Traceback (most recent call

[web2py] Re: Friendly URLs

2010-04-04 Thread mdipierro
that is a very old app. I needs some work. On Apr 4, 10:16 am, Francisco Costa m...@franciscocosta.com wrote: Hello! I've installed WordpressClonehttp://web2py.com/appliances/default/show/36 and i would like to have each post with a friendly url instead ofhttp://domain/blog/default/post/7have

Re: [web2py] Re: Friendly URLs

2010-04-04 Thread Thadeus Burgess
Francisco, Take a look at some other existing blog examples. mengu's blog - http://github.com/mengu/blog currently running on mengu.net thadeus blogitizor - http://code.google.com/p/blogitizor/ currently running on thadeusb.com -Thadeus On Sun, Apr 4, 2010 at 12:03 PM, mdipierro

[web2py] Re: Errors with the new version

2010-04-04 Thread Kenneth
Hello Massimo, last night I sent you a mail about my problem with the new version, did you get it? Just wanted to check if you got it. Kenneth On Apr 4, 7:37 pm, mdipierro mdipie...@cs.depaul.edu wrote: Can you please email me a patch or the updated tools.py? Thanks Massimo On Apr 4,

[web2py] Re: Friendly URLs

2010-04-04 Thread Francisco Costa
Thank you very much for the examples. I will take a look at the source code. On Apr 4, 6:09 pm, Thadeus Burgess thade...@thadeusb.com wrote: Francisco, Take a look at some other existing blog examples. mengu's blog -http://github.com/mengu/blog currently running on mengu.net thadeus

[web2py] Re: args problem in 1.76.5

2010-04-04 Thread DenesL
It should be noted that there was some work done towards enabling an alternate setting that would allow the developer access to the unchanged (raw) args but it has not been finished yet. This would allow any character set in args which I believe mainly concerns non-English speaking

[web2py] Re: webserver slow, misreported

2010-04-04 Thread Michael Toomim
I see, thank you. I want to measure the web server's response time when I deploy this on turk... Unfortunately the rocket log does not report time to serve a request. Do you think it is easy to get that information from rocket? Do you store the start and stop times for each request? I see

[web2py] Re: webserver slow, misreported

2010-04-04 Thread Michael Toomim
You are both right that I do not know where the slowness is coming from. My goal is to measure it so that I can narrow in on the problem. So far I know that it is external to web2py because it does not show up in httpserver.log, so my reasoning is to look at rocket which wraps the web2py part.

Re: [web2py] Re: args problem in 1.76.5

2010-04-04 Thread Jonathan Lundell
On Apr 4, 2010, at 4:37 PM, DenesL wrote: It should be noted that there was some work done towards enabling an alternate setting that would allow the developer access to the unchanged (raw) args but it has not been finished yet. This would allow any character set in args which I believe

[web2py] Re: webserver slow, misreported

2010-04-04 Thread mdipierro
Let us know if you discover anything or if we can help with tests. Can anybody else reproduce this problem? On Apr 4, 6:46 pm, Michael Toomim too...@gmail.com wrote: You are both right that I do not know where the slowness is coming from.  My goal is to measure it so that I can narrow in on the

Re: [web2py] Re: Unicode characters problem (Dreamhost installation)

2010-04-04 Thread Alexei Vinidiktov
I got it from web2py.com. I'm sure that I've now installed web2py 1.76.5. The strange thing is an older version that used to work fine before I installed 1.76.5 is now giving me the same error message as the 1.76.5 one. The oldest of all three though seems to work but not entirely (see my

[web2py] Re: Unicode characters problem (Dreamhost installation)

2010-04-04 Thread mdipierro
this is a very strange error, as if one of the system files were corrupted. I would remover everything web2py re-unzip it and copy your applications back in applications. Massimo On Apr 4, 7:28 pm, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: I got it from web2py.com. I'm sure that I've

[web2py] Re: cx_Oracle segfaults

2010-04-04 Thread mdipierro
Thank you Gabriele, is should definitively be threaded=False and not True since web2py does not share connection between threads. Yet, this is already the default. You must be running an older version of web2py.You should upgrade. Massimo On Apr 4, 11:33 am, Gabriele Alberti

[web2py] How to use virtualfields?

2010-04-04 Thread Iceberg
Hi there, I search virtualfields in http://www.web2py.com/book but found nothing. So I read this post instead: https://groups.google.com/group/web2py/browse_frm/thread/d59ee3d6c2e6d836?tvc=1 But I found that db.table.virtualfields.add(ComputedFields()) doesn't work. Only this work:

Re: [web2py] How to use virtualfields?

2010-04-04 Thread Thadeus Burgess
I think its db.table.virtualfields.append() -Thadeus On Sun, Apr 4, 2010 at 10:51 PM, Iceberg iceb...@21cn.com wrote: Hi there, I search virtualfields in http://www.web2py.com/book but found nothing. So I read this post instead:  

[web2py] Re: webserver slow, misreported

2010-04-04 Thread mdipierro
Some more questions: how much ram? can you check memory usage? A memory leak may cause slowness. are you using cron? when cron starts it may spike memory usage. are you experience the slowness from localhost or from remote machines? On Apr 4, 6:46 pm, Michael Toomim too...@gmail.com wrote:

[web2py] Re: How to use virtualfields?

2010-04-04 Thread Iceberg
Actually I did notice that typo, I tried the append() already, my code is: class VirtualFields: def profit(self): return self.Orders.income - self.Orders.cost db.Orders.virtualfields.append(VirtualFields()) this line runs fine, but later when I need to access a virtual field, an

[web2py] Re: How to use virtualfields?

2010-04-04 Thread mdipierro
I just did this as a test and it worked: db=DAL('sqlite:memory:') db.define_table('test',Field('quantity','integer')) class VirtualFields(): ... def profit(self): return self.test.quantity*100 db.test.virtualfields.append(VirtualFields()) db.test.insert(quantity=5) 1

[web2py] Re: webserver slow, misreported

2010-04-04 Thread Michael Toomim
I started using apache with mod_wsgi, and now it's fast! So this indicates it's a problem that only occurs when using rocket or cherrypy, but again I'm only measuring it with firebug in my browser. I have 768MB of ram, ~500MB free. I use cron for @reboot only. I only run it on a remote machine

[web2py] Re: concurrency problem

2010-04-04 Thread Iceberg
Yarko, you suggest using a full-featured db instead of sqlite. But sqlite's internal reader/writer lock is one thing, the overwrite problem is another. No matter what kind of db we are using, we still need to deal with the overwrite problem. Scenario: 9:00am clerk Adam read the balance of a

[web2py] Re: concurrency problem

2010-04-04 Thread mdipierro
This is a good point. I do not think this should be dealt with at the DB level because, if I understand it is an app workflow problem. If I understand For every user there are two HTTP requests (one to generate the update form, one to submit the form) and each is executed in its own

[web2py] Re: how use python 2.6 ?

2010-04-04 Thread Sky
thanks for your help!. it worked ! On Apr 4, 6:11 pm, Vasile Ermicioi elff...@gmail.com wrote: I use python 2.6 too, use source distribution instead of windows onehttp://www.web2py.com/examples/static/web2py_src.zip it runs without problems on my pc (windows xp) -- You received this