[web2py:24476] Re: Sessions and flash

2009-06-19 Thread Trollkarlen
I think that can be hard because the user is in this case already logged in. The upload page requiers login, then it sends the files to a new page. So in this stage i dont have the login credentials (password). /R On Jun 19, 5:28 am, mdipierro mdipie...@cs.depaul.edu wrote: you can try using

[web2py:24477] Re: select something as other from this

2009-06-19 Thread Sebastian E. Ovide
I'm looking for a way to use AS in a query so that I can rename columns... so for example: rows=db().select(db.mytable.date,db.mytable.clicks.sum(),db.mytable.impressions.sum(),groupby=db.mytable.date) produces SELECT mytable.date, SUM(mytable.clicks), SUM(mytable.impressions) FROM mytable

[web2py:24479] Re: ldap authentication

2009-06-19 Thread Fran
On Jun 18, 2:11 pm, Johann Spies johann.sp...@gmail.com wrote: TypeError: ldap_auth() got an unexpected keyword argument 'secure' oops, I forgot to add secure=secure to the inner loop Will send updated patch now. F --~--~-~--~~~---~--~~ You received this

[web2py:24478] SQL querie

2009-06-19 Thread pk
Hi together, i have a table call projectmember. in there i have a lot of members which sources frequentlich in the table: for example: 1 Müller abcdef 2 Mike abcdef 3 Müller 4 Mike hiadsfasdf 5 Tom aködsfjasödf in my model: db.projecttasks.projectmemberid.requires=IS_IN_DB(db,

[web2py:24480] Re: ldap authentication

2009-06-19 Thread Johann Spies
oops, I forgot to add secure=secure to the inner loop Will send updated patch now. Thanks. I don't get the same erorr any more. Now I have to figure out how to use it in the web2py auth-setup. As I said I am a newcomer to web2py - this is my first site I am building with it. I will ask

[web2py:24481] Bug with fix in web2py version 1.64.2 for fcgihandler.py users

2009-06-19 Thread John Heenan
Wonderful to see how web2py keeps getting better and better. There is a bug in web2py version 1.64.2 for those using fcgihandler.py. Lines 261 and 262 of gluon\main.py cause a problem error_handler = rewriteSymbols.get('error_handler', None) if

[web2py:24482] Re: Sessions and flash

2009-06-19 Thread mdipierro
There must be a way to pass the cookie. If you find a solution let us know. On Jun 19, 1:22 am, Trollkarlen robbelibob...@gmail.com wrote: I think that can be hard because the user is in this case already logged in. The upload page requiers login, then it sends the files to a new page. So

[web2py:24483] Re: google page count

2009-06-19 Thread mdipierro
http://groups.google.com/group/web2py/web/google_search_count.tiff On Jun 18, 10:56 pm, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: The number here is 64.700 On Fri, Jun 19, 2009 at 12:54 AM, Richardrichar...@gmail.com wrote: I get 61,100 On Jun 19, 1:47 pm, mdipierro

[web2py:24484] Re: select something as other from this

2009-06-19 Thread mdipierro
These are different problems. Even you could do as, which you technically an but it is complicated, would not rename the web2py column. You can rename the column without the as. rows=db(..).select(...) rows.colnames is a list with the colnames. You can change any element in this list as you

[web2py:24485] Re: SQL querie

2009-06-19 Thread mdipierro
Are you trying to show last name and fisrt name? Not sure I understand the question. On Jun 19, 4:06 am, pk peter.kirch...@youngdesigners.de wrote: Hi together, i have a table call projectmember. in there i have a lot of members which sources frequentlich in the table: for example: 1

[web2py:24486] Re: Bug with fix in web2py version 1.64.2 for fcgihandler.py users

2009-06-19 Thread mdipierro
Thanks John, I am going to fix this in trunk now and repost 1.64.3. later today. Massimo On Jun 19, 5:35 am, John Heenan johnmhee...@gmail.com wrote: Wonderful to see how web2py keeps getting better and better. There is a bug in web2py version 1.64.2 for those using fcgihandler.py. Lines

[web2py:24487] Coming from grails world

2009-06-19 Thread Dunsun
Hi, I'm just looking for an appropriate framework for my company. It should be able to handle even large applications. I just like that web2py seems very simple but powerful which is plus point ! All java stuff is a bloated beast - I know it as I am a 6 year java web developer. I'm new to

[web2py:24488] Re: Coming from grails world

2009-06-19 Thread mdipierro
Hi Daniel, 1. How about custom forms - forms which are independent and are defined in views but validation just works for them as expected. Something like this:http://www.wellbehavedsystems.co.uk/web2py/examples/mvc.html Is it possible ? Does it work in a current version of web2py ? yes.

[web2py:24489] Congratulations to Alvaro and Douglas

2009-06-19 Thread mdipierro
Alvaro and Douglas managed to give the first web2py talk to a major conference outiside the US: http://translate.google.com/translate?hl=ensl=ptu=http://fisl.vidanerd.com/palestrasei=oIg7StCaCIvWMJrewbAOsa=Xoi=translateresnum=4ct=result and their talk seems to be one of the most popular ones.

[web2py:24490] Re: Sessions and flash

2009-06-19 Thread mr.freeze
Would it be possible to pass a session id with the upload url and manually connect to the session somehow? On Jun 19, 7:24 am, mdipierro mdipie...@cs.depaul.edu wrote: There must be a way to pass the cookie. If you find a solution let us know. On Jun 19, 1:22 am, Trollkarlen

[web2py:24491] Re: Sessions and flash

2009-06-19 Thread mdipierro
Yes but I am sure there is a way to pass the cookie in flash. On Jun 19, 7:58 am, mr.freeze nat...@freezable.com wrote: Would it be possible to pass a session id with the upload url and manually connect to the session somehow? On Jun 19, 7:24 am, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:24492] 1.64.3 is OUT

