[web2py] Re: How to not show the delete file checkbox

2011-06-09 Thread Luis Goncalves
Excellent! Thank you both! Before I had [file | (cbox) delete ] requires=IS_IMAGE() got rid of the delete and checkbox, but now I am still left with [file] (a link to download the file) Might have to do server-side DOM parsing to get rid of that ... Thanks!!! Luis.

[web2py] Re: New Features in Book

2011-06-09 Thread cjrh
On Jun 9, 1:06 am, contatogilson...@gmail.com contatogilson...@gmail.com wrote: I suggest that has more people to contribute to the documentation of web2py.  The documentation uses the principle of wiki with that we can help make it updatedalways. Currently, the web2py book is a wiki, and

[web2py] Re: New Features in Book

2011-06-09 Thread cjrh
On Jun 9, 3:02 am, Stifan Kristi steve.van.chris...@gmail.com wrote: is the book has already been updated right now? thank you I made some small fixes last night, if that is the kind of thing you mean. If you mean to ask whether the book is completely up to date with the capabilities and

[web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread cjrh
On Thursday, 9 June 2011 03:03:51 UTC+2, Massimo Di Pierro wrote: Users who have an opinion please share it now. This is important. Could you direct us to more details about the issue?My current understanding is shallow, but I agree with Pierre that platform-specific environment

[web2py] Re: How to implement flags?

2011-06-09 Thread ron_m
IMHO it depends on a number of things. Using groups and memberships is good if the flags are meant to indicate an ability to do something on the system because there are decorators and functions to test for having the attribute. You can then decorate a function or use a has_ test to

[web2py] Offtopic: Who's at Pycon APAC?

2011-06-09 Thread Luther Goh Lu Feng
Event starts today http://apac.pycon.org/ (built with web2py goodness too!)

[web2py] orderby first, then limitby

2011-06-09 Thread pbreit
I have a query that includes both orderby and limitby. What seems to happen is that the db returns some set of records as dictated by the limit and then orders the records in that set. So I pretty much get the same set every time even though I know the field being ordered has changed for

[web2py] Re: How to implement flags?

2011-06-09 Thread pbreit
Thanks, ron_m, good info.

[web2py] vars vs. kwargs

2011-06-09 Thread Pawel Jasinski
hi, it is cosmetic, but can be a pain for someone no so familiar with python. In examples for restful api: def index(): def GET(*args,**vars): patterns = [ /persons[person], /{person.name.startswith}, /{person.name}/:field,

[web2py] Re: orderby first, then limitby

2011-06-09 Thread luifran
In sql, you can apply first order by and then limitby for example in Oracle: select * from (select * from table order by field) where rownum11//row 1 to 10 after order On 9 jun, 09:52, pbreit pbreitenb...@gmail.com wrote: I have a query that includes both orderby and limitby. What seems to

[web2py] Re: orderby first, then limitby

2011-06-09 Thread luifran
In DAL, I don´t know If this can be done. On 9 jun, 10:40, luifran lbernalhernan...@yahoo.es wrote: In sql, you can apply first order by and then limitby for example in Oracle: select * from (select * from table  order by field) where rownum11//row 1 to 10 after order On 9 jun, 09:52,

[web2py] Re: Cubrid?

2011-06-09 Thread CUBRID RDBMS
Hello Massimo, How is it going? As I promised we have uploaded the new CUBRID Python API Doc. You can download it from http://www.cubrid.org/python_programming#manual or view it online at ftp://ftp.cubrid.org/CUBRID_Docs/Drivers/Python/8.4.0/index.html. The documentation is prepared by

Re: [web2py] Offtopic: Who's at Pycon APAC?

2011-06-09 Thread Martín Mulone
Very Nice!. 2011/6/9 Luther Goh Lu Feng elf...@yahoo.com Event starts today http://apac.pycon.org/ (built with web2py goodness too!) -- http://martin.tecnodoc.com.ar

Re: [web2py] Re: amfrpc problem

2011-06-09 Thread Alexei Vinidiktov
I followed the instruction in the slice, but I keep getting the same error message AttributeError: 'Envelope' object has no attribute 'clientType'. I'm on Windows, running web2py 1.95.1, Active Python 2.7 and Flash Builder 4.5 On Thu, Dec 2, 2010 at 2:54 AM, mdipierro mdipie...@cs.depaul.edu

Re: [web2py] Re: amfrpc problem

2011-06-09 Thread Alexei Vinidiktov
And here is the traceback: Traceback (most recent call last): File C:\Users\Alexei\Dev\web2py\web2py\gluon\restricted.py, line 181, in restricted exec ccode in environment File C:\Users\Alexei\Dev\web2py\web2py\applications\amfrpctest\controllers/default.py, line 59, in module

[web2py] BUG causes all error tickets to be unknown

2011-06-09 Thread selecta
I check out the latest web2py version from the hg I created a New simple application I modified the first menu item in models/menu.py response.menu = [ (TAG['']('Index'), False, URL(request.application,'default','index'), []) ] this does not make sense, and is just for testing, actualy I

Re: [web2py] BUG causes all error tickets to be unknown

2011-06-09 Thread Daniel Gonzalez
Im not working with the latest version, but sometimesn it happens to me, and is because there's not write permissions on the /errors folder, or because the /errors folder does not exists. I hope this help to you. El jue, 09-06-2011 a las 03:28 -0700, selecta escribió: I check out the latest

[web2py] help on a query

2011-06-09 Thread Manuele Pesenti
defining a table like that db.define_table('power_curve', Field('site', db.site, notnull=True, requires = IS_IN_DB(db, 'site.id', '%(name)s')), Field('file_name', 'upload', uploadfield=True, notnull=True, required=True), Field('validity', 'date',

Re: [web2py] help on a query

2011-06-09 Thread Vasile Ermicioi
db(db.power_curve).select(orderby=~db.power.id, group_by=db.power_curve.site)

Re: [web2py] help on a query

2011-06-09 Thread Vasile Ermicioi
groupby instead of group_by

Re: [web2py] Re: orderby first, then limitby

2011-06-09 Thread Vasile Ermicioi
I have a query that includes both orderby and limitby. What seems to happen is that the db returns some set of records as dictated by the limit and then orders the records in that set. So I pretty much get the same set every time even though I know the field being ordered has changed for

[web2py] Re: BUG causes all error tickets to be unknown

2011-06-09 Thread selecta
On Jun 9, 12:37 pm, Daniel Gonzalez dgzabal...@gmail.com wrote: Im not working with the latest version, but sometimesn it happens to me, and is because there's not write permissions on the /errors folder, or because the  /errors folder does not exists. no this is not the case for me, you can

[web2py] Re: Small toolbar bug in 1.96.3

2011-06-09 Thread Ross Peoples
No proxy, just default Ubuntu Server 10.04.2 with web2py trunk, plus pyodbc. No web server is installed on the machine and I am running it using python web2py.py -i 0.0.0.0 -a password -c cert.crt -k key.key, so I wonder if it has something to do with SSL? And the generic views have not been

Re: [web2py] Re: New Features in Book

2011-06-09 Thread Martín Mulone
I proposed to massimo some ideas and improvements, regarding to this. 2011/6/9 cjrh caleb.hatti...@gmail.com On Jun 9, 3:02 am, Stifan Kristi steve.van.chris...@gmail.com wrote: is the book has already been updated right now? thank you I made some small fixes last night, if that is the

[web2py] Re: PyCharm is going to support web2py

2011-06-09 Thread Ross Peoples
Not to start a holy war or anything, but I hear people talking all the time about how emacs or vim is the best code editor ever. Why is that? Does it do code completion or have some other really helpful feature that I just missed? I've used vim to edit text files, but editing code in a tiny

Re: [web2py] Re: PyCharm is going to support web2py

2011-06-09 Thread Martín Mulone
intelliyole http://twitter.com/#!/intelliyole Dmitry Jemerov @ @rochacbruno http://twitter.com/rochacbruno actually *web2py* support is not on the PyCharm roadmap. the number of votes is not the only thing driving our development plans 2011/6/9 Ross Peoples ross.peop...@gmail.com Not to start

[web2py] Re: BUG causes all error tickets to be unknown

2011-06-09 Thread selecta
replacing TAG[''] with DIV solved the problem, but still it would be nice to find out why this causes web2py to act this way

Re: [web2py] Re: PyCharm is going to support web2py

2011-06-09 Thread Pierre Thibault
2011/6/9 Ross Peoples ross.peop...@gmail.com Not to start a holy war or anything, but I hear people talking all the time about how emacs or vim is the best code editor ever. Why is that? Does it do code completion or have some other really helpful feature that I just missed? I've used vim to

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread caleb . hattingh
On , Pierre Thibault pierre.thibau...@gmail.com wrote: 2011/6/9 cjrh caleb.hatti...@gmail.com On Thursday, 9 June 2011 03:03:51 UTC+2, Massimo Di Pierro wrote:Users who have an opinion please share it now. This is important. Could you direct us to more details about the issue? My current

[web2py] Re: Skype Group and/or IRC

2011-06-09 Thread LarryEitel
Thank you for the suggestion!!! Request to join group sent. :)

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Pierre Thibault
2011/6/9 caleb.hatti...@gmail.com On , Pierre Thibault pierre.thibau...@gmail.com wrote: 2011/6/9 cjrh caleb.hatti...@gmail.com On Thursday, 9 June 2011 03:03:51 UTC+2, Massimo Di Pierro wrote:Users who have an opinion please share it now. This is important. Could you direct us to

[web2py] database access

2011-06-09 Thread anil manikyam
i created a database with tablename,fieldname and i created a form-textbox in html language in views how to compare these two things

[web2py] database

2011-06-09 Thread anil manikyam
created in html login: password: when i entered the submit button it compare with the values in database. if correct go to another page send the web2py code 2 my email

[web2py] Re: vars vs. kwargs

2011-06-09 Thread Massimo Di Pierro
I do not understand. :-( On Jun 9, 3:21 am, Pawel Jasinski pawel.jasin...@gmail.com wrote: hi, it is cosmetic, but can be a pain for someone no so familiar with python. In examples for restful api: def index():     def GET(*args,**vars):         patterns = [             /persons[person],

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread cjrh
For anyone else following, the thread is herehttps://groups.google.com/d/topic/web2py/_zhjxWa4tAU/discussion. I am going to have a look at this.

Re: [web2py] Re: PyCharm is going to support web2py

2011-06-09 Thread Pierre Thibault
2011/6/9 Ross Peoples ross.peop...@gmail.com Not to start a holy war or anything, but I hear people talking all the time about how emacs or vim is the best code editor ever. Why is that? Does it do code completion or have some other really helpful feature that I just missed? I've used vim to

[web2py] Re: orderby first, then limitby

2011-06-09 Thread Massimo Di Pierro
Limitby should be executed after olderby. Are you sure that is not the case? What DB? On Jun 9, 2:52 am, pbreit pbreitenb...@gmail.com wrote: I have a query that includes both orderby and limitby. What seems to happen is that the db returns some set of records as dictated by the limit and then

[web2py] Web2Py RoR performances

2011-06-09 Thread Alexandre Strzelewicz
Hi, I learned Web2Py and I'm learning Ruby on Rails. Is Ruby on Rails faster than Web2py ? It seems web2py open/read/close each files (db.py, controller...) to render a page (including all partials, layout...). Ruby Rails seems to cache all this files into memory, so it's faster. Any note

[web2py] Re: database

2011-06-09 Thread Massimo Di Pierro
Not sure if you have a question for us. Good to have you on board :-) On Jun 9, 7:54 am, anil manikyam anilmanikya...@gmail.com wrote: created in html login: password: when i entered the submit button it compare with the  values in database. if correct go to another page send the web2py

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Massimo Di Pierro
So you suggest removing the case insensitive flag that was added in 1.96.4?

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Anthony
But in a web2py app, you would have something like /applications/Cast/modules/cast.py, and in your code you would just do 'import cast'. My understanding of the problem is that in that case, the new web2py importer tries to import applications.cast.modules.cast instead of

[web2py] Re: Web2Py RoR performances

2011-06-09 Thread Massimo Di Pierro
web2py is 3x - 10x faster because the python interpreter is faster then ruby. The bottle neck is always the database anyway. On Jun 9, 9:07 am, Bruno Rocha rochacbr...@gmail.com wrote: In web2py you can cache anything in RAM or use memcache. Em 09/06/2011 10:40, Alexandre Strzelewicz

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread cjrh
On Thursday, 9 June 2011 16:03:01 UTC+2, cjrh wrote: In my opinion, we should just document that the cast must match. Note that this issue has *nothing to do with web2py*, and as a Windows user, I am not too surprised by this behaviour anyway. ...should just document that the *case *must

Re: [web2py] Re: vars vs. kwargs

2011-06-09 Thread Pawel Jasinski
hi, sorry for being to cryptic. In [1]: def foo(*args,**kwargs): ...: print vars ...: ...: In [2]: foo() built-in function vars In [3]: def bar(*args,**vars): ...: print vars ...: ...: In [4]: bar() {} ref: http://docs.python.org/library/functions.html#vars as I

[web2py] web2py 1.96.4 - Blocks in View not working

2011-06-09 Thread contatogilson...@gmail.com
I use the blocks to couple eating several portions of the layout pages for quite a while.Only in this last version is not working. layout.html {{ block test }}{{ end }} test.html {{ extend 'layout.html' }} {{ block test }} h2It is working/h2 {{ end }} When I run the application,

Re: Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Anthony
On Thursday, June 9, 2011 10:18:41 AM UTC-4, cjrh wrote: On , Massimo Di Pierro massim...@gmail.com wrote: So you suggest removing the case insensitive flag that was added in 1.96.4? Yes. In Alessandro's specific case, he should use: import app.Castalia.blah.blah.castialia But

Re: Re: Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread caleb . hattingh
On , Anthony abasta...@gmail.com wrote: On Thursday, June 9, 2011 10:18:41 AM UTC-4, cjrh wrote: On , Massimo Di Pierro massim...@gmail.com wrote: So you suggest removing the case insensitive flag that was added in 1.96.4? Yes. In Alessandro's specific case, he should use: import

[web2py] Re: vars vs. kwargs

2011-06-09 Thread Massimo Di Pierro
Now I understand. It is a problem witg the example. Will fix it. On Jun 9, 9:24 am, Pawel Jasinski pawel.jasin...@gmail.com wrote: hi, sorry for being to cryptic. In [1]: def foo(*args,**kwargs):    ...:     print vars    ...:    ...: In [2]: foo() built-in function vars In [3]: def

[web2py] Re: web2py 1.96.4 - Blocks in View not working

2011-06-09 Thread Massimo Di Pierro
Can you tell me which is the last version that worked? I do no think we changed anything there recently. On Jun 9, 9:02 am, contatogilson...@gmail.com contatogilson...@gmail.com wrote: I use the blocks to couple eating several portions of the layout pages for quite a while.Only in this last

[web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Massimo Di Pierro
It works for you because of the temporary fix (ignore capitalization). What Pierre and Caleb are saying is that it should NOT work if you get capitalization wrong. On Jun 9, 9:25 am, Anthony abasta...@gmail.com wrote: On Thursday, June 9, 2011 10:18:41 AM UTC-4, cjrh wrote: On , Massimo Di

[web2py] Re: database

2011-06-09 Thread Anthony
On Thursday, June 9, 2011 8:54:07 AM UTC-4, anil manikyam wrote: created in html login: password: when i entered the submit button it compare with the values in database. if correct go to another page send the web2py code 2 my email Are you asking how to do this? If so, look at

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread cjrh
On Thursday, 9 June 2011 16:22:10 UTC+2, Anthony wrote: importer still appears to work. So, as far as I can tell, the importer works, even without the fix in trunk, though maybe I have misunderstood the problem. Yes, it is confusing. The case-insensitivity works only until a name is

Re: [web2py] Re: web2py 1.96.4 - Blocks in View not working

2011-06-09 Thread contatogilson...@gmail.com
I think it was in version 1.94.1 to 1.95.1 _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/6/9 Massimo Di Pierro massimo.dipie...@gmail.com Can you tell me which is the last version that worked? I do no think we changed anything there

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread cjrh
On Thursday, 9 June 2011 16:22:10 UTC+2, Anthony wrote: But in a web2py app, you would have something like /applications/Cast/modules/cast.py, and in your code you would just do 'import cast'. My understanding of the problem is that in that case, the new web2py importer tries to import

[web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Anthony
On Thursday, June 9, 2011 10:29:40 AM UTC-4, Massimo Di Pierro wrote: It works for you because of the temporary fix (ignore capitalization). What Pierre and Caleb are saying is that it should NOT work if you get capitalization wrong. No, I'm testing with 1.96.3, which is before the fix.

Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Anthony
On Thursday, June 9, 2011 10:40:19 AM UTC-4, cjrh wrote: On Thursday, 9 June 2011 16:22:10 UTC+2, Anthony wrote: importer still appears to work. So, as far as I can tell, the importer works, even without the fix in trunk, though maybe I have misunderstood the problem. Yes, it is

[web2py] import error debian package

2011-06-09 Thread Stavros
Has anyone who has used latest debian package been able to import modules while keeping the application self contained? I have the traceback from another user's application. First line of default.py question_maker = local_import('question_maker') then when you run it... Traceback (most recent

[web2py] Re: vars vs. kwargs

2011-06-09 Thread Massimo Di Pierro
fixed in trunk. Thanks On Jun 9, 9:24 am, Pawel Jasinski pawel.jasin...@gmail.com wrote: hi, sorry for being to cryptic. In [1]: def foo(*args,**kwargs):    ...:     print vars    ...:    ...: In [2]: foo() built-in function vars In [3]: def bar(*args,**vars):    ...:     print vars

Re: Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread caleb . hattingh
On , Anthony abasta...@gmail.com wrote: Do you have an app to reproduce the problem? I created an app named Castalia (note the capitalization) with a module /modules/selfgroup/castalia/config.py, which I think is the same structure and naming as Alessandro's app. In a controller action, I

[web2py] Re: import error debian package

2011-06-09 Thread Massimo Di Pierro
can you check the file is there and __init__.py is in every parent folder? On Jun 9, 10:01 am, Stavros stavros32...@gmail.com wrote: Has anyone who has used latest debian package been able to import modules while keeping the application self contained?  I have the traceback from another user's

[web2py] custom form dspval question

2011-06-09 Thread wdtatenh
Apologies didn't see this anywhere that showed a clear example of what I'm asking about. Have custom form - using inpval, dspval, etc. and would like to know if there is specific formatting that allows me to set form field properties? this part I get: {{=dspval.my_field_name}} My question is

[web2py] Re: import error debian package

2011-06-09 Thread Jeff Elkner
We copy the math_quiz directory and all its contents from a source install of web2py, where it works, to the application directory of a user created by the debian package, where it gives the error above. Three of us have confirmed this on three separate installations. We are pretty confident

[web2py] Question about superfish menu and roles

2011-06-09 Thread salbefe
Hello, I would like to use the superfish menu that is on the welcome application but showing only some links depending the role the user has. Is that possible?? Thanks in advance

[web2py] Re: orderby first, then limitby

2011-06-09 Thread pbreit
Yes, I believe that's what's happening but I was hoping to order the set first and then return the sub-set. For example, if I have: 7, 5, 2, 9, 6, 3, 4, 8 And I want the 3 lowest values: 2, 3, 4. Instead I get 2, 5, 7 (7, 5, 2 sorted)(I think).

Re: [web2py] Re: import error debian package

2011-06-09 Thread José Luis Redrejo Rodríguez
2011/6/9 Jeff Elkner jeff.elk...@gmail.com: We copy the math_quiz directory and all its contents from a source install of web2py, where it works, to the application directory of a user created by the debian package, where it gives the error above. Three of us have confirmed this on three

[web2py] Re: orderby first, then limitby

2011-06-09 Thread Massimo Di Pierro
items should be sorted when groups, unless you want to sort by a condition different than the groups. You can do that as well but you need to give a concrete model example and data example. On Jun 9, 11:21 am, pbreit pbreitenb...@gmail.com wrote: Yes, I believe that's what's happening but I was

[web2py] Re: Web2Py RoR performances

2011-06-09 Thread Ross Peoples
This was a while ago, and I cannot find my source at the moment, but I recall reading a benchmark done that put RoR faster than PHP, but slower than Python by a large margin (without server-side caching and other performance tweaks). If I find the original article or maybe a more recent one on

[web2py] Re: How to implement flags?

2011-06-09 Thread howesc
also keep in mind your datastore. more fields on a SQL table can get unwieldy for the SQL engine. GAE prefers many fields to joins as you can't do joins there. lists for flags just seems unwieldy in either environment. bitwise operations seem super-slick and cool, but do they make the code

[web2py] Re: Offtopic: Who's at Pycon APAC?

2011-06-09 Thread Luther Goh Lu Feng
As pointed out by Massimo, the site is built with conf2py http://code.google.com/p/conf2py/ On Jun 9, 6:06 pm, Martín Mulone mulone.mar...@gmail.com wrote: Very Nice!. 2011/6/9 Luther Goh Lu Feng elf...@yahoo.com Event starts today http://apac.pycon.org/ (built with web2py goodness

[web2py] Re: Web2Py RoR performances

2011-06-09 Thread Plumo
how is Python 3-10x faster than Ruby?

[web2py] Re: Question about superfish menu and roles

2011-06-09 Thread pbreit
Yes, you can create whatever menus you want. The welcome app provides menus that are described in a models file but you can describe a a different menu or describe a menu in a controller or module. Just follow the patterns you see in the welcome code: response.my_menu=[(T('Resources'), False,

[web2py] Re: Web2Py RoR performances

2011-06-09 Thread pbreit
This is probably not a discussion we want to start. While Python may have a small performance edge, it's nothing to get excited about. Likewise, the OP makes performance assumptions that may not be realistic. As I thought everyone knew, there are quite a few variables that go in to overall

[web2py] Re: database access

2011-06-09 Thread pbreit
We might more detail about what you are trying to do including some code samples.

[web2py] db.define_tables

2011-06-09 Thread Vineet
Hi ! Below given is a table --- code db.define_table('ac', Field('acnm','string', IS_LENGTH(100), length=100, required=True), Field('acgrpid', db.acgrp, notnull=True, required=True), Field('active', 'string', IS_LENGTH(1), length=1, requires=IS_LENGHT(1), default='Y', required=True,

[web2py] Re: db.define_tables

2011-06-09 Thread Anthony
On Thursday, June 9, 2011 1:01:02 PM UTC-4, Vineet wrote: Hi ! Below given is a table --- code db.define_table('ac', Field('acnm','string', IS_LENGTH(100), length=100, required=True), Field('acgrpid', db.acgrp, notnull=True, required=True), Field('active', 'string',

Re: [web2py] Re: vars vs. kwargs

2011-06-09 Thread Stifan Kristi
pardon me, what is the meaning of *args and **vars? thank you.

[web2py] Re: Project: pydev extension for web2py in Eclipse

2011-06-09 Thread Álvaro J . Iradier
After some talking to the Pydev author, we've managed to make a patch to a file in Pydev that calls the build_environment() and run_models_in() functions from web2py, and adds the resulting environment into the __builtins__. The result is you automagically get a fully working web2py environment in

Re: [web2py] Re: New Features in Book

2011-06-09 Thread Stifan Kristi
a, i c, pardon me, if i'm not wrong massimo said he will get the book update on this august. so that i confirm it, hehe...

Re: [web2py] Re: Cubrid?

2011-06-09 Thread Stifan Kristi
glad to know that, thank you so much.

[web2py] Re: Web2Py RoR performances

2011-06-09 Thread Ross Peoples
Good point. The last thing we want is another Python vs RoR vs whatever war. I know that I helped test performance and ran my own benchmarks when Massimo was working performance improvements with regards to session files back in March, since sessions can slow down response times. My own testing

Re: [web2py] Re: vars vs. kwargs

2011-06-09 Thread Ross Peoples
web2py makes extensive use of these. Take the A, DIV, or TABLE as examples, you can pass HTML attributes (e.g. _class, _id, _style) to these, but if you look at the code, you will notice that these things are not in the signature of these methods. They allow you to provide an unknown number of

[web2py] Re: Project: pydev extension for web2py in Eclipse

2011-06-09 Thread Ross Peoples
That would be awesome. I tried using Eclipse + PyDev once, but it just felt too big and complicated, especially since it didn't know anything about web2py and couldn't do autocomplete. If this works, I may have to reevaluate Eclipse + PyDev again.

[web2py] FYI Data Brewery - anyone used it?

2011-06-09 Thread mikech
http://databrewery.org/ Brewery is a Python http://python.org/ framework and collection of tools for analysing and mining data. Goal is to provide functions and tools for: - streaming and processing structured data from various sources, such as CSV, XLS files, Google spreadsheets,

[web2py] Re: Web2Py RoR performances

2011-06-09 Thread Massimo Di Pierro
for fairness jruby is faster than cpython and jython. jython is slower then all of them. On Jun 9, 11:53 am, pbreit pbreitenb...@gmail.com wrote: This is probably not a discussion we want to start. While Python may have a small performance edge, it's nothing to get excited about. Likewise, the

[web2py] Re: Project: pydev extension for web2py in Eclipse

2011-06-09 Thread Massimo Di Pierro
Does this require any modification to web2py? On Jun 9, 12:27 pm, Álvaro J. Iradier airad...@gmail.com wrote: After some talking to the Pydev author, we've managed to make a patch to a file in Pydev that calls the build_environment() and run_models_in() functions from web2py, and adds the

Re: [web2py] Re: Project: pydev extension for web2py in Eclipse

2011-06-09 Thread Pierre Thibault
You can use this project: http://code.google.com/p/neo-insert-imports/ to add automatically the necessary imports for the static analyzer. -- A+ - Pierre My blog and profile (http://pierrethibault.posterous.com)http://pierrethibault.posterous.com YouTube page

Re: Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Pierre Thibault
2011/6/9 caleb.hatti...@gmail.com On , Anthony abasta...@gmail.com wrote: Do you have an app to reproduce the problem? I created an app named Castalia (note the capitalization) with a module /modules/selfgroup/castalia/config.py, which I think is the same structure and naming as

[web2py] Auth_user ondelete

2011-06-09 Thread Thiago Carvalho D' Ávila
Hi, I'm new to web2py, but familiar to similar frameworks. I have a system that uses web2py builtin auth_user table. The problem is that I wanna use ondelete='NO ACTION' in my app (it is CASCADE by default), and I don't know how to put it in the model file. Anyone can help? Att. Thiago

[web2py] nginx and web2py

2011-06-09 Thread peter
I am trying to get web2py going with nginx on a remote server. When I try running it via uswgi and nginx, using wsgihandler.py, it works with the welcome application. However when I try another application it gives me an error that it cannot find .../cache/ cache.shelve. This other application

[web2py] Re: Auth_user ondelete

2011-06-09 Thread Massimo Di Pierro
this should do it Field('name','reference othertable',ondelete='NO ACTION') On Jun 9, 1:14 pm, Thiago Carvalho D' Ávila thiagocav...@gmail.com wrote: Hi, I'm new to web2py, but familiar to similar frameworks. I have a system that uses web2py builtin auth_user table. The problem is that I

[web2py] Re: Auth_user ondelete

2011-06-09 Thread Anthony
On Thursday, June 9, 2011 2:14:59 PM UTC-4, Thiago wrote: I'm new to web2py, but familiar to similar frameworks. I have a system that uses web2py builtin auth_user table. The problem is that I wanna use ondelete='NO ACTION' in my app (it is CASCADE by default), and I don't know how to put

[web2py] Re: Project: pydev extension for web2py in Eclipse

2011-06-09 Thread Álvaro J . Iradier
Yes, I checked that project, but these way would require not adding anything at the headers, and it also parses the models file. It requires no modification in web2py, just in Pydev. Talking to the pydev author in the pydev mailing list, he might consider including support for web2py if we manage

[web2py] Validator: one of several fields must be non-empty

2011-06-09 Thread Jim Karsten
This validator handles a case where at least one of several fields must be non-blank. class IS_NOT_ALL_EMPTY(object): Class representing a validator requiring at least one non-empty field in a set. def __init__(self, others, error_message='Enter a value in at least one field'):

[web2py] Re: Validator: one of several fields must be non-empty

2011-06-09 Thread Anthony
Cool. Maybe add a slice for this: http://www.web2pyslices.com/main/default/index On Thursday, June 9, 2011 5:13:43 PM UTC-4, Jim Karsten wrote: This validator handles a case where at least one of several fields must be non-blank. class IS_NOT_ALL_EMPTY(object): Class representing a

Re: [web2py] FYI Data Brewery - anyone used it?

2011-06-09 Thread Stifan Kristi
nice info, will try and take a look, thank you.

Re: [web2py] Re: ajax form submission

2011-06-09 Thread Stifan Kristi
it works on me too, pbreit, thank you so much. when i use the simple it works fine, but when i try to expand it (i mean using components, ajax and jquery it's not work). On Thu, Jun 9, 2011 at 5:11 AM, pbreit pbreitenb...@gmail.com wrote: It worked for me with a normal query:

Re: [web2py] Re: Auth_user ondelete

2011-06-09 Thread Thiago Carvalho D' Ávila
I have this auth_user table, and another table called activities. This activities have 2 fields that are foreing keys to user (created by and modified by). If I delete any user that created or modified one activity, the activity is deleted. Do I have to put NO ACTION in all fields that is foreign

Re: [web2py] Re: ajax form submission

2011-06-09 Thread pbreit
The Ajax worked OK for me. I used your exact same code except I switched/fixed this one line: results = db().select(orderby = ~db.post.id) to results = db(db.post.id0).select(orderby = ~db.post.id)

[web2py] Re: Validator: one of several fields must be non-empty

2011-06-09 Thread pbreit
Is there an ETA on Slices2?

Re: [web2py] Re: Auth_user ondelete

2011-06-09 Thread Anthony
On Thursday, June 9, 2011 6:59:34 PM UTC-4, Thiago wrote: I have this auth_user table, and another table called activities. This activities have 2 fields that are foreing keys to user (created by and modified by). If I delete any user that created or modified one activity, the activity is

  1   2   >