[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-24 Thread Paul Gerrard
Hi all, Sounds like there's a little momentum in this :-) Here's what I can contribute to the party: 1. Part of the test management tool I am writing is a 'case management' facility. It is basic, but it supports multiple case types. Cases can be issues/incidents/defects, to do/actions, and

[web2py] Auth and CAS

2010-08-24 Thread huimies
Hi, What are the latest in integrating Auth with CAS? I found this bit in the auth code: # use a central authentication server cas = self.settings.login_form cas_user = cas.get_user() if cas_user: cas_user[passfield] = None

Re: [web2py] Re: Web2py and threads

2010-08-24 Thread Michele Comitini
2010/8/24 mdipierro mdipie...@cs.depaul.edu: P.S. In the end the bottle neck is ALWAYS database access. true! many driver implementations do not release the GIL properly on a blocking call. Anyway a well designed db would avoid the problem entirely. Do you know if anyone tried web2py on pypy

[web2py] updated ru-ru.py file

2010-08-24 Thread Alexey Nezhdanov
Hi. While writting an application bumped into partial translation of russian language. Updated file attached. It is from welcome.py application, no my app specific strings present. Regards Alexey # coding: utf8 { 'update is an optional expression like field1=\'newvalue\'. You cannot update or

Re: [web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-24 Thread Kenneth Lundström
Hello Paul, I´d be happy helping putting up a Linux box for web2py. I use CentOS as my distribution, but if needed it should not be a big problem setting it up on Ubuntu either. Kenneth Hi all, Sounds like there's a little momentum in this :-) Here's what I can contribute to the party:

Re: [web2py] Re: Multiple submit not working on component

2010-08-24 Thread Miguel Lopes
Thank you! Importantly, although it is very convenient to have these values serialized, it is simple to get around this jQuery imposed limitation (bug). Miguel On Tue, Aug 24, 2010 at 4:02 AM, mdipierro mdipie...@cs.depaul.edu wrote: well... it is a bug not not in web2py, in jQuery:

[web2py] Re: Auth and CAS

2010-08-24 Thread huimies
I just found out that you can actually share sessions with other apps by adding this to your model: session.connect(request, response, masterapp='myapp') That solved the problem of having to authenticate separately for each app. On Aug 24, 11:26 am, huimies huim...@gmail.com wrote: Hi, What

Re: [web2py] Re: How to start server from within a python file ?

2010-08-24 Thread Stef Mientki
thanks Massimo, that's the solution, works under windows and probably will also work under Linux, I'll try. cheers, Stef On 24-08-2010 04:43, mdipierro wrote: It does not hang. It starts the server. The server blocks. If you want to start the server is a new thread: import os, sys, thread,

Re: [web2py] Re: My editor ...

2010-08-24 Thread Stef Mientki
On 24-08-2010 07:05, Johan wrote: Is it possible to post a free version of this _as it is_ ? Some of us my find it very useful. Or even, a version without the wysiwyg, if that's the problem. I'll do my best and will try to make a first alfa release by the end of the week. cheers, Stef

[web2py] Re: Web2py and threads

2010-08-24 Thread mdipierro
Somebody here did. They found it works but there was a proliferation of open files. We never got to the bottom of this. On Aug 24, 4:55 am, Michele Comitini michele.comit...@gmail.com wrote: 2010/8/24 mdipierro mdipie...@cs.depaul.edu: P.S. In the end the bottle neck is ALWAYS database access.

[web2py] Re: updated ru-ru.py file

2010-08-24 Thread mdipierro
thanks. in trunk soon. On Aug 24, 5:23 am, Alexey Nezhdanov snak...@gmail.com wrote: Hi. While writting an application bumped into partial translation of russian language. Updated file attached. It is from welcome.py application, no my app specific strings present. Regards Alexey  

[web2py] Re: Multiple submit not working on component

2010-08-24 Thread mdipierro
jquery serialize also does not support type=file. If you have a way to get around these, please let me know. On Aug 24, 5:35 am, Miguel Lopes mig.e.lo...@gmail.com wrote: Thank you! Importantly, although it is very convenient to have these values serialized, it is simple to get around this

[web2py] bg-bg.py (Bulgarian translation)

2010-08-24 Thread Vidul Petrov
# coding: utf8 { 'update is an optional expression like field1=\'newvalue\'. You cannot update or delete the results of a JOIN': 'обнови е незадължителен израз от вида field1=\'нова стойност\'. Резултатите от JOIN не могат да се обновяват или изтриват.', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d

[web2py] Re: bg-bg.py (Bulgarian translation)

2010-08-24 Thread Vidul Petrov
I've missed the closing curly bracket. On Aug 24, 4:21 pm, Vidul Petrov vidul.r...@gmail.com wrote: # coding: utf8 { 'update is an optional expression like field1=\'newvalue\'. You cannot update or delete the results of a JOIN': 'обнови е незадължителен израз от вида field1=\'нова

[web2py] Re: ajax post before ajax reload

2010-08-24 Thread KMax
I am glad you writing poems, but it is not the wall for comments :) This is for issue invetigation. On 24 авг, 07:33, KMax mkostri...@gmail.com wrote: This is link to examplehttp://web2py.ru/test Click on 'show me' then on any in link of list and update. Second update will reflect changes in

[web2py] Re: Web2py and threads

2010-08-24 Thread John Heenan
There is absolutely no need to serve up static web pages of a pure Python web app or a WGSI app with a separate thread. It is inefficient to use an inbuilt web server (of a Python web app) or Apache (if WGSI used) to serve up static web pages using separate threads. Both Lighttpd and Nginx are

[web2py] Simple Drop Down List with Auto Submit

2010-08-24 Thread David
I've been having a heck of a time trying to figure out how to make a simple drop down list from a table in the database. What I would like to do is have a drop down list populated by the table information and when a person selects that item from the drop down I want it to go to a page that pulls

[web2py] Re: IS_IMAGE() broke?

2010-08-24 Thread Joe Wakefield
I didn't think a tuple of one element needed a comma, but I tried your suggestion anyway. It had no effect on the issue. Can you verify that you do not experience the same issue? I made a sequence of screenshots demonstrating my test process: http://yfrog.com/e3compvj On Aug 23, 5:06 pm,

[web2py] Re: build a row base questionnaire

2010-08-24 Thread dlin
Thanks. But I found this method have a problem: when I show the score after submit, the form's random data is changed. And the form become empty, so the user can not see why he is wrong. On 8月23日, 上午10時31分, mdipierro mdipie...@cs.depaul.edu wrote: We need to clarify the goal. The goal is not to

[web2py] Re: Web2py and threads

2010-08-24 Thread pierreth
On 24 août, 01:20, mdipierro mdipie...@cs.depaul.edu wrote: In Java a serverlet, as far as I understand, is a class which conforms to some API that allows it to serve one http request. Each instance is executed in its own thread. Yes, but one instance can be executed by multiple threads at the

[web2py] Pagination manual bug?

2010-08-24 Thread dlin
ref: http://web2py.com/book/default/chapter/12#Pagination In following code, there is two problem: 1. The 'next' button always show. And the len(rows) always = 2 2. I don't know how to proper show the {{=rows}} without last row, I want to use the odd row background-color trick. I wrote simliar

[web2py] Slovak translation: sk-sk.py

2010-08-24 Thread Julius Minka
# coding: utf8 { 'update is an optional expression like field1=\'newvalue\'. You cannot update or delete the results of a JOIN': 'update je voliteľný výraz ako field1=\'newvalue\'. Nemôžete upravovať alebo zmazať výsledky JOINu', '%Y-%m-%d': '%d.%m.%Y', '%Y-%m-%d %H:%M:%S': '%d.%m.%Y %H:%M:%S',

Re: [web2py] Re: Web2py and threads

2010-08-24 Thread Michele Comitini
CPython threading is not useful for (real) parallel processing 1) thread (with GIL) is good for *cpu bound processes* that do not stop the main process while blocked by a system call (the intent is similar to select/poll) 2) for really using multiple cores/cpus use something more appropriated or