2009-06-19 Thread mdipierro
- Fixed some bugs. - IS_COMPLEX renamed as IS_STRONG Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py@googlegroups.com To unsubscribe

[web2py:24494] Re: Sessions and flash

2009-06-19 Thread mr.freeze
It seems to be a bug in flash's FileReference.upload: http://www.visible-form.com/blog/flash-file-upload-and-session-cookies/ http://swfupload.org/forum/generaldiscussion/383 On Jun 19, 8:11 am, mdipierro mdipie...@cs.depaul.edu wrote: Yes but I am sure there is a way to pass the cookie in

[web2py:24495] Re: Access Javacript variable's value in Web2py Code From view

2009-06-19 Thread Yannick
Yes Massimo, param is a JS variable... Thanks for the note and help it works fine... Thank you all for your help on this Cheers, Yannick P. On Jun 18, 12:00 pm, mdipierro mdipie...@cs.depaul.edu wrote: I assume param is javascript variable, not a Python variable: ## script

[web2py:24496] Re: SQL querie

2009-06-19 Thread pk
no problem i solved my problem ;) thanks anywhere On 19 Jun., 14:28, mdipierro mdipie...@cs.depaul.edu wrote: Are you trying to show last name and fisrt name? Not sure I understand the question. On Jun 19, 4:06 am, pk peter.kirch...@youngdesigners.de wrote: Hi together, i have a table

[web2py:24497] sql IS_NOT_IN_DB()

2009-06-19 Thread pk
hi, how can i check this: i have a table (stand for relation) with this data for example: 1 Müler Project1 2 Mike Project1 3 Müller Project2 4 Den Project 3 i will check that Müller Project1 IS_NOT_IN_DB() not only one require - i need multiple requirements how can i solve this? thanks

[web2py:24498] Re: Coming from grails world

2009-06-19 Thread Daniel Guryca
Hey, thanks. One more question: I can see that performance coming from a default integrated server is somewhat poor. I have benchmarked it with apache bench - I mean this included page: http://127.0.0.1:8000/examples/default/index page. For my dual core AMD @ 2.1Ghz and ab -c 10 -n 1000

[web2py:24499] Re: Possible to render view template from db blob/text/string instead of file?

2009-06-19 Thread Ted G
That would be amazing. This will help to enable a very important part of my app's functionality. Thank You. On Jun 18, 8:31 pm, mdipierro mdipie...@cs.depaul.edu wrote: not easy to do now, but easy to add. I will add this to trunk tomorrow. Massimo On Jun 18, 4:30 pm, Ted G

[web2py:24501] Re: Coming from grails world

2009-06-19 Thread mdipierro
one more think in your db.define_table(...) set db.define_table(,migrate=False) in production. It will also speed things up. By default you have lots of features up, including sessions. There is lots of room for speed-up. Massimo On Jun 19, 11:21 am, mdipierro mdipie...@cs.depaul.edu

[web2py:24502] Re: select something as other from this

2009-06-19 Thread Sebastian E. Ovide
how can I access to the renamed column ? rows=db().select(db.mytable.date) print len(rows) # 100 rows.colnames=[a] print rows[1] # EMPTY print rows[1].a # ERROR !! if I do not change the column name I cna print rows[1] and rows[1].date any ideas ?

[web2py:24503] new GAE task queue API

2009-06-19 Thread Dan
Hello web2py experts- Yesterday the GAE team released a new version of their SDK with support for a task queue API. I'd like to use this in my web2py app. Can you recommend how I should proceed? Is it appropriate to try and create a library in /contrib - something like gql.py? Or is it a simple

[web2py:24504] Re: select something as other from this

