[web2py] Re: custom validation problem

2010-03-16 Thread mohammed al-moustady
could you please tell me how to do/find a print statement? or direct me to a chapter in the documentation or something? On Mar 16, 4:07 pm, mdipierro wrote: > can you add some print statements to determine which lines are > executed and which not? I suspect a logic problem. > > On Mar 16, 3:39 a

Re: [web2py] [Interview] Where do you use web2py?

2010-03-16 Thread Joe Barnhart
I'm using web2py to create applications for competitive swimming. I have an online meet entry website now for high school swim events and plan to add a website that will actually run the meet poolside during the event. It's a perfect application for web2py since it can be loaded and run from a me

Re: [web2py] Re: Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-16 Thread Vincent Borghi
On Tue, Mar 16, 2010 at 4:11 PM, mdipierro wrote: > I think what Vincent is asking is not so much importing capability but > an interface that can read an excel file (or a csv file) asks you the > names (guessing from the header) and types (guessing from data) of > columns and then writes the mode

[web2py] auth_group

2010-03-16 Thread weheh
I'd like to build an app that has typical social networking capabilities. It seems as though auth_group and auth_membership have exactly the kind of functionality that one would like to apply to such things as making a user a member of a common interest group. In such a case, referring to the group

Re: [web2py] Do you know Redis?

2010-03-16 Thread Thadeus Burgess
Interesting, though for integration with the DAL this would require... some work! :) It seems that you will have to manually store lots of metadata that a RDMS already handles for you with foreign key relationships, etc etc.. "uid:post:100:name" "uid:post:100:author" "uid:post:100:content" "uid:po

[web2py] Re: Fwd: Coding Sprint Description

2010-03-16 Thread Yarko Tymciurak
Hey Massimo - Planning to see you there. Regards, Yarko On Mar 16, 10:13 pm, Massimo Di Pierro wrote: > Begin forwarded message: > > > From: Joel Luellwitz > > Date: March 16, 2010 9:50:36 PM CDT > > To: hutch , Adam McGovern ,   > > "DiPierro, Massimo" > Subject: Coding Sprint Description >

Re: [web2py] Do you know Redis?

2010-03-16 Thread Thadeus Burgess
It is an interesting concept. How would you design the following for a key=>value store like Redis? post: name author -> FK auth_user content date tags category comments: post -> FK post author -> FK auth_user content date -Thadeus On Tue, Mar 16, 2010 at 7:14 PM, Alex

[web2py] jqGrid slice

2010-03-16 Thread mr.freeze
Here's a simple example of getting jqGrid working with web2py. I'll be improving it as I go along so feedback is welcome: http://www.web2pyslices.com/main/slices/take_slice/75 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group

[web2py] Re: Planning to make a big project

2010-03-16 Thread JorgeRpo
I am interested in this topic too, as I am also. planning a big project On Mar 16, 9:18 pm, Śląski wrote: > Hi, >   I am planning to make some big project (100 000 users, approximately > 500 request pre second - in hot time). > For performance I'm going to use no relational dbms (each request >

Re: [web2py] Fwd: Coding Sprint Description

2010-03-16 Thread Álvaro Justen [Turicas]
On Wed, Mar 17, 2010 at 00:13, Massimo Di Pierro wrote: > > Begin forwarded message: > > From: Joel Luellwitz > Date: March 16, 2010 9:50:36 PM CDT > To: hutch , Adam McGovern , > "DiPierro, Massimo" > Subject: Coding Sprint Description > Flourish Conference 2010 will be hosting a coding sprint

Re: [web2py] Re: ModWSGI vs CherryPy vs others.

2010-03-16 Thread Thadeus Burgess
I am using Cherokee + uWSGI, couldn't be happier... only reason for not using nginx is I do love cherokee's web interface for configuration. -Thadeus On Tue, Mar 16, 2010 at 10:04 PM, mr.freeze wrote: > I wonder how Passenger WSGI compares? I'm running web2pyslices.com > with it but might mo

[web2py] Planning to make a big project