[web2py] Re: bg-bg.py (Bulgarian translation)

2010-08-24 Thread mdipierro
Please email to me as an attachment. Thanks. On Aug 24, 8:21 am, Vidul Petrov vidul.r...@gmail.com wrote: # coding: utf8 { 'update is an optional expression like field1=\'newvalue\'. You cannot update or delete the results of a JOIN': 'обнови е незадължителен израз от вида field1=\'нова

[web2py] Re: Simple Drop Down List with Auto Submit

2010-08-24 Thread mdipierro
Is is set expects a python list or dict. If you want to a dropdown from a list of records: def get_services() form = SQLFORM.factory(SQLField('name', label='Select a service', requires=IS_IN_DB(db,'service.name',orderby=db.service.name)) return dict(form=form) On Aug 24, 10:04 am,

[web2py] Re: Web2py and threads

2010-08-24 Thread mdipierro
On Aug 24, 10:36 am, pierreth pierre.thibau...@gmail.com wrote: On 24 août, 01:20, mdipierro mdipie...@cs.depaul.edu wrote: In Java a serverlet, as far as I understand, is a class which conforms to some API that allows it to serve one http request. Each instance is executed in its own

Re: [web2py] Re: Web2py and threads

2010-08-24 Thread Michele Comitini
2010/8/24 pierreth pierre.thibau...@gmail.com: Yes but a web2py server is running with only one process and using more web2py processes for serving the same web2py app will lead to synchronization problems. With processors having more and more cores, having a web server that cannot use them

[web2py] Re: Pagination manual bug?

2010-08-24 Thread Vidul Petrov
Not sure if this help, but you may want to take a look at this Pagination class: http://packages.python.org/web2py_utils/paginate.html On Aug 24, 6:37 pm, dlin dlin...@gmail.com wrote: ref:http://web2py.com/book/default/chapter/12#Pagination In following code, there is two problem: 1. The

[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-24 Thread mart
Well, this is all interesting :) After reading Michele's email, I just had to spend hours looking at Mercurial ( the like) as deeply as the day would let me (I'm on PTO, so I can do this). I thought I had a good idea about distributed version control system but, as it turns out, a few surprises