2009-06-19 Thread mdipierro
rows[1]._extra['a'] On Jun 19, 11:23 am, Sebastian E. Ovide sebastianov...@gmail.com wrote: how can I access to the renamed column ?     rows=db().select(db.mytable.date)     print len(rows)      # 100     rows.colnames=[a]     print rows[1]         # EMPTY     print rows[1].a      

[web2py:24505] select a + b from mytable

2009-06-19 Thread Sebastian E. Ovide
Is it possible to do select a+b, a/b, 123 from mytable without using db.executesql ? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to

[web2py:24506] Re: select a + b from mytable

2009-06-19 Thread mdipierro
yes a_sum_b=db.mytable.a+db.mytable.b a_div_b=db.mytable.a/db.mytable.b rows = db().select(a_add_b,a_div_b) for row in rows: print row._extra[a_sum_b], row._extra[a_div_b] does not work on GAE. Massimo On Jun 19, 11:33 am, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: Is it possible

[web2py:24507] Re: Coming from grails world

2009-06-19 Thread Fran
On 19 June, 16:01, Daniel Guryca dun...@gmail.com wrote: I can see that performance coming from a default integrated server is somewhat poor. 'integrated server' = CherryPy/SQLite, right? What other deployment possibilities could I test ? ApacheWSGI/PostgreSQL would be a better comparator.

[web2py:24509] Re: new GAE task queue API

2009-06-19 Thread Fran
On 19 June, 17:29, Dan danbr...@gmail.com wrote: Yesterday the GAE team released a new version of their SDK with support for a task queue API. I'd like to use this in my web2py app. Can you recommend how I should proceed? Is it appropriate to try and create a library in /contrib - something

[web2py:24508] GAE with more then one web2py application

2009-06-19 Thread ProfessionalIT
Hello, This is my first post in the group and I have a simple question: How to run more then one web2py application in Google App Engine ? I did a web2py application called init ( it is the default web2py application / the website of my company and It works fine in GAE, see in

[web2py:24510] Re: GAE with more then one web2py application

2009-06-19 Thread mdipierro
Yes it is possible and you are doing it the correct way. The problem is just that there is a bug in your blog app. ticktes do not work on GAE (yet, but I a patch from Alexey and one from Hans to make them work). See what the problem is in the local GAE log. Massimo On Jun 19, 12:14 pm,

[web2py:24511] Re: new GAE task queue API

2009-06-19 Thread Dan
On Jun 19, 11:21 am, Fran francisb...@googlemail.com wrote: On 19 June, 17:29, Dan danbr...@gmail.com wrote: Yesterday the GAE team released a new version of their SDK with support for a task queue API. I'd like to use this in my web2py app. Can you recommend how I should proceed? Is it

[web2py:24512] Re: select something as other from this

2009-06-19 Thread DenesL
On Jun 19, 8:27 am, mdipierro mdipie...@cs.depaul.edu wrote: These are different problems. Even you could do as, which you technically an but it is complicated, would not rename the web2py column. You can rename the column without the as. rows=db(..).select(...) rows.colnames is a list

[web2py:24513] Re: Congratulations to Alvaro and Douglas

2009-06-19 Thread Douglas Soares de Andrade
Em Sexta-feira 19 Junho 2009, às 09:53:53, mdipierro escreveu: Alvaro and Douglas managed to give the first web2py talk to a major conference outiside the US: http://translate.google.com/translate?hl=ensl=ptu=http://fisl.vidanerd.co

[web2py:24514] Re: select something as other from this

2009-06-19 Thread mdipierro
Changing colnames that have the form table.field is a NO NO. That is what I was referring to. colnames that refer to aggregates can be changed. I agree it is not a good idea anyway. Massimo On Jun 19, 3:19 pm, DenesL denes1...@yahoo.ca wrote: On Jun 19, 8:27 am, mdipierro

[web2py:24515] Re: community snippets site

2009-06-19 Thread dlypka
I've been doing some of that on my site www.futurelogic.com. On Jun 18, 9:52 pm, mr.freeze nat...@freezable.com wrote: I am thinking about creating a community driven snippets site for web2py users.  Is there something like this already besides Alter Ego? I'm not looking to compete with

[web2py:24516] Re: sql IS_NOT_IN_DB()

2009-06-19 Thread DenesL
Good question! The requires would have to be against the id field but that is not possible today, or I just don't see how. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to

[web2py:24517] Re: community snippets site

2009-06-19 Thread Joe Barnhart
Sure! What's one more place to look for documentation?? Or maybe we could fix the wiki site and post snippets there? On Jun 18, 6:52 pm, mr.freeze nat...@freezable.com wrote: I am thinking about creating a community driven snippets site for web2py users.  Is there something like this

[web2py:24518] Having an 'upgrade' distribution?

2009-06-19 Thread Eddie Eyles
I like the pace of new releases of web2py, but it is a pain to download each one (the Windows distribution takes an hour on my connection if I am lucky). Given that each new release has normally changed only a few files, would it be realistic to provide a small 'upgrade' distribution from the

[web2py:24519] A proposal for Auth

2009-06-19 Thread NeonGoby
I don't know about the future development plan for Auth. As I understand the current behavior, anyone change register for an account. In fact, a logged-in user cannot register another user. This arrangement is appropriate for some applications, but not for others. For example, my current

[web2py:24520] Re: community snippets site

2009-06-19 Thread Yarko Tymciurak
hmmm just got an internal error on first access to futurelogic (ok on second attempt) On Fri, Jun 19, 2009 at 5:46 PM, dlypka dly...@gmail.com wrote: I've been doing some of that on my site www.futurelogic.com. On Jun 18, 9:52 pm, mr.freeze nat...@freezable.com wrote: I am thinking

[web2py:24521] Re: Having an 'upgrade' distribution?

2009-06-19 Thread mdipierro
By the end of july there will be auto upgrade. ;-) On Jun 19, 6:43 pm, Eddie Eyles ho...@heddonsgate.co.uk wrote: I like the pace of new releases of web2py, but it is a pain to download each one (the Windows distribution takes an hour on my connection if I am lucky).  Given that each new