2010-03-16 Thread Śląski
Hi, I am planning to make some big project (100 000 users, approximately 500 request pre second - in hot time). For performance I'm going to use no relational dbms (each request could cost lot of instructions in relational dbms like mysql) - so i can't use DAL. My question is - how web2py is wor

[web2py] Fwd: Coding Sprint Description

2010-03-16 Thread Massimo Di Pierro
Begin forwarded message: From: Joel Luellwitz Date: March 16, 2010 9:50:36 PM CDT To: hutch , Adam McGovern , "DiPierro, Massimo" Subject: Coding Sprint Description Flourish Conference 2010 will be hosting a coding sprint to develop an open source application in Web2py. Massimo Di Pierro

[web2py] Re: ModWSGI vs CherryPy vs others.

2010-03-16 Thread mr.freeze
I wonder how Passenger WSGI compares? I'm running web2pyslices.com with it but might move to uWSGI if there is a significant reason. Any opinions? On Mar 16, 9:36 pm, Alex Fanjul wrote: > uWSGI is the clear winner by far... > > I think the winner mix is uWSGI + NGINX > > http://blog.zacharyvoase.

Re: [web2py] ModWSGI vs CherryPy vs others.

2010-03-16 Thread Alex Fanjul
uWSGI is the clear winner by far... I think the winner mix is uWSGI + NGINX http://blog.zacharyvoase.com/2010-03-05-deployment-with-uwsgi-and-nginx El 17/03/2010 2:58, waTR escribió: http://nichol.as/benchmark-of-python-web-servers -- Alejandro Fanjul Fdez. alex.fan...@gmail.com www.m

Re: [web2py] Re: web2py and windows binary need testers

2010-03-16 Thread Wes James
I just tried with: web2py -k server.key.insecure -c server.crt and then put in 443 in for the port and was able to go to: https://127.0.0.1/welcome/default/index and firefox gave me the insecure site stuff of course since it was a self signed cert self signed certs: https://help.ubuntu.co

[web2py] ModWSGI vs CherryPy vs others.

2010-03-16 Thread waTR
http://nichol.as/benchmark-of-python-web-servers -- 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

[web2py] gae appadmin

2010-03-16 Thread mattynoce
hi, i've looked at some posts but can't seem to make this work. i can get appadmin to work on my local version of gae launcher (on a mac), but when i upload it, i can't get it to work on app engine even over https. i tried to migrate from 1.74.11 to 1.76.5 but when i did that, i couldn't get the g

[web2py] Re: Migrating web2py to GAE