[web2py] Re: Web2py and threads

2010-08-24 Thread John Heenan
Can't we at least have an acknowledgement that it is not necessary for web2py to use a thread per request model and that web2py could instead use an event model? WSGI can be viewed as an evil conspiracy to force Python web apps to follow the Apache thread per request model! Also with Apace

Re: [web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-24 Thread Jonathan Lundell
On Aug 24, 2010, at 11:29 AM, mart wrote: Well, this is all interesting :) After reading Michele's email, I just had to spend hours looking at Mercurial ( the like) as deeply as the day would let me (I'm on PTO, so I can do this). I thought I had a good idea about distributed version control

[web2py] Re: Web2py and threads

2010-08-24 Thread John Heenan
Lee's 'The Problem with Threads' link is at http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf There is in Lee at http://ptolemy.eecs.berkeley.edu/%7Eeal/ John Heenan On Aug 25, 5:00 am, John Heenan johnmhee...@gmail.com wrote: Can't we at least have an acknowledgement that it is

Re: [web2py] Re: Line continuation problem in new parser?

2010-08-24 Thread Phyo Arkar
that wasn't supported hmm On Mon, Aug 23, 2010 at 6:47 PM, Michael Ellis michael.f.el...@gmail.comwrote: Probably didn't. I encountered it while trying to clean up some view code that was looking messy. I'm in favor of supporting line continuation if at all possible or, if not, at least

[web2py] Re: Web2py and threads

2010-08-24 Thread cjrh
On Aug 24, 9:00 pm, John Heenan johnmhee...@gmail.com wrote: Can't we at least have an acknowledgement that it is not necessary for web2py to use a thread per request model and that web2py could instead use an event model? Acknowledged.

Re: [web2py] Re: Web2py and threads

2010-08-24 Thread Michele Comitini
John, Tnx ... I'll keep this under my pillow ;-) 2010/8/24 John Heenan johnmhee...@gmail.com: Lee's 'The Problem with Threads' link is at http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf There is in Lee at http://ptolemy.eecs.berkeley.edu/%7Eeal/ John Heenan On Aug 25, 5:00 

