[web2py] how to include profile photo from Janrain in auth_user?

2011-06-09 Thread Luis Goncalves
I have Janrain working as a login method (thanks to the instructions in the web2py manual, and sample code in default app). I'd like to include the profile photo (that, say, facebook provides via janrain) as part of the user profile. I had my own function based on the sample code at the Janrai

[web2py] Re: db.define_tables

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

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

2011-06-09 Thread Bruno Rocha
On Thu, Jun 9, 2011 at 8:29 PM, pbreit wrote: > Is there an ETA on Slices2? I've been working on designs and Martin Mulone in the mais app, but we both got busy woth other works, so it is frozen for a while. Now the goal is to create a new web2pyslices which acts as a repository for apps, snip

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

2011-06-09 Thread Bruno Rocha
Are you aware about the changes included in the latest web2py version? I am talking specially about the new importer, the 'current' object and the models subfolders. Is that being considerated? On Thu, Jun 9, 2011 at 6:11 PM, Álvaro J. Iradier wrote: > Yes, I checked that project, but these w

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

2011-06-09 Thread ra3don
Glad to see the work is coming along. I really appreciate the effort on this. Would be great to see this bundled with Pydev. On Jun 9, 4:11 pm, Álvaro J. Iradier wrote: > Yes, I checked that project, but these way would require not adding > anything at the headers, and it also parses the models f

[web2py] Re: orderby first, then limitby

2011-06-09 Thread pbreit
What I want to do is paginate by the modified_date which is constantly changing. What I think I may need to do is create an index on modified_date and then re-create the index as frequently as I can? Then I'm still not totally sure what the query should be.

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 activit

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

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

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

2011-06-09 Thread pbreit
Interesting. Slightly off-topic but this company just moved into my office replacing DotCloud which just moved out: http://chart.io

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.id>0).select(orderby = ~db.post.id)

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 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 wrote: > It worked for me with a normal query: > > db(db.post.id>0).select(orderby = ~d

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

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

[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

[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'): self.

[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] 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

[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 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 wanna use > ondelete=

[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 wor

[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

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

2011-06-09 Thread Pierre Thibault
2011/6/9 > On , Anthony 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 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) YouTube page (http://www.youtube

[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 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 resulting > environm

[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 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 OP > makes performanc

[web2py] Re: import error debian package

2011-06-09 Thread Stavros
http://dl.dropbox.com/u/3616407/mathquiz.tar.gz Thanks On Jun 9, 12:30 pm, José Luis Redrejo Rodríguez wrote: > 2011/6/9 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

[web2py] FYI Data Brewery - anyone used it?

2011-06-09 Thread mikech
http://databrewery.org/ Brewery is a Python 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, rel

[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.

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 p

[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: Cubrid?

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

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...

[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 i

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: 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 --- > > 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',

[web2py] db.define_tables

2011-06-09 Thread Vineet
Hi ! Below given is a table --- 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, notnu

[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] 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 syste

[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, N

[web2py] Re: Web2Py & RoR performances

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

[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 wrote: > Very Nice!. > > 2011/6/9 Luther Goh Lu Feng > > > Event starts today > > >http://apac.pycon.org/ > > > (built with web2py goodness too!) > > -- >  http://martin.t

[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 ha

[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: 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 wrote: > Yes, I believe that's what's happening but I was hoping to order the se

Re: [web2py] Re: import error debian package

2011-06-09 Thread José Luis Redrejo Rodríguez
2011/6/9 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 installation

[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).

[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: 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 i

[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 us

[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 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 application. > > Fi

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

2011-06-09 Thread caleb . hattingh
On , Anthony 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 then did: from

[web2py] Re: vars vs. kwargs

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

[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 c

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

Re: [web2py] help on a query

2011-06-09 Thread Manuele Pesenti
On 09/06/2011 12:50, Vasile Ermicioi wrote: db(db.power_curve).select(orderby=~db.power.id, group_by=db.power_curve.site) no, it doesn't get the expected result at the moment I solved filtering the query in a second time using another query that involves a max function: last_pc = db.power_c

[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 fi

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

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 > Can you tell me which is the last version that worked? I do no think > we changed anything there recently. > > On Jun 9, 9:0

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

[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, l

[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 wrote: > On Thursday, June 9, 2011 10:18:41 AM UTC-4, cjrh wrote: > > > On , Massimo Di Pierro wrote: > >

[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" wrote: > 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. >

[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 wrote: > hi, > sorry for being to cryptic. > > In [1]: def foo(*args,**kwargs): >    ...:     print vars >    ...: >    ...: > > In [2]: foo() > > > In [3]: def bar(*args,**vars): >    ...:     pri

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

2011-06-09 Thread caleb . hattingh
On , Anthony 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 app.Castalia.blah.blah.c

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 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 shouldn't he be a

[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 }} > It is working > {{ end }} When I run the application,

Re: [web2py] Web2Py & RoR performances

2011-06-09 Thread Bruno Rocha
In web2py you can cache anything in RAM or use memcache. Em 09/06/2011 10:40, "Alexandre Strzelewicz" < strzelewicz.alexan...@gmail.com> escreveu: > 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.

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() In [3]: def bar(*args,**vars): ...: print vars ...: ...: In [4]: bar() {} ref: http://docs.python.org/library/functions.html#vars as I said, it is cosmetic. I bel

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 *

[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 wrote: > In web2py you can cache anything in RAM or use memcache. > Em 09/06/2011 10:40, "Alexandre Strzelewicz" < > strzelewicz.alexan...@gm

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 applications.Cast.modu

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

2011-06-09 Thread caleb . hattingh
On , Massimo Di Pierro 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 and all will be fine.

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?

[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 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

[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 abou

[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 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 > orders the records

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

2011-06-09 Thread Pierre Thibault
2011/6/9 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, bu

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

2011-06-09 Thread cjrh
For anyone else following, the thread is here. I am going to have a look at this.

[web2py] Re: vars vs. kwargs

2011-06-09 Thread Massimo Di Pierro
I do not understand. :-( On Jun 9, 3:21 am, Pawel Jasinski 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]", >            

[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] 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

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

2011-06-09 Thread Pierre Thibault
2011/6/9 > On , Pierre Thibault 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 curre

[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 caleb . hattingh
On , Pierre Thibault 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 understanding is shallow,

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

2011-06-09 Thread Pierre Thibault
2011/6/9 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, bu

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-09 Thread Pierre Thibault
2011/6/9 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-spe

[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 Martín Mulone
intelliyole Dmitry Jemerov @ @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 > Not to start a holy war or anyt

[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 cons

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 > On Jun 9, 3:02 am, Stifan Kristi 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 wh

[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 mod

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

2011-06-09 Thread selecta
On Jun 9, 12:37 pm, Daniel Gonzalez 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 help by following my

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

Re: [web2py] help on a query

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

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)

[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', default=datetime.date(

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 we

[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

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 File "

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 wrote: > The domain must

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

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

  1   2   >