2010-03-16 Thread Richard
what error do you get exactly? There are many possibilities when migrating to GAE... On Mar 16, 11:58 pm, Al wrote: > Hi, > > I have been trying to move myapp from web2py app to GAE without > success. I can manage to deploy web2py to GAE with the three built in > apps (admin, welcome and example

[web2py] Re: Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-16 Thread Brian M
I've used this wrapper (http://code.activestate.com/recipes/483742- easy-cross-platform-excel-parsing-with-xlrd/) for xlrd (http:// www.lexicon.net/sjmachin/xlrd.htm) with good results. As long as the worksheet has column headers as the first row you're good to go - it will read in the data and pu

[web2py] Do you know Redis?

2010-03-16 Thread Alex Fanjul
http://code.google.com/p/redis/ It sounds interesting, and his founder has been contracted by Vmware. alex -- 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, s

[web2py] Re: Checking if a webserver if running web2py

2010-03-16 Thread Christopher Steel
this would require an ssh connection as well I think... Chris On Mar 15, 6:06 pm, Christopher Steel wrote: > On Mar 14, 2:51 pm, Albert Abril wrote: > > > Hi! > > > There's some way to check to check from the browser if a web is running > > web2py? > > For example, Could i know ifwww.web2py.com

Re: [web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-03-16 Thread Tito Garrido
Is there a way to close the autocomplete field when the option get clicked? On Thu, Feb 18, 2010 at 11:40 AM, ecall wrote: > The trace come from a fresh (web2py 1.75.3) install. I just add the > magic. > > welcome/controllers/default.py : > -- > ### assume this action

Re: [web2py] web2py and windows binary need testers

2010-03-16 Thread Wes James
I got it to run fine on windows 7 on port 8000. I'll create a self-signed cert and see what happens running on :443. -wj On Tue, Mar 16, 2010 at 4:25 PM, mdipierro wrote: > I managed to build the web2py binary with rocket and ssl (keeping > 2.5.4) > > http://web2py.com/examples/static/1.76.5.1.

[web2py] Re: web2py and windows binary need testers

2010-03-16 Thread mr.freeze
I get this in Firefox / Windows 7 trying to connect to https://127.0.0.1:8000/admin: An error occurred during a connection to 127.0.0.1:8000. SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long) On Mar 16, 5:25 pm, mdipierro wrote: >

[web2py] Re: web2py and windows binary need testers

2010-03-16 Thread mr.freeze
What's the proper way to test ssl? On Mar 16, 5:31 pm, "mr.freeze" wrote: > I get this in Firefox / Windows 7 trying to connect > tohttps://127.0.0.1:8000/admin: > > An error occurred during a connection to 127.0.0.1:8000. > > SSL received a record that exceeded the maximum permissible length. >

[web2py] web2py and windows binary need testers

2010-03-16 Thread mdipierro
I managed to build the web2py binary with rocket and ssl (keeping 2.5.4) http://web2py.com/examples/static/1.76.5.1.b/web2py_win.zip Can you try it? Specifically, can you try it with ssl? Please let me know. Massimo -- You received this message because you are subscribed to the Google Groups

[web2py] Re: no more cherrypy wsgiserver

2010-03-16 Thread Michael Toomim
Did you do anything special to use apachebench on the cherrypy server? When I run "ab http://localhost/init/"; I get a "apr_socket_recv: Connection refused (111)" error from apachebench. If I do the same command when running the latest hg tip of web2py (with rocket), the benchmark works. I'm try

Re: [web2py] Re: xmlrpclib

2010-03-16 Thread Kuba Kucharski
yes, I found it before but misreaded thx -- Kuba On Tue, Mar 16, 2010 at 10:18 PM, mr.freeze wrote: > Here's the best solution I've found for this: > http://blog.bjola.ca/2007/08/using-timeout-with-xmlrpclib.html > > > On Mar 16, 4:03 pm, Kuba Kucharski wrote: >> so I do (on the xmlrpc clien

[web2py] Aligning subject fields using CRUD-display

2010-03-16 Thread Johann Spies
I have a model like this: db.define_table("policies_and_strategies", Field("country") , Field("policy_strategy_type") , Field("name_of_policy_strategy") , Field("brief_description_of_policy_strategy","text") , Field("

[web2py] Re: Aligning subject fields using CRUD-display

2010-03-16 Thread mdipierro
in the css label { white-space: nowrap; } td { text-align: left; vertical-align: top; } On Mar 16, 3:20 pm, Johann Spies wrote: > I have a model like this: > > db.define_table("policies_and_strategies", >                 Field("country") , >                 Field("policy_strategy_type"

Re: [web2py] Helper functions to "get one" from database

2010-03-16 Thread Thadeus Burgess
single_record = db(query).select().first() if not single_record: print "no record" else: print "record!", single_record You can also do db(query).count() db(query).select().last() -Thadeus On Tue, Mar 16, 2010 at 3:45 PM, Michael Toomim wrote: > Hi guys, I've found the following funct

[web2py] Re: using functions in an update query

2010-03-16 Thread Russell
Thanks mr.freeze, that's got it. And so obvious too. >>>db(db.products.id>0)._update(product_code=db.products.product_code[:2]) "UPDATE products SET product_code=SUBSTR(product_code,1,(2 - 0))" I guess my question was mainly about the SQL scalar functions supported by web2py, and the syntax for

[web2py] Re: xmlrpclib

2010-03-16 Thread mr.freeze
Here's the best solution I've found for this: http://blog.bjola.ca/2007/08/using-timeout-with-xmlrpclib.html On Mar 16, 4:03 pm, Kuba Kucharski wrote: > so I do (on the xmlrpc client) > >   import xmlrpclib >   server=xmlrpclib.ServerProxy('http://77.72.228.30/vae/default/call/xmlrpc') > > but I

Re: [web2py] Performance of python webservers

2010-03-16 Thread Thadeus Burgess
As far as I read, FAPWS3 locks on every request... meaning you cannot have any "connections" with a database? I might be wrong, but this is the impression from reading about it. Also, the author incorrectly states that Ebay uses FAPWS3... they actually use J2EE, as you can find many news articles

Re: [web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Matthew McNaughton
Not sure if this still helps, but I can confirm to having the same problem in u Ubuntu with Google chrome as well On Mar 16, 2010 4:27 PM, "Wes James" wrote: I took edit_area_full.js and took out the single line of js and put in: editAreaLoader.iframe_script = '

Re: [web2py] Performance of python webservers

2010-03-16 Thread Kuba Kucharski
http://github.com/william-os4y/fapws3#readme FAPWS3 is this really that good? -- 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

Re: [web2py] Re: Issues with the documentation

2010-03-16 Thread Thadeus Burgess
This is due to bugs in the latex to markdown conversion. It will just need to be fixed. Some examples cannot be fixed because of a custom latex converter that acts on top of the markdown, certain python symbols such as "%" break things. -Thadeus On Tue, Mar 16, 2010 at 3:53 PM, Magnitus wrot

Re: [web2py] Re: Issues with the documentation

2010-03-16 Thread Thadeus Burgess
This is actually python. It is string insertion with a dictionary instead of a list. Basically it is taking the Record (which is a dictionary) and string substituting it in. Where in the first form you have "Hello %s. This is a string" % ("world") Hello world. This is a string And in this form y

[web2py] [OT] xmlrpclib

2010-03-16 Thread Kuba Kucharski
so I do (on the xmlrpc client) import xmlrpclib server=xmlrpclib.ServerProxy('http://77.72.228.30/vae/default/call/xmlrpc') but I would like a timeout because oncoming line: server.query(.. tends to hang the program when the server is down I don't want threads. I just want it to timeout.

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Web, errata: At the very bottom of section 4.10, the example for the URL of the image is omitted. -- 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

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
> In section 4.6, the example for a request is not displayed at all > (compare it to the web version and you'll see immediately what I'm > talking about). Nevermind, I see that it is displayed, but after the start of the next section (my bad). However, comparing it with the web version now makes

[web2py] Helper functions to "get one" from database

2010-03-16 Thread Michael Toomim
Hi guys, I've found the following functions to be commonly useful in practice. Has anyone else written anything similar? Is there a better idiom here, or better names or interfaces for these? def get_one(query): result = db(query).select() assert len(result) <= 1, "GAH get_one called when

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Web Errata: In section 4.6, the last 4 fields describing the accessors for the request object are not properly aligned and all jumbled up in a single paragraph. Pdf: Errata: In section 4.6, the example for a request is not displayed at all (compare it to the web version and you'll see immediatel

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Pdf Issue: The pagination doesn't match the table of contents. -- 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...@googl

Re: [web2py] Re: Menu css

2010-03-16 Thread Kuba Kucharski
LOL :D just for u.. -- Kuba On Tue, Mar 16, 2010 at 9:27 PM, mr.freeze wrote: > Seems to be down.  Just me? > > On Mar 16, 2:53 pm, mdipierro wrote: >> I just fond this and it is nice:http://purecssmenu.com/ >> >> It does not mention any license. >> >> On Mar 16, 2:43 pm, "mr.freeze" wrote

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Pdf/Web Ambiguity: In section 4.2, it was not readily apparent (to me) that the init application doesn't exist by default and that really, it is simply a mecanism for the application programmer to define an handler. Perhaps it should be specified so that the reader is not left wondering. -- You

Re: [web2py] Re: Menu css

2010-03-16 Thread Johann Spies
On 16 March 2010 21:43, mr.freeze wrote: > Look in base.css . Specifically: > for background color, change the background property on: 'ul.web2py- > menu' > for menu items, set a color on: 'ul.web2py-menu li a' > Thank you, mr Freeze. That helped me immediately. Regards Johann -- "Blesse

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Web/Pdf Ambiguity: In section 3.6, line 16 of the model (the "'%(title)s'" part) is probably the hardest part of the code to grasp (it was for me) and yet very little elaboration is provided (leaving the reader wondering). It was not immediately clear to me that it was strictly for the presentati

[web2py] Issues with the documentation

2010-03-16 Thread Magnitus
As I am in the process of reading both the web and pdf versions of the manual (for which I am noticing some issues), I think I should state a list of issues I am seeing in case someone decides to "fix" it (would probably make his job easier). After all, as I'm reading it, it occured to me that I c

[web2py] Re: Menu css

2010-03-16 Thread mr.freeze
Seems to be down. Just me? On Mar 16, 2:53 pm, mdipierro wrote: > I just fond this and it is nice:http://purecssmenu.com/ > > It does not mention any license. > > On Mar 16, 2:43 pm, "mr.freeze" wrote: > > > Look in base.css . Specifically: > > for background color, change the background proper

Re: [web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Wes James
Any idea why the editAreaLoader.iframe_script line in edit_area_full.js has funny chars in it. When I was playing around with this for the API search I had to pull it from the browser and put it in http://jsbeautifier.org/ to make it legible... On Tue, Mar 16, 2010 at 12:50 PM, mdipierro wrote:

[web2py] Re: Where do you use web2py?

2010-03-16 Thread psikahtik
Praise be unto Dane! I would love to hear how this progresses. If I wasn't such a useless newb, I would help you out with this one. On Mar 15, 3:02 pm, Dane wrote: > I'm building an app for finding ultimate frisbee tournaments, leagues, > and pickup games by date, geographical proximity, and othe

[web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread szimszon
The problem is with every file... On márc. 16, 19:50, mdipierro wrote: > Can you help me debug it. It is a problem wit every file of just views > (.html)? > > On Mar 16, 11:28 am, stephen wrote: > > > > > Hello, > > > The admin file editor is not saving files when you press Ctrl-S. It > > was wo

[web2py] Re: Menu css

2010-03-16 Thread mdipierro
I just fond this and it is nice: http://purecssmenu.com/ It does not mention any license. On Mar 16, 2:43 pm, "mr.freeze" wrote: > Look in base.css . Specifically: > for background color, change the background property on: 'ul.web2py- > menu' > for menu items, set a color on: 'ul.web2py-menu li

Re: [web2py] Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Wes James
looking in the javascript there is a save entry in EA.prototype.execCommand but further down where execCommands are executed in the keyDown function, there is no Ctrl-s call. I just tried ctrl-y and ctrl-z and they work. I just added case "s" after case "y" like this: case "s":

[web2py] Re: Menu css

2010-03-16 Thread mdipierro
I just fond this and it is nice: http://purecssmenu.com/ It does not mention any license. On Mar 16, 2:43 pm, "mr.freeze" wrote: > Look in base.css . Specifically: > for background color, change the background property on: 'ul.web2py- > menu' > for menu items, set a color on: 'ul.web2py-menu li

[web2py] Re: Menu css

2010-03-16 Thread mr.freeze
Look in base.css . Specifically: for background color, change the background property on: 'ul.web2py- menu' for menu items, set a color on: 'ul.web2py-menu li a' On Mar 16, 2:27 pm, Johann Spies wrote: > I am struggling to find out exactly how the default web2py menu system > uses the css. > > I

[web2py] Menu css

2010-03-16 Thread Johann Spies
I am struggling to find out exactly how the default web2py menu system uses the css. I want to change the background colour and the text colour of the menu. A pointer will be very helpful please. Regards Johann. -- "Blessed are the poor in spirit: for theirs is the kingdom of heaven..

[web2py] Re: Menu css

2010-03-16 Thread mdipierro
No idea. I do not understand it either. On Mar 16, 2:27 pm, Johann Spies wrote: > I am struggling to find out exactly how the default web2py menu system > uses the css. > > I want to change the background colour and the text colour of the > menu. A pointer will be very helpful please. > > Regards

[web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread mdipierro
Can you help me debug it. It is a problem wit every file of just views (.html)? On Mar 16, 11:28 am, stephen wrote: > Hello, > > The admin file editor is not saving files when you press Ctrl-S. It > was working before revision > > http://code.google.com/p/web2py/source/detail?r=8fb95fee6a > > an

[web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread szimszon
I have the some issue on Linux and Chrome... On márc. 16, 18:22, stephen wrote: > Windows > > On Mar 16, 1:11 pm, Wes James wrote: > > > > > Are you on PC or mac. On mac, I noticed I had to press the command-key > > to get the save to work. > > > -wj > > > On Tue, Mar 16, 2010 at 10:28 AM, steph

[web2py] Re: redirect and ajax

2010-03-16 Thread mr.freeze
You don't need to go to the server to do a redirect. Try this: 111 222 If you are doing an ajax call for something other reason and redirecting after, you can do: 111 222 def treeCbChange(): return "window.location.href='%s'" % URL(r=request,f='index',args=request.vars.treeCb

[web2py] redirect and ajax

2010-03-16 Thread toan75
I have: in view: 111222 in control: def treeCbChange(): try: redirect(URL(r=request, f='index/'+request.vars.values()[0])) except: print 'error' But it can't redirect (it print 'error'). How am I supposed to do it? Regards Toan -- You received

[web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread stephen
Windows On Mar 16, 1:11 pm, Wes James wrote: > Are you on PC or mac. On mac, I noticed I had to press the command-key > to get the save to work. > > -wj > > On Tue, Mar 16, 2010 at 10:28 AM, stephen wrote: > > Hello, > > > The admin file editor is not saving files when you press Ctrl-S. It > > w

Re: [web2py] Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Wes James
Are you on PC or mac. On mac, I noticed I had to press the command-key to get the save to work. -wj On Tue, Mar 16, 2010 at 10:28 AM, stephen wrote: > Hello, > > The admin file editor is not saving files when you press Ctrl-S. It > was working before revision > > http://code.google.com/p/web2py/

[web2py] Re: URL structure for multilanguage site

2010-03-16 Thread Wikus van de Merwe
Aurelien, if your routes_in rule is: ('/app/(en|fr)/(.*)', r'/app/default/\2/\1') then for /app/fr/function you will get /app/default/function/fr and for /app/en/function/arg1/arg2 you will get /app/default/function/ arg1/arg2/en Your rule for routes_out now should be: ('/app/default/(.*)/(en|fr)

[web2py] Ctrl-S is not saving file in admin file editor

2010-03-16 Thread stephen
Hello, The admin file editor is not saving files when you press Ctrl-S. It was working before revision http://code.google.com/p/web2py/source/detail?r=8fb95fee6a and i filed an issue at http://code.google.com/p/web2py/issues/detail?id=72 . Thanks, Stephen -- You received this message because

[web2py] Performance of python webservers

2010-03-16 Thread Douglas Soares de Andrade
Hi all, I just received a link today with the benchmark of python webservers. http://nichol.as/benchmark-of-python-web-servers?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Nichol4s+%28Nicholas+Pi%C3%ABl%29&utm_content=Google+Reader How does rocket stand between these ? -- You rec

[web2py] Re: db select cache.ram.clear() and apache2 + wsgi not working

2010-03-16 Thread szimszon
Oh, sorry my fault I had a cache.ram left in a select() sorry... cache.disk seems to work correct :-o Sorry. On márc. 11, 16:03, mdipierro wrote: > very odd. This is the function gluon/cache.py that is supposed to do > the clearing: > >     defclear(self, regex=None): >         locker = open(sel

[web2py] Re: Default Application

2010-03-16 Thread mdipierro
:-) On Mar 16, 9:17 am, Kuba Kucharski wrote: > Massimo > > please, let us answer beginners' questions;) > > I think I speak for a community when I say that we do care about your time > > -- > Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" grou

[web2py] Re: Migrating web2py to GAE

2010-03-16 Thread mdipierro
Before you deply any app on GAE you need to run it locally first using dev_appserver. You have to run it locally and make sure you executed every query in your code at least once. Only then you can deploy it on GAE. The purpose of this is for GAE to discover which queries you use and build indexes.

[web2py] Re: Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-16 Thread mdipierro
I think what Vincent is asking is not so much importing capability but an interface that can read an excel file (or a csv file) asks you the names (guessing from the header) and types (guessing from data) of columns and then writes the model for you. Perhaps something that can deal with the case wh

[web2py] Re: Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-16 Thread Dragonfyre13
Well, my suggestion would be forget the XLS format for the first iteration. Use CSV. If you're not concerned with formulas, that's the cleanest route, and included in the default python install. (csv module). I use it all the time for my load test frameworks I build. It's not only very easy to use

Re: [web2py] Congratulations to all

2010-03-16 Thread Jason Brower
That's fantastic to hear! On Tue, 2010-03-16 at 04:11 -0700, dbb wrote: > web2py is the first to implement a working open source of HL7 protocol > as defined by HITSP, our efforts are being recognized around the globe > based on the questions we are receiving. > -- You received this message b

Re: [web2py] Default Application

2010-03-16 Thread Kuba Kucharski
Massimo please, let us answer beginners' questions;) I think I speak for a community when I say that we do care about your time -- 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.

[web2py] Re: using functions in an update query

2010-03-16 Thread mr.freeze
It will be faster if the update is performed on the set (without selecting each one): db(db.products.id>0).update(product_code=db.products.product_code[:2]) You can do _update to see what SQL will be generated. On Mar 16, 6:12 am, selecta wrote: > for p in db(db.products.id>0).select(): >   p.u

[web2py] Re: web2py.com is down !!?! No. but the firewall is blocking some users.

2010-03-16 Thread mr.freeze
Massimo, any luck? On Mar 11, 8:23 pm, Alex Fanjul wrote: > Massimo might you share your blocking/firewall script with us? I was > precisely hardening my VPS. Are you using it in VPS? > Thanks > Alex > > El 11/03/2010 18:15, mdipierro escribi : > > > > > just changing subject title... > > ... whi

Re: [web2py] Migrating web2py to GAE

2010-03-16 Thread Vasile Ermicioi
the main limitations that I met on gae are database queries, how do you use them? -- 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

Re: [web2py] Default Application

2010-03-16 Thread Francisco Costa
Thank you very much! I'm on Linux and worked five starts! Francisco Costa http://franciscocosta.com On Tue, Mar 16, 2010 at 13:34, Kuba Kucharski wrote: > linux/unix: > > cd web2py/applications > ln -s your_app init > > I assume you don't have a folder called init. > > in windows, .. hm: > http

Re: [web2py] Default Application

2010-03-16 Thread Kuba Kucharski
linux/unix: cd web2py/applications ln -s your_app init I assume you don't have a folder called init. in windows, .. hm: http://www.flexhex.com/docs/articles/hard-links.phtml this is what Timothy Farrel wrote some time ago about this subject, I haven't checked it -- Kuba On Tue, Mar 16, 20

[web2py] Re: Default Application

2010-03-16 Thread mdipierro
On unix link applications/yourapp applications/init I do not think this is possible under windows. On Mar 16, 7:17 am, Francisco Costa wrote: > Hello! > This is my first time on the list. > First of all I want to congratulate everyone with the fantastic job > you are doing on web2py. > Eve

[web2py] Re: Congratulations to all

2010-03-16 Thread DenesL
Excelent news, good job. On Mar 16, 7:11 am, dbb wrote: > web2py is the first to implement a working open source of HL7 protocol > as defined by HITSP, our efforts are being recognized around the globe > based on the questions we are receiving. -- You received this message because you are subsc

[web2py] Re: custom validation problem

2010-03-16 Thread mdipierro
can you add some print statements to determine which lines are executed and which not? I suspect a logic problem. On Mar 16, 3:39 am, mohammed al-moustady wrote: > here is my db.py > > db.define_table('time_table', >     Field('time_in','time'), >     Field('time_out','time') > ) > > db.define_ta

[web2py] Re: Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-16 Thread mdipierro
This can be done. I need to check the licence of the xls readers. On Mar 16, 3:45 am, Vincent Borghi wrote: > Hello > > I have used web2py to (quickly) implement a simple phone directory of > customer contacts, > for a small phone call center. > Before that, people tried to maintain their contact

[web2py] Default Application

2010-03-16 Thread Francisco Costa
Hello! This is my first time on the list. First of all I want to congratulate everyone with the fantastic job you are doing on web2py. Every time I discover more about it I get more fascinated. It's been a very enthusiastic experience learning how web2py works and the possibilities for it are endle

[web2py] custom validation problem

2010-03-16 Thread mohammed al-moustady
here is my db.py db.define_table('time_table', Field('time_in','time'), Field('time_out','time') ) db.define_table('years', Field('year_number','string') ) db.define_table('buildings', Field('b_number','string') ) db.define_table('levels', Field('l_number','string') ) db.de

[web2py] Migrating web2py to GAE

2010-03-16 Thread Al
Hi, I have been trying to move myapp from web2py app to GAE without success. I can manage to deploy web2py to GAE with the three built in apps (admin, welcome and examples) where I can login to admin and navigate to each of the three apps, but if I incorporate myapp, when I navigate to myapp thru

[web2py] Re: Relase of the first HL7 based on web2py framework

2010-03-16 Thread Vincent Borghi
On Mon, Mar 8, 2010 at 3:52 AM, Thadeus Burgess wrote: > Says registration requires verification and I never received an email. I have found the verification email in my "Spam" mailbox of my gmail account... If the same happens to you, search for a "spam"-classified mail whose subject is "email

[web2py] Re: using functions in an update query

2010-03-16 Thread selecta
for p in db(db.products.id>0).select(): p.update(product_name = 'Tiger Woods') or [p.update(product_name = 'Tiger Woods') for p in db(db.products.id>0).select()] On Mar 16, 12:06 pm, Russell wrote: > Hi, > > I'm trying to update some text fields in a database.  In SQL I would > do something l

[web2py] Congratulations to all

2010-03-16 Thread dbb
web2py is the first to implement a working open source of HL7 protocol as defined by HITSP, our efforts are being recognized around the globe based on the questions we are receiving. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to thi

[web2py] using functions in an update query

2010-03-16 Thread Russell
Hi, I'm trying to update some text fields in a database. In SQL I would do something like this... UPDATE products SET product_code=substr(product_code,2); or even... UPDATE products SET product_name = replace(product_name, 'Tiger', 'Woods'); Does anyone have an example of how to do this with

[web2py] Re: texarea in SQLFORM formatting

2010-03-16 Thread JmiXIII
Works fine thank you Congratulation for your framework and the service provided via the google-group On 15 mar, 16:21, mdipierro wrote: > There is this in base.css > > input.string { > width: 420px; > > } > > textarea.text { > width: 420px; > height: 200px; > > } > > That is why the _

[web2py] Re: URL structure for multilanguage site

2010-03-16 Thread aure
Hi, Thank you, Jiri. After your answer I have tried again and found what my problem exactly is. I have used routes_in exactly as shown in Massimo's post and added the other line given in my model. And yes it works just fine when I type the URL http://.../myapp/en/index (it displays the view index

[web2py] Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-16 Thread Vincent Borghi
Hello I have used web2py to (quickly) implement a simple phone directory of customer contacts, for a small phone call center. Before that, people tried to maintain their contact information in an Excel spreadsheet that was exchanged thru mail and/or a windows sharedc folder... ( Also note that I