[web2py:24522] Re: A proposal for Auth

2009-06-19 Thread mdipierro
Currently you have two options: 1) auth.registration_requires_approval = True users can register but not login until there is admin approval 2) def user(): self.settings.actions_disabled.append('register') return dict(form=auth()) @auth.requires_membership('admin')

[web2py:24523] Re: community snippets site

2009-06-19 Thread mr.freeze
This wouldn't be a place for official documentation...more a place for users to post 'slices' of code that fill in specific gaps we find during real world implementations of web2py sites. The domain is web2pyslices.com! (just a placeholder right now) I would love feedback on how the community

[web2py:24524] Re: A proposal for Auth

2009-06-19 Thread NeonGoby
This capability is quite recent I think? I wasn't documented in the version from early June 09, and is definitely not in the pdf documentation I got from Lulu. It there someway to get the update full documentation when it becomes available? BTW, thanks for a great framework. It's some easy

[web2py:24525] Re: A proposal for Auth

2009-06-19 Thread mdipierro
Yes this is recent. Lats month or so. I am spending the next 3 week to update the documentation and I will be available on lulu asap. I will add some slides to the scribd document about this. Massimo On Jun 19, 8:30 pm, NeonGoby luke...@earthlink.net wrote: This capability is quite recent I

[web2py:24526] web2py logo

2009-06-19 Thread mdipierro
Peter made a very nice logo for web2py: http://groups.google.com/group/web2py/web/logo.pdf What do you think? Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this

[web2py:24527] Re: web2py logo

2009-06-19 Thread Yarko Tymciurak
very nice Perhaps a different font would be better given the curve direction on the logo part, perhaps this font: http://new.myfonts.com/fonts/exljbris/museo/ (museo 300, 500, 700 are free - the 700 might have nice curves to match...) There's also some other fonts I've seen w/

[web2py:24528] Re: A proposal for Auth

2009-06-19 Thread RyeBread
On Jun 19, 9:44 pm, mdipierro mdipie...@cs.depaul.edu wrote: Yes this is recent. Lats month or so. I am spending the next 3 week to update the documentation and I will be available on lulu asap. I will add some slides to the scribd document about this. Massimo Can we get a discount on

[web2py:24529] Re: A proposal for Auth

2009-06-19 Thread mdipierro
Let me finish it first and then we'll discuss it. It depends on the agreement I reach with the editor. Packt is interested but if I go with them the PDF version will jump up to ~$30. The only way to keep it low is if I retain copyright. Massimo On Jun 19, 9:19 pm, RyeBread rwburc...@yahoo.com

[web2py:24530] Re: web2py logo

2009-06-19 Thread Zoom.Quiet
On Sat, Jun 20, 2009 at 09:47, mdipierromdipie...@cs.depaul.edu wrote: Peter made a very nice logo for web2py: http://groups.google.com/group/web2py/web/logo.pdf What do you think? simple and clean ;-) but... - font is not perfect, not web2py's feeling - icon is like some education group,

[web2py:24531] Re: Strange behavior db( ... and ... and ...) vs. db( ... or ... or ...)

2009-06-19 Thread weheh
OK, you're right, it's an interesting issue, even though uncovered by a naive question. As a matter of fact, at first glance of web2py many months ago I was curious why it didn't use python's logic operators in the db query string. This is indeed a rare occurrence of pythonic inconsistency and