Re: [web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-24 Thread Michele Comitini
Actually I would like to ask if bug tracking is used on web2py? Code is available from either (btw Massimo how do you keep those 2 in sync? just too curious :-) ): a) googlecode (with hg) b) launchpad (with bzr) both have some sort of bugtracking ticket system I do not know which one is best (or

[web2py] Re: Web2py and threads

2010-08-24 Thread mdipierro
I agree with you. web2py does not care. It is the web server that decides. The question that started this thread was about the built-in web server and it does follow the thread model. On Aug 24, 2:00 pm, John Heenan johnmhee...@gmail.com wrote: Can't we at least have an acknowledgement that it

[web2py] Web2Py developer needed

2010-08-24 Thread david.waldrop
I am working on a application and very much want to continue the development in Web2Py. However I need some help. Despite posting several questions to the forum and getting the basics of the app to work, I am unsure of the correct way of doing things (Controller - view interactions, overall

[web2py] Re: ajax post before ajax reload

2010-08-24 Thread KMax
Issue too obvious, In function definition, select goes before crud.update, so before new data updated old data selected. Thank you. for i in db(db.mytable.id 0).select(): onclick=XML( jQuery('#form+str(i.id) +').slideToggle();return false; )

[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-24 Thread mart
Yeah, thanks for the tip :) Above was really a question of disagreement with that workingDirectory - branch thing, simply because IMHO, branches should be planned and managed following set criteria and purpose (again that's just me). Of course, there are many possible avenues, and it is possible I

[web2py] dashes in controller names?

2010-08-24 Thread Cory Coager
How do you use dashes in controller names? I get errors, Invalid request.

Re: [web2py] Re: Multiple submit not working on component

2010-08-24 Thread Miguel Lopes
On Tue, Aug 24, 2010 at 1:04 PM, mdipierro mdipie...@cs.depaul.edu wrote: jquery serialize also does not support type=file. If you have a way to get around these, please let me know. I've researched this a bit. Although I have not found an authoritarive source, the problem is that Javascript

Re: [web2py] dashes in controller names?

2010-08-24 Thread Jonathan Lundell
On Aug 24, 2010, at 6:47 PM, Cory Coager wrote: How do you use dashes in controller names? I get errors, Invalid request. You can't. The URL parser allows only \w+ (alphanumeric or underscore).

[web2py] Re: Web2py and threads

2010-08-24 Thread pierreth
On 24 août, 13:04, mdipierro mdipie...@cs.depaul.edu wrote: when you do python web2py.py you do not start the wsgi app. You start the rocket web server which makes a number of threads. When a new http request arrives it is assigned to a free thread (or a new thread is created) and the wsgi is

[web2py] Re: Web2py and threads

2010-08-24 Thread pierreth
I don't understand. The link is broken at the moment. Do you mean using only on thread and dispatching using the observer pattern? Doing only one request at a time? It does not makes sense to me. But I guess there is something I don't understand... Can someone guide me? On 24 août, 20:04,

[web2py] Re: dashes in controller names?

2010-08-24 Thread Kevin
As far as I can find, you have to set up web2py routes to do this -- it's pretty easy to do redirection using routes (using routes_in), but I'm not aware of any way off-hand to do the equivalent of rewriting/ translation the URL for inbound requests (routes_out does to translation). This is

[web2py] Re: web2py minimalist version

2010-08-24 Thread Kevin
You can remove gluon/contrib/populate.py, which is almost 1 mb. You can also run web2py with `python -OO web2py.py`, and after getting the app to load all your modules (perhaps by accessing every page on your app), close down the server. Then remove all the .py and .pyc files, just leaving pyo

Re: [web2py] Re: dashes in controller names?

2010-08-24 Thread Jonathan Lundell
On Aug 24, 2010, at 8:03 PM, Kevin wrote: As far as I can find, you have to set up web2py routes to do this -- it's pretty easy to do redirection using routes (using routes_in), but I'm not aware of any way off-hand to do the equivalent of rewriting/ translation the URL for inbound requests

[web2py] Re: Pagination manual bug?

2010-08-24 Thread dlin
As I know, at least this is manual's bug. In the mannual, it use a href={{=URL(args=[page+1])}}next/a But, it will raise error, I use this line instead a href={{=URL(r=request, args=[page+1])}}next/a On 8月25日, 上午1時55分, Vidul Petrov vidul.r...@gmail.com wrote: Not sure if this help, but you may

[web2py] Currency formating

2010-08-24 Thread Bruno Rocha
Hi, Actually, I am using these methods to work with money formating. some tries with python-money and works very well http://code.google.com/p/python-money/ and sometimes import locale locale.setlocale(locale.LC_ALL,('pt_BR','UTF8')) locale.currency(1090909, grouping=True) 'R$ 1.090.909,00'

[web2py] jqgrid and edit-link

2010-08-24 Thread Johann Spies
I followed the example in the radiolog-example of using jqgrid but I am doing something wrong I suppose. Given the following model db.define_table(teacher, db.person, Field(highest_qualification), Field(id_number,length=13),