[web2py] web2py on Kodingen?

2010-03-19 Thread mr.freeze
It appears that Kodingen can run Django and Ruby apps. Someone with strong Apache-fu should try to get web2py working :) http://kodingen.com/?2010/01/27/get-ruby-working/ http://kodingen.com/?groups/django-on-kodingen -- You received this message because you are subscribed to the Google Groups

[web2py] Re: Possible bug in Field.__getslice__

2010-03-19 Thread mr.freeze
They are now! I sent you a patch. On Mar 19, 9:09 pm, mdipierro wrote: > True. Can you send me a patch? For now we just assume that slices with > negative indexes are not supported. > > On Mar 19, 7:19 pm, "mr.freeze" wrote: > > > Correct me if I'm wrong but... > > > In Field.__getslice__, when

[web2py] Re: AutocompleteWidget suggestion

2010-03-19 Thread Peter Etchells
to continue, after finger trouble... .select(distinct=distinct, with argdistinct=False in __init-- another less useful suggestion is to optionally allow the search on any part of the string, rather than just the beginning. rows = self.db(field.like('%'+ self

[web2py] AutocompleteWidget suggestion

2010-03-19 Thread Peter Etchells
Autocomplete is a very useful widget, thanks. In case it has missed anyone's attention, it can be used to autocomplete strings without reference to another table or field, eg db.person.name.widget=AutocompleteWidget(request, db.person.name) In this case, it is useful to have a autocomplete list

[web2py] Re: Possible bug in Field.__getslice__

2010-03-19 Thread mdipierro
True. Can you send me a patch? For now we just assume that slices with negative indexes are not supported. On Mar 19, 7:19 pm, "mr.freeze" wrote: > Correct me if I'm wrong but... > > In Field.__getslice__, when 'start' is less than 0, pos0 is a string > but the function always tries to do 'int(po

[web2py] Re: usern...@localhost

2010-03-19 Thread mdipierro
I will take a patch. On Mar 19, 6:02 pm, Jonathan Lundell wrote: > I think IS_EMAIL should permit @localhost. Anybody disagree? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To un

[web2py] Re: PyPy 1.2 released!

2010-03-19 Thread mdipierro
Keep us posted. this is important! On Mar 19, 6:13 pm, Joe Barnhart wrote: > I have to say... WOW.   Just WOW.  The performance they're getting -- > even at this "post beta" stage of development -- is breathtaking. > They've benchmarked Twisted on it and seen huge performance gains vs. > CPython

[web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread mdipierro
had a long day, can somebody provide an execute summary of all the tests? On Mar 19, 3:33 pm, Timothy Farrell wrote: > Thank you Kuba.  Would you mind re-running the 4x pound test like this also? > > On 3/19/2010 3:09 PM, Kuba Kucharski wrote: > > > One instance of each, with 10 calls in a connec

[web2py] Re: About backward compatibility

2010-03-19 Thread mdipierro
Backward compatibility does not mean "forever" it means that we will not break it in small steps. We will break in one big step by releasing a new product, when/if there will a need for it. Like move to 3.x in 2-3 years time. When that happens we will replace the form system with a better one if a

[web2py] Re: Layout Plugin

2010-03-19 Thread mdipierro
The plugin should not touch your static files but only layout.html and it should move your original views/layout.html into private/ layout.html You should be able to recover cy cp private/layout.html views/layout.html On Mar 19, 10:09 am, Matthew McNaughton wrote: > Greetings team, > I recently

[web2py] Re: Does the pdf manual differ from the online official web2py book a lot?

2010-03-19 Thread mdipierro
I can do it but give a week or two. On Mar 19, 9:44 am, Thadeus Burgess wrote: > Speaking of this. Massimo can we get a "latest update" feed for the > online book, to make it easier to keep track of new things? > > -Thadeus > > On Fri, Mar 19, 2010 at 9:44 AM, Thadeus Burgess > wrote: > > New w

[web2py] Possible bug in Field.__getslice__

2010-03-19 Thread mr.freeze
Correct me if I'm wrong but... In Field.__getslice__, when 'start' is less than 0, pos0 is a string but the function always tries to do 'int(pos0) + 1' The function should also probably check if 'stop' is sys.maxint which is what will be passed for things like [-4:] Also, are there two __getitem_

Re: [web2py] Re: usern...@localhost

2010-03-19 Thread Jonathan Lundell
On Mar 19, 2010, at 4:30 PM, Yarko Tymciurak wrote: > On Mar 19, 6:02 pm, Jonathan Lundell wrote: >> I think IS_EMAIL should permit @localhost. Anybody disagree? > > I can see your motivation (development), but do you need that? > Would you also allow u...@127.0.0.1? or u...@69.45.126.113 (I h

[web2py] Re: usern...@localhost

2010-03-19 Thread Yarko Tymciurak
On Mar 19, 6:02 pm, Jonathan Lundell wrote: > I think IS_EMAIL should permit @localhost. Anybody disagree? I can see your motivation (development), but do you need that? Would you also allow u...@127.0.0.1? or u...@69.45.126.113 (I have no idea what that is)? At first blush, it feels like you'

[web2py] PyPy 1.2 released!

2010-03-19 Thread Joe Barnhart
I have to say... WOW. Just WOW. The performance they're getting -- even at this "post beta" stage of development -- is breathtaking. They've benchmarked Twisted on it and seen huge performance gains vs. CPython 2.6.2 http://morepypy.blogspot.com/2010/03/hello.html I can't wait to download it o

[web2py] Re: web2py beautification

2010-03-19 Thread Yarko Tymciurak
On Mar 19, 2:24 am, mdipierro wrote: > I played with ez-css (which I like) but yet it reminded why I used > tables. Yeah - the presence of tables in the layout really causes troubles! > Here is my problem and I am sure it is just me being dumb. Say > I want a header, a footer and two columns in

[web2py] usern...@localhost

2010-03-19 Thread Jonathan Lundell
I think IS_EMAIL should permit @localhost. Anybody disagree? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegr

[web2py] Re: substring comparison in GAE query

2010-03-19 Thread howesc
Thadeus, i'm not mixing frameworks right now - web2py has been my exclusive home for over a year now. :) It also looks like there is some sort of substring tools with some (all?) of the relational db's http://groups.google.com/group/web2py/browse_thread/thread/eb8ce28b34fd0aa0/48bf0788ba899158?ln

Re: [web2py] Re: problema con mysql y apache

2010-03-19 Thread Wes James
is your web2py set to the same user permissions as apache? I have had problem also with web2py running one version of python and then under apache running a different version of python are they the same? On Fri, Mar 19, 2010 at 3:33 PM, kike wrote: > the problem not is with web2py, the problem i

[web2py] Re: how to use GAE deferred

2010-03-19 Thread howesc
Hi all, So i need to do an GAE bigtable upgrade today, and add a new field and i need its value to be set properlyso i too want to do this. Turns out deferred is not what we web2py people want. just use the taskqueue directly. it's trivial (well i think it is, i have not deployed yet, but it

[web2py] Re: problema con mysql y apache

2010-03-19 Thread kike
the problem not is with web2py, the problem is in the apache web server, because web2py without apache work very good On 19 mar, 16:23, Wes James wrote: > run web2py from command line and see that mysql shows as driver available > > mac osx translator: > > ejecute web2py de línea de comando y vea

[web2py] Re: problema con mysql y apache

2010-03-19 Thread kike
yes all is in the same machine, how i now what version requires apache, because the problem is whit it On 19 mar, 16:19, Thadeus Burgess wrote: > This is on the same computer? > > Is the apache instance running the same version of python as you > installed the driver ? > > traductor Google: > > E

Re: [web2py] Re: problema con mysql y apache

2010-03-19 Thread Wes James
run web2py from command line and see that mysql shows as driver available mac osx translator: ejecute web2py de línea de comando y vea que el mysql muestra como programa piloto disponible -wes -- You received this message because you are subscribed to the Google Groups "web2py-users" group.

Re: [web2py] Re: problema con mysql y apache

2010-03-19 Thread Thadeus Burgess
This is on the same computer? Is the apache instance running the same version of python as you installed the driver ? traductor Google: Esto es en el mismo equipo? Es la instancia de Apache cuando se ejecuta la misma versión de Python como usted instalar el driver? -Thadeus On Fri, Mar 19

[web2py] Re: problema con mysql y apache

2010-03-19 Thread kike
yes i have installed python-mysqldb in my server, the problem come out when i mounted my aplication in the apache web server, when i develoment whith the basic web2py, "without apache server", i not have these problem On 19 mar, 16:10, Thadeus Burgess wrote: > Make sure that you have `python-mysq

Re: [web2py] Re: problema con mysql y apache

2010-03-19 Thread Thadeus Burgess
Make sure that you have `python-mysqldb` installed on the server. traductor Google: Asegúrese de que tiene `python-MySQLdb` instalado en el servidor. -Thadeus On Fri, Mar 19, 2010 at 4:05 PM, kike wrote: > te refieres a uno del apache en especifico, porque la aplicacion me > funcionaba de

[web2py] Re: problema con mysql y apache

2010-03-19 Thread kike
te refieres a uno del apache en especifico, porque la aplicacion me funcionaba de maravillas antes de ponerla en el apache, y para realmente no se que invertarle para que funcione On 19 mar, 15:48, Wes James wrote: > talvez no tienes un driver para mysql > > On Fri, Mar 19, 2010 at 2:31 PM, kike

Re: [web2py] substring comparison in GAE query

2010-03-19 Thread Wes James
yeh, I guess you can make some work arounds :) On Fri, Mar 19, 2010 at 2:59 PM, Thadeus Burgess wrote: > You *can*, but not natively. > > http://web2py.com/AlterEgo/default/show/248 > > rows = db(buyer.id>0).select().find(lambda row:row.name.startswith('C')) > > -Thadeus > > > > > > On Fri, Mar 1

Re: [web2py] substring comparison in GAE query

2010-03-19 Thread Thadeus Burgess
You *can*, but not natively. http://web2py.com/AlterEgo/default/show/248 rows = db(buyer.id>0).select().find(lambda row:row.name.startswith('C')) -Thadeus On Fri, Mar 19, 2010 at 3:53 PM, Wes James wrote: > You can't use "like" on gae. > > On Fri, Mar 19, 2010 at 2:33 PM, Thadeus Burgess

Re: [web2py] substring comparison in GAE query

2010-03-19 Thread Wes James
You can't use "like" on gae. On Fri, Mar 19, 2010 at 2:33 PM, Thadeus Burgess wrote: > You must be thinking of another framework and mixing the two? > > I read every post and have not seen that. > > Perhaps you mean db(db.table.string.like("%.com")).select() > > -Thadeus > > -- You received thi

Re: [web2py] problema con mysql y apache

2010-03-19 Thread Wes James
talvez no tienes un driver para mysql On Fri, Mar 19, 2010 at 2:31 PM, kike wrote: > tengo una aplicacion terminada pero cuando la monto en el apache me > lanza el siguiente tiket: Cual es el problema > > > > Traceback (most recent call last): >  File "/home/kike/sbdv/web2py/gluon/restricted.

Re: [web2py] substring comparison in GAE query

2010-03-19 Thread Thadeus Burgess
You must be thinking of another framework and mixing the two? I read every post and have not seen that. Perhaps you mean db(db.table.string.like("%.com")).select() -Thadeus On Fri, Mar 19, 2010 at 2:49 PM, howesc wrote: > Hello, > > I swear i saw a post in the last week about creating data

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Timothy Farrell
Thank you Kuba. Would you mind re-running the 4x pound test like this also? On 3/19/2010 3:09 PM, Kuba Kucharski wrote: One instance of each, with 10 calls in a connection as it is closer to reallife scenario: (numbers speak for themselves) CHERRYPY: r...@kubatron:/home/kuba/httperf-0.9.0/sr

[web2py] problema con mysql y apache

2010-03-19 Thread kike
tengo una aplicacion terminada pero cuando la monto en el apache me lanza el siguiente tiket: Cual es el problema Traceback (most recent call last): File "/home/kike/sbdv/web2py/gluon/restricted.py", line 173, in restricted File "/home/www-data/web2py/applications/SBDV/models/db.py", lin

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Thadeus Burgess
The whole UI paradigm is a pain, regardless of what programming language or platform. Windows Forms makes it easy, but still archaic. -Thadeus On Fri, Mar 19, 2010 at 2:41 PM, Jonathan Lundell wrote: > On Mar 19, 2010, at 11:18 AM, Thadeus Burgess wrote: > >> Maybe the next version of CSS...

[web2py] Re: About backward compatibility

2010-03-19 Thread stefaan
> I've just got to read that the yii framework folks share the same > oppinion as me about backward compatibility and the payoff to mantain it > for ever. Of course everyone is entitled to his/her own opinion, but I would like to point out that while maintaining backward compatibility in the long

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Kuba Kucharski
One instance of each, with 10 calls in a connection as it is closer to reallife scenario: (numbers speak for themselves) CHERRYPY: r...@kubatron:/home/kuba/httperf-0.9.0/src# ./httperf --hog --server 192.168.0.1 --port=8000 ==uri=/vae/default/benchmark2 --num-conns=1 --num-calls=10 httperf -

[web2py] substring comparison in GAE query

2010-03-19 Thread howesc
Hello, I swear i saw a post in the last week about creating database queries with substring syntax for filtering like: query = db(db.table.string_field[:4] == ".com") but i can't find the post about that. am i dreaming? and does something like this work on the Google App Engine? I was trying

Re: [web2py] Re: best web frameworks

2010-03-19 Thread Alex Fanjul
actually it doesnt help too much...was curiosity... :-) El 19/03/2010 18:46, selecta escribió: hmmm, what do I learn from that? What should I use they are all the same (oh yes different licenses and dependencies on different py versions) or is this comparision pointless? Confusion o_O On Mar 19

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Jonathan Lundell
On Mar 19, 2010, at 11:18 AM, Thadeus Burgess wrote: > Maybe the next version of CSS... but as long as IE is around, growth > of web standards will always be stunted. Not CSS3, anyway. I'm doubtful anyway, since CSS is so heavily embedded in browsers. I think we're stuck with the basic model.

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Vasile Ermicioi
I would add a vote for Rocket. A few thoughts about: - rocket is developed inside our community, that means more control over it: feedback, contributions etc - still young, that means it will be optimized :) I believe that Tim and others will do so - one file And even if cherrypy is only a bit f

Re: [web2py] Re: Using the Template System to Generate Emails

2010-03-19 Thread Thadeus Burgess
The reason is because the content type is encoded as Text not HTML. Without the proper meta information sent to the SMTP server, emails will not display correctly. Use the following class lined out in the wiki, works like a charm. http://wiki.web2py.com/Sending_Email_with_Plain_Text_HTML_Versions

Re: [web2py] Re: Using the Template System to Generate Emails

2010-03-19 Thread Alexandre Andrade
the trick is that message is first text, then html mail.send(to=[recipient],subject='Controleer uw adresgegevens in Fitwise',message=message) will result in a text message. to render as html, is : mail.send(to=[recipient],subject='Controleer uw adresgegevens in Fitwise',message=[None,message])

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Thadeus Burgess
Maybe the next version of CSS... but as long as IE is around, growth of web standards will always be stunted. -Thadeus On Fri, Mar 19, 2010 at 12:59 PM, Jonathan Lundell wrote: > On Mar 19, 2010, at 8:46 AM, Thadeus Burgess wrote: > >> Its really not hard, and the box model is not that bad,

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Jonathan Lundell
On Mar 19, 2010, at 8:46 AM, Thadeus Burgess wrote: > Its really not hard, and the box model is not that bad, its just > confusing and most don't know how to use it properly. That's not a good sign. > > http://www.stubbornella.org/content/2009/02/12/css-doesn%E2%80%99t-suck-you%E2%80%99re-just-

[web2py] Re: Using the Template System to Generate Emails

2010-03-19 Thread DenesL
Annet, maybe this will help http://groups.google.com/g/4247fb7b/t/4b6d3b0c8a822c83/d/7964e5b019d1c3d9 On Mar 19, 12:49 pm, annet wrote: > In my application all functions related to sending mail from it work. > The main function reads like: > > def send_mail(): > > nfas=db(db.nfa.nfatype==4).sele

Re: [web2py] Re: best web frameworks

2010-03-19 Thread Thadeus Burgess
quick! everyone, comment good things about web2py! -Thadeus On Fri, Mar 19, 2010 at 12:46 PM, selecta wrote: > hmmm, what do I learn from that? What should I use they are all the > same (oh yes different licenses and dependencies on different py > versions) or is this comparision pointless?

[web2py] Re: best web frameworks

2010-03-19 Thread selecta
hmmm, what do I learn from that? What should I use they are all the same (oh yes different licenses and dependencies on different py versions) or is this comparision pointless? Confusion o_O On Mar 19, 12:53 pm, Alex Fanjul wrote: > FYI:http://www.bestwebframeworks.com/python/ > -- > Alejandro Fa

Re: [web2py] web2py api search - edit_area plugin

2010-03-19 Thread Wes James
On Fri, Mar 19, 2010 at 11:34 AM, Thadeus Burgess wrote: > You could do a > > def install(): >   if db(db.table.id > 0).count() == 0: >      db.table.insert(record1) >      db.table.insert(record2) >   if db(db.table2.id > 0).count() == 0: >      db.table2.insert(record1) > > install() > > -Thadeu

Re: [web2py] web2py api search - edit_area plugin

2010-03-19 Thread Thadeus Burgess
You could do a def install(): if db(db.table.id > 0).count() == 0: db.table.insert(record1) db.table.insert(record2) if db(db.table2.id > 0).count() == 0: db.table2.insert(record1) install() -Thadeus On Fri, Mar 19, 2010 at 12:22 PM, Wes James wrote: > Here is how t

[web2py] Re: Using the Template System to Generate Emails

2010-03-19 Thread annet
In my application all functions related to sending mail from it work. The main function reads like: def send_mail(): nfas=db(db.nfa.nfatype==4).select(db.nfa.ALL,orderby=db.nfa.bedrijf) for nfa in nfas: context=dict(nfa=nfa) message=response.render('clublocatormail/ send_mail

Re: [web2py] legacy databases

2010-03-19 Thread Thadeus Burgess
You need to define your tables in web2py. As of yet there is no db introspection for db. db.define_table('tablename', *Fields) There is also a thing called "keyedtables" which is for legacy databases. -Thadeus On Fri, Mar 19, 2010 at 10:44 AM, pacopyc wrote: > Hi, I need to develope a web

[web2py] legacy databases

2010-03-19 Thread pacopyc
Hi, I need to develope a web application with legacy database (Oracle). Database's tables have an auto increment field (id) and then this is ok. I tried to build a new application and I set database connection (db.py). No error (connection string is ok) but if I try to use "appadmin" application I

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Kuba Kucharski
> > My point here was about the general web2py population rather than your > "thing".  No offense intended, but you have a special case.  web2py handles > web-services but that is not it's primary function. yes, true, I was just explaining my httperf thinking >I think Massimo wishes > to primari

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Thadeus Burgess
There is a conspiracy that the google bot reduces the page ranking if it uses a table layout instead of css layout. I don't believe it though, since why would google NOT index something? The limitations of tables mean you can't reorganize your content, that is the beauty of css, you can take the

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Timothy Farrell
In my own test, the difference (on Windows) between 1 and 10 yields a ~2.5x increase in requests per second. I don't have a readily accessible Linux right now. Kuba, please run these>numbers again with --num-calls=10. my reality is a lot of concurrent connections with only one call. I

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Jonathan Lundell
On Mar 19, 2010, at 7:27 AM, Thadeus Burgess wrote: > CSS does not suck, your just doing it wrong! > > Massimo, I have done this layout that you want many many times in css, > without a framework, ez-css makes this even easier. The author of ez-css is refreshingly candid, at least by implication

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Kuba Kucharski
On Fri, Mar 19, 2010 at 2:48 PM, mdipierro wrote: > Can you also do me a favor? Can you benchmark sneaky.py (in web2py/ > gluon/)? In my tests it was faster than cherryby and I thought rocket > was an improvement over it. ok, as soon as I get back to my testing environment again -- You received

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Kuba Kucharski
>Just looking over the httperf command, Kuba used --num-calls=1 This would not >be an accurate real-world test because it creates a new connection for every >request whereas most >browsers span requests over only a few connections. >Nicholas Piel's test used --num-calls=10 for testing HTTP/1.1

[web2py] Layout Plugin

2010-03-19 Thread Matthew McNaughton
Greetings team, I recently tried to use the layout plugin, but my experience has been less than stellar. After installing the plug in, and choosing a design to use, I get a web2py site with only text and no color. While I would love to get the layout plugin to work, any design would be good at thi

[web2py] Re: routes.py not working

2010-03-19 Thread Francisco Costa
Thank you mr.feeze and Vasile for your help I wasn't.. :/ Now it works perfectly! On Mar 19, 12:32 pm, Vasile Ermicioi wrote: > yes, to apply changes in routes you need to restart web server -- You received this message because you are subscribed to the Google Groups "web2py-users" group. T

Re: [web2py] Re: Does the pdf manual differ from the online official web2py book a lot?

2010-03-19 Thread Thadeus Burgess
Speaking of this. Massimo can we get a "latest update" feed for the online book, to make it easier to keep track of new things? -Thadeus On Fri, Mar 19, 2010 at 9:44 AM, Thadeus Burgess wrote: > New web2py features added to the online book, so you will miss certain > things, since the PDF bo

Re: [web2py] Re: Does the pdf manual differ from the online official web2py book a lot?

2010-03-19 Thread Thadeus Burgess
New web2py features added to the online book, so you will miss certain things, since the PDF book is about a year old now, whereas the online book is being added to and expanded. -Thadeus On Fri, Mar 19, 2010 at 8:12 AM, mdipierro wrote: > One month ago they were identical but the online one

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Timothy Farrell
On 3/19/2010 9:27 AM, Thadeus Burgess wrote: CSS does not suck, your just doing it wrong! Isn't that supposed to be "Javascript"? CSS has never sucked, only IE's broken support for it. =) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. T

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Thadeus Burgess
By the way, it is advantageous to SEO purposes to always have your HTML content physically in the order of relevance (meaning content before sidebar, site name before content, etc...). So having to define your content before the sidebar is a good thing! Regardless if its rendered location is diffe

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Timothy Farrell
Just looking over the httperf command, Kuba used --num-calls=1 This would not be an accurate real-world test because it creates a new connection for every request whereas most browsers span requests over only a few connections. Nicholas Piel's test used --num-calls=10 for testing HTTP/1.1 ser

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Thadeus Burgess
CSS does not suck, your just doing it wrong! Massimo, I have done this layout that you want many many times in css, without a framework, ez-css makes this even easier. And the way you describe it, ez-css does exactly what you want? Look at their layout 2. So the blue number 1 (1 comes first physi

[web2py] Re: about syntax in web2py

2010-03-19 Thread DenesL
OK, but I believe you have another problem, in the statement db[table].insert(field=sh.cell_value(row,col)) field here is evaluated as 'field' not as the content of the field variable so you are setting a field named 'field' to the content of the cell, you would have to do: db[table].insert(** {

[web2py] Re: about syntax in web2py

2010-03-19 Thread tandnk50
ok, I solved my problem :) , I missed a ) thank you On 19 Tháng Ba, 20:51, tandnk50 wrote: > ok, this is my action code. I want import data > > def read_xls(): >     exec('import applications.%s.modules.xlrd as xlrd' % > request.application) >     import os >     path=os.path.join > (request.fold

Re: [web2py] Re: about syntax in web2py

2010-03-19 Thread Wes James
On Fri, Mar 19, 2010 at 7:51 AM, tandnk50 wrote: > ok, this is my action code. I want import data > > >    return dict(students=studens) > you have dict(students=studens) - mispelled second students.??? -wes -- You received this message because you are subscribed to the Google Groups "

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Alex Fanjul
Massimo, there is no possibility to keep both of two and select one? anyway it's only a file isn't it? Or maybe keep it as plugins to download? alex El 19/03/2010 14:24, mdipierro escribió: Clearly we have conflicting benchmarks. I like Rocket because it is cleaner but we need to go with the fa

[web2py] Re: about syntax in web2py

2010-03-19 Thread tandnk50
ok, this is my action code. I want import data def read_xls(): exec('import applications.%s.modules.xlrd as xlrd' % request.application) import os path=os.path.join (request.folder,'private','a_dummy_file_name.xls') book = xlrd.open_workbook(path) sh = book.sheet_by_index(0)

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Timothy Farrell
This is a different test than the one I presented. The test I presented was run on Windows with one instance and tested with ApacheBench. I've looked at httperf a little and it seems to be a more realistic test than ApacheBench. Due to the nature of how Rocket handles listening sockets, it i

[web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread mdipierro
Can you also do me a favor? Can you benchmark sneaky.py (in web2py/ gluon/)? In my tests it was faster than cherryby and I thought rocket was an improvement over it. On Mar 19, 8:43 am, Kuba Kucharski wrote: > I like Rocket too. I would like it to be better than Cherrypy > > -- > Kuba -- You re

[web2py] About backward compatibility

2010-03-19 Thread Alex Fanjul
I've just got to read that the yii framework folks share the same oppinion as me about backward compatibility and the payoff to mantain it for ever. Reading this article you can read that they have realased a big

[web2py] Re: about syntax in web2py

2010-03-19 Thread DenesL
Can you show the action's whole source?. On Mar 19, 9:38 am, tandnk50 wrote: > I'm sorry . > But my above code writeen in a action, the 'return dict()' is for the > action > > On 19 Tháng Ba, 20:34, DenesL wrote: > > > return may only occur syntactically nested in a function definition, > > you

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Kuba Kucharski
I like Rocket too. I would like it to be better than Cherrypy -- Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr.

[web2py] Re: about syntax in web2py

2010-03-19 Thread tandnk50
I'm sorry . But my above code writeen in a action, the 'return dict()' is for the action On 19 Tháng Ba, 20:34, DenesL wrote: > return may only occur syntactically nested in a function definition, > you don't have one. > > On Mar 19, 9:06 am, tandnk50 wrote:> I wrote > statements but invalid sy

[web2py] tableless and customizable css forms

2010-03-19 Thread Alex Fanjul
Hi all, Some of you can remember the recurrent discussion about "tableless and customizable css forms"... There is a new feature in Yii framework about forms builder and there is -at least- a very interesting article about it here: http://www.yiiframework.com/doc/guide/form.builder It's so muc

[web2py] Re: about syntax in web2py

2010-03-19 Thread DenesL
return may only occur syntactically nested in a function definition, you don't have one. On Mar 19, 9:06 am, tandnk50 wrote: > I wrote statements but invalid syntax and i don't know the problem, > for example  : > def func(): for i in range(3): >      for j in range(2): >          if i>1 : >

[web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread mdipierro
Clearly we have conflicting benchmarks. I like Rocket because it is cleaner but we need to go with the fastest. Let's wait for Tim response and we there is a disagreement I propose that a few more people try reproduce the benchmarks (to make sure there is not something weird in the setup) and then

[web2py] Re: Performance of python webservers

2010-03-19 Thread mdipierro
serial web servers are faster (because no concurrency overhead) but they are only appropriate when the requests are very fast (they do not perform any complex operation) else other users have to wait in line when a long running request is being processed. Not good for general use. On Mar 19, 7:41 

[web2py] Re: Does the pdf manual differ from the online official web2py book a lot?

2010-03-19 Thread mdipierro
One month ago they were identical but the online one is a wiki so some users have improved it, but no major differences yet. On Mar 19, 3:37 am, zkingw wrote: > Hi, all: > > I came across web2py earlier this week, and I fall into love with it > right away, and decided to learn it as my very first

[web2py] about syntax in web2py

2010-03-19 Thread tandnk50
I wrote statements but invalid syntax and i don't know the problem, for example : for i in range(3): for j in range(2): if i>1 : print i else: print j return dict() (or any statement ( eg, print 'hello')..) but invaliad syntax at return ... ?? how

[web2py] Re: Recording voice samples from a web2py app

2010-03-19 Thread aure
Hello again, dspiteself, I had a look to red5, and I have to admit that I do not understand much about it yet. If I manage to run a red5 server, would it possible to access it from my web2py application? (Sorry, I am very new to such issues.) Thank you, Aurelien On 18 mar, 23:54, dspiteself wr

Re: [web2py] Performance of python webservers

2010-03-19 Thread Vasile Ermicioi
"for one of their services" not for all :) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more

Re: [web2py] Performance of python webservers

2010-03-19 Thread Vasile Ermicioi
"Ebay is using FAPWS for one of their services." -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. Fo

Re: [web2py] Re: routes.py not working

2010-03-19 Thread Vasile Ermicioi
yes, to apply changes in routes you need to restart web server -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@google

Re: [web2py] Re: gae appadmin

2010-03-19 Thread Matt Murphy Garmur
i meant to say i upgraded to snow leopard (from tiger). that's what bumped me to 2.6, i suppose. matt On Fri, Mar 19, 2010 at 7:13 AM, mattynoce wrote: > my mistake -- i upgraded to leopard and it started using python 2.6. > it still worked with the old version (1.74.11) but not with the new. >

[web2py] Re: routes.py not working

2010-03-19 Thread mr.freeze
Just to confirm, you are restarting the web server, yes? On Mar 19, 7:16 am, Francisco Costa wrote: > Hello Vasile, > Thank you for your help! > I've changed my routes.py to > > routes_in = ( > ('/admin/(.*)', '/admin/$1'), > ('/(.*)', '/init/$1'), > ) > > but /init/ still displays as you can see

[web2py] Re: routes.py not working

2010-03-19 Thread Francisco Costa
Hello Vasile, Thank you for your help! I've changed my routes.py to routes_in = ( ('/admin/(.*)', '/admin/$1'), ('/(.*)', '/init/$1'), ) but /init/ still displays as you can see it here: http://bondiu.info I've also chmod the routes.py to 777 but no luck either On Mar 19, 11:50 am, Vasile Ermici

[web2py] Re: Recording voice samples from a web2py app

2010-03-19 Thread aure
Thank you Yarko for your description of possible ways. And thank you dspiteself for your link. It looks nice. I will take another more in depth look at it later today. Aurelien On 18 mar, 23:54, dspiteself wrote: > There are several options most cost money and require a flash media > server. He

[web2py] best web frameworks

2010-03-19 Thread Alex Fanjul
FYI: http://www.bestwebframeworks.com/python/ -- Alejandro Fanjul Fdez. alex.fan...@gmail.com www.mhproject.org -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from thi

Re: [web2py] Re: routes.py not working

2010-03-19 Thread Vasile Ermicioi
you use init, sorry routes_in = ( ('/admin/(.*)', '/admin/$1'), ('/(.*)', '/init/$1'), ) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

Re: [web2py] Re: routes.py not working

2010-03-19 Thread Vasile Ermicioi
or better this routes_in = ( ('/admin/(.*)', '/admin/$1'), ('/(.*)', '/999/$1'), ) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2

Re: [web2py] Re: routes.py not working

2010-03-19 Thread Vasile Ermicioi
try something like that routes_in = ( ('/([^(admin)]*)', '/init/$1'), ) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr

[web2py] Re: gae appadmin

2010-03-19 Thread mattynoce
my mistake -- i upgraded to leopard and it started using python 2.6. it still worked with the old version (1.74.11) but not with the new. i'm sure that's the issue. sorry about that. the problem was manifesting itself by telling me it couldn't find wsgiserver but it seems that's irrelevant at this

[web2py] Re: Migrating web2py to GAE

2010-03-19 Thread Al
Thanks mdipierro. It is indeed the URL causing the problem, as it defaults to "localhost" rather than "127.0.0.1" when I click the Browse button after Run. I did not realise the code inside appadmin.py actually checks for "127.0.0.1". Now I can really troubleshoot myownapp to make it work on GAE A

[web2py] Re: routes.py not working

2010-03-19 Thread Francisco Costa
Hello! I've tried lots of combinations but none seem to work. I really would like to get rid of the /init/ in the url. Does anyone knows what the problem may be? On Mar 18, 7:08 pm, Francisco Costa wrote: > Hello > I have step up an web2py project onhttp://bondiu.info > > I've started to edit

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-19 Thread Kuba Kucharski
>Are these numbers consistent with Tim numbers? Could this be dues to a >different memory usage? 1. Tim? 2. I have a lot of free memory while testing I wrote email to an author of the blog entry about wsgi webserver benchmarks - Nicholas Piël http://nichol.as/benchmark-of-python-web-servers In

  1   2   >