[web2py] Re: web2py+FastCGI

2011-02-15 Thread cjrh
On Jan 5, 11:28 am, walter wdv...@gmail.com wrote: I have not asked the previous question correctly. I wanted to ask what folders should be accessible for writing and for which permission must be set to 644? Who must to be owner all folders? The Apache process often runs under a user called

Re: [web2py] Re: powertable: howto adjust table width

2011-02-15 Thread rochacbruno
- {{extend 'layout.html'}} .tablewrapper{ width:400px !important; } div class='tablewrapper' {{=table}} /div -- I guess it works. Em 15/02/2011, às 00:49, tomt tom_tren...@yahoo.com escreveu: Thanks for

[web2py] jqgrid-problem

2011-02-15 Thread Johann Spies
On my develop computer it works as expected. On the production server the jqgrid's all show empty grids. It is not a case of the user not being logged in as was mentioned in another thread about jqgrid. Normally when I get this type of behaviour I test the rest of the function by using an

Re: [web2py] Re: pymysql gives Broken Pipe

2011-02-15 Thread Michele Comitini
I encountered the *broken pipe* error, when shutting down mysql server and restarting it. Is a pooled connection checked as active before being passed to the DAL in the active process? mic 2011/2/6 Fran Boon francisb...@gmail.com: On 6 February 2011 05:15, Massimo Di Pierro

Re: [web2py] Re: error occurs when use executesql

2011-02-15 Thread Johann Spies
On 15 February 2011 08:49, hywang why00...@163.com wrote: Please help to run it :-) # File Name: default.py def index(): db.define_table(pymysql,Field(content,text),migrate=True) content = 'http://img1.t.sinajs.cn/t3/style/css/common/ layer.css' #content = this sentence is no

[web2py] Re: Web2py in combination with mod_python

2011-02-15 Thread cjrh
On Feb 14, 4:33 pm, Grezly dave.i...@gmail.com wrote: No, my host doesn't provide FastCGI access, so i need to use mod_python. Ok. I have no experience with mod_python, so I cannot help. Check web2pyslices, perhaps there is more help there.

[web2py] Re: Importing an already existing MySQL database

2011-02-15 Thread Rupesh Pradhan
Sweet! Boriel!! Just what the doctor ordered! Hey, If you happen to polish the script any further and have a new version of the same, just remember, I am here to put it to good use. I have subscribed to this thread, so that I know if you have put up anything here. Also, Massimo, have you put

[web2py] Re: mod_pagespeed

2011-02-15 Thread KMax
Does not use it. But read http://code.google.com/intl/ru-RU/speed/page-speed/docs/module.html Resolution, this module used to optimize traffic (fix me) by filtering out useless spaces, and etc. This does not speed up web2py any kind, due to it works with generated htmls. This job do gzip module

[web2py] Re: web2py not using global http_proxy

2011-02-15 Thread whowhywhat
i have documented the steps i took to install web2py with Cherokee and uwsgi in a public Google document. please find the document here http://goo.gl/ixsL7 . please pardon me for making it a google doc as i have included several screenshots. please go through it, test it and suggest any

Re: [web2py] Re: pymysql gives Broken Pipe

2011-02-15 Thread Fran Boon
On 6 February 2011 05:15, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Here is a proposed solution in trunk import mysqldb from gluon.dal import MySQLAdapter MySQLAdapter.adapter=mysqldb before calling db=DAL('mysql://...') I'm not sure this is being read everywhere, since I just

[web2py] The best way to integrate web services API in one site ?

2011-02-15 Thread Lionel Barret
Hello, I need to send a bit of info to different web services we use (mainly, highrise and campaign monitor). I have tested some prototype code using their API and it works. Now, I am not sure what would be the best way to integrate it into our site/app. I see two potential problems : - delay as

[web2py] Parsing Google JSON result in python

2011-02-15 Thread Antoine
Hello, I trying to parse a JSON result sent by Google Custom Search in web2py. I have the code working in python, but for some reason, it doesn't work right in web2py and I can't figure out why. desired output: Title: title_of_the_link url: URL_of_the_result Title: title_of_the_link

[web2py] Re: Importing an already existing MySQL database

2011-02-15 Thread DenesL
Hi Rupesh, this is an old thread from 2009, the script is there: /scripts/extract_mysql_models.py On Feb 15, 5:28 am, Rupesh Pradhan rupeshkrprad...@gmail.com wrote: Sweet! Boriel!! Just what the doctor ordered! Hey, If you happen to polish the script any further and have a new version

[web2py] Re: 'Voting and Rating' Ajax Recipe (chapter 10) not working?

2011-02-15 Thread Notnasiul
Well, thank both of you for solving it and for fixing the book!

[web2py] Re: broken images

2011-02-15 Thread stargate
Wouldn't it also better to use base href={{response.files.append(URL(request.application,'static','plugin_layouts/ layouts/Optimism/'))}} / This would cut time for inserting the code in every image tag on the page. Please correct me if i am wrong. On Feb 15, 1:04 am, villas

[web2py] Re: broken images

2011-02-15 Thread stefaan
Hello, Perhaps I'm stating the obvious here, but make sure to reload the page in your browser after changing things: you might be looking at a cached wrong version of your page instead... Best regards, Stefaan.

[web2py] Re: SQLFORM limit contents of dropdown

2011-02-15 Thread Ed Greenberg
Sorry to be back with a request for clarification. My relationship is that a customer has properties and a property has rooms. I did this... customer_id = session.customer_id query = select id from properties where customer = %d % customer_id

Re: [web2py] Re: powertable: howto adjust table width

2011-02-15 Thread Bruno Rocha
Now I tested here and works. - {{extend 'layout.html'}} style .tablewrapper{ width:400px !important; } /style div class='tablewrapper' {{=table}} /div --

[web2py] Re: function in query

2011-02-15 Thread villas
Yes I do not know how to compare dates with datetime fields in a query. I suppose there would ideally be some built-in method to express one type as the other. Maybe someone knows a way to do it... D On Feb 15, 7:20 am, Manuele Pesenti manuele.pese...@gmail.com wrote: Il 14/02/2011 19:57,

[web2py] Re: jqgrid-problem

2011-02-15 Thread Massimo Di Pierro
check with firebug. It is possible the ajax requests of jqgrid are failing. This could be because on your deployment you are using routes. also clear or tickets. Run jqgrid and check for tickets when it fails. On Feb 15, 3:55 am, Johann Spies johann.sp...@gmail.com wrote: On my develop

[web2py] Re: broken images

2011-02-15 Thread villas
'base' is for when all links on that page are to the same place. You have to decide that. However, I don't think 'response.files' is right for that. Maybe this would be better... base href={{(URL(request.application,'static','plugin_layouts/ layouts/Optimism/')}} / -D On Feb 15, 1:28 pm,

[web2py] where should I put those lines

2011-02-15 Thread Richard Vézina
Hello Massimo, I would like to update the languages files at startup or once in a wild... Where should I put those lines : # - import os import gluon.portalocker import cPickle from gluon.languages import read_dict,

[web2py] Re: SQLFORM limit contents of dropdown

2011-02-15 Thread Massimo Di Pierro
You are passing a string in place of a query. Now sure what it does but probably not what you want. I think this does what you want. customer_id = session.customer_id query = db.properties.customer==customer_id db.rooms.property.requires=IS_IN_DB(db(query),properties.id) form =

[web2py] Re: SQLFORM limit contents of dropdown

2011-02-15 Thread villas
Not this: query = select id from properties where customer = %d % Try something like this instead: query = (db.properties.customer==customer_id) On Feb 15, 2:13 pm, Ed Greenberg greenberg...@gmail.com wrote: Sorry to be back with a request for clarification. My relationship is that a

[web2py] Re: SQLFORM limit contents of dropdown

2011-02-15 Thread Ed Greenberg
This explanation worked. I will mention that the code db.rooms.property.requires=IS_IN_DB(db(query),properties.id) caused the dropdown to display the property id. Changing it to properties.short_description resulted in a perfect dropdown of only the properties that the query selected. I want

[web2py] Re: Importing a csv file works via the GUI but not in appadmin.py

2011-02-15 Thread bfg
One other thing I have thought about is putting a utitliy into web2py that will read the csv file on initialization and check the date-time stamp on the file. If the csv file is newer then update the database. On exit it will check the database to see if it is changed. If it has then it will

[web2py] Re: Is it a good idea to keep auth_user minimal?

2011-02-15 Thread Yannick
Right you can used writable/readable = false so that you can only display fields you want user to update and from your server side you can update the other field as you want... If you want to show the other field later in other pages for example Setting Pages you can do so... I did add more field

[web2py] Re: broken images

2011-02-15 Thread stargate
This line generates a error base href={{(URL(request.application,'static','plugin_layouts/ layouts/Optimism/')}} / Not sure why On Feb 15, 9:40 am, villas villa...@gmail.com wrote: 'base' is for when all links on that page are to the same place.  You have to decide that. However,  I don't

[web2py] bug fix - invalid form traps if ajax redirect via web2py_ajax_page

2011-02-15 Thread Carlos
Hi, I believe I found a bug and implemented a fix for the following ... If we use web2py_ajax_page js function to load forms in the same page with ajax (as in my case, using jquery ui dialog), and if the xhr calls for a redirect, then web2py incorrectly traps the new forms (via

[web2py] Re: broken images

2011-02-15 Thread stargate
The broken images started when i created a new application and applied the following layout plugin to it http://www.web2py.com/layouts/static/plugin_layouts/layouts/Pluralism/index.html The problem is when you see the preview all the images are intact but when i try to do it all the images are

[web2py] IS_EMAIL allows upper and lower cases

2011-02-15 Thread Alexandre Andrade
I think IS_EMAIL() validator has a bug: it accepts the same email with different lower and upper cases to be accepted u...@mysite.com and u...@mysite.com and u...@mysite.com or any combination. The problem is quite simple, just transform it to lower before compare and insert in db. --

[web2py] is this query possible or should I do a loop

2011-02-15 Thread Richard Vézina
Hello, I would like to write this in web2py : SELECT tab1.tab1_id FROM tab1 WHERE tab1.tab1_id NOT IN (SELECT tab1_res.tab1_id FROM tab1_res) Try this without success : db(db.tab1.tab1_id != (db().select(db.tab1_res.tab1_id))).select(db.tab1.ALL) Thanks Richard

Re: [web2py] IS_EMAIL allows upper and lower cases

2011-02-15 Thread Jonathan Lundell
On Feb 15, 2011, at 9:06 AM, Alexandre Andrade wrote: I think IS_EMAIL() validator has a bug: it accepts the same email with different lower and upper cases to be accepted u...@mysite.com and u...@mysite.com and u...@mysite.com or any combination. The problem is quite simple, just

Re: [web2py] IS_EMAIL allows upper and lower cases

2011-02-15 Thread Alexandre Andrade
Can I make a proposal to improve it? to me, a email have always to be lower case, specially when it is used to login. The problem is that email in auth_user need to be a unique key, and it allows to be duplicated. 2011/2/15 Jonathan Lundell jlund...@pobox.com On Feb 15, 2011, at 9:06 AM,

[web2py] Spam control? and word filtering?

2011-02-15 Thread greenpoise
Calling out there to see common practices in web development regarding spam control/word filtering. How is this handled in web development once a site is developed? what are the practices? I know that captcha is some sort of spam control but how about word filtering? or to prevent users from

[web2py] Re: bug fix - invalid form traps if ajax redirect via web2py_ajax_page

2011-02-15 Thread Carlos
One change: use the following instead for the 'web2py-url' header setting: response.headers['web2py-url'] = request.env.path_info + '?' + request.env.query_string My original post above (using request.url) was causing the query string to be lost after the redirection. Regards, Carlos

Re: [web2py] is this query possible or should I do a loop

2011-02-15 Thread Lucas D'Avila
Hi! Try this: rows_res = db(db.tab1_res)._select(db.tab1_res.tab1_id) rows = db(not db.tab1.tab1_id.belong(rows_res)).select() -- Lucas D'Avila http://flavors.me/lucasdavila Em 15/02/2011 15:09, Richard Vézina ml.richard.vez...@gmail.com escreveu: Hello, I would like to write this in web2py

Re: [web2py] IS_EMAIL allows upper and lower cases

2011-02-15 Thread Jonathan Lundell
On Feb 15, 2011, at 9:39 AM, Alexandre Andrade wrote: Can I make a proposal to improve it? to me, a email have always to be lower case, specially when it is used to login. The problem is that email in auth_user need to be a unique key, and it allows to be duplicated. The relevant RFC

Re: [web2py] is this query possible or should I do a loop

2011-02-15 Thread Richard Vézina
Thanks Lucas There were some typo : rows_res = db(db.tab1_res)._select(db.tab1_res.tab1_id) rows = db(~db.tab1.tab1_id.belongs(rows_res)).select() Richard On Tue, Feb 15, 2011 at 12:57 PM, Lucas D'Avila lucass...@gmail.com wrote: Hi! Try this: rows_res =

[web2py] how do I define xmlns for service.soap() ?

2011-02-15 Thread Bruno Rocha
HI, I am running a SOAP service, now I need to define the namespace so: @service.soap('MyAdd', returns={'result':int},args={'a':int,'b':int}) def add(a,b): print 'requested' return a+b should return with 'http://tempuri.org/AttivoTradeInterface/WSTradeInterface' as the namespace. how

[web2py] Re: broken images

2011-02-15 Thread villas
Well I never used 'base' before; that was your idea :) Anyhow 'base' should be in the head section, I don't think it would be such a good idea to use it. To make a shortcut in your page how about generating an URL string and then just prepending it to the image tags? For example: Create the

[web2py] Re: broken images

2011-02-15 Thread Massimo Di Pierro
Not sure if that should be base href={{=URL(request.application,'static','plugin_layouts/ layouts/Optimism/')}} / or it should be removed completely. Please try it. On Feb 15, 10:57 am, stargate kyoukh...@gmail.com wrote: The broken images started when i created a new application and applied

Re: [web2py] Re: broken images

2011-02-15 Thread Jonathan Lundell
On Feb 15, 2011, at 11:16 AM, Massimo Di Pierro wrote: Not sure if that should be base href={{=URL(request.application,'static','plugin_layouts/ layouts/Optimism/')}} / or it should be removed completely. Please try it. base is supposed to be an absolute URL; I'm not sure if the output

[web2py] Re: Spam control? and word filtering?

2011-02-15 Thread Massimo Di Pierro
import base64, re

Re: [web2py] Re: bug fix - invalid form traps if ajax redirect via web2py_ajax_page

2011-02-15 Thread Jonathan Lundell
On Feb 15, 2011, at 9:57 AM, Carlos wrote: One change: use the following instead for the 'web2py-url' header setting: response.headers['web2py-url'] = request.env.path_info + '?' + request.env.query_string My original post above (using request.url) was causing the query string to be

[web2py] Re: Parsing Google JSON result in python

2011-02-15 Thread Antoine
I modified my code from sr = urllib.urlopen(url) search_results = json.loads(sr.read()) for i in search_results['items']: db.results.insert(link_title=i['title']) db.results.insert(url=i['link']) to sr = urllib.urlopen(url) search_results = json.loads(sr.read()) for i in

[web2py] Accessing Web2py SQLITE instance via pythonwin

2011-02-15 Thread wdtatenh
Apologies if this answer is already posted elsewhere - a search didn't answer my question. Basically I need to pre-populate some sqlite tables used with my web2py app with a fair amount of data. Would like to run some scripts that performs this task via conventional pythonwin IDE.Thus far

[web2py] shared hosting documentation

2011-02-15 Thread Saf Hulou
Hello, I'm struggling with my hosting company. Python, postgres ok but no shell access. Using linux. Is there any documentation other than the online book that I can pass on to the hosting company? Regards, Saf

[web2py] Re: Accessing Web2py SQLITE instance via pythonwin

2011-02-15 Thread Massimo Di Pierro
look into web2py -h web2py -S app -M -N -R yourscript.py On Feb 15, 10:57 am, wdtatenh wdt...@comcast.net wrote: Apologies if this answer is already posted elsewhere - a search didn't answer my question. Basically I need to pre-populate some sqlite tables used with my web2py app with a

[web2py] Re: broken images

2011-02-15 Thread villas
The plugin replaces your layout.html Open up views/layout.html Search for: images/ Replace with: static/plugin_layouts/layouts/Pluralism/images/ Does that help? I should mention that the plugin is just to get you a head start. You're going to have to do more work to assimilate it into your

[web2py] Re: broken images

2011-02-15 Thread stargate
If you go here http://www.web2py.com/layouts then preview Optimism. How come when you go to view source the image path is /images and the image file name. But when you click on view image it will show you the exact path of the images. I am just wondering why can't i just do

[web2py] Re: shared hosting documentation

2011-02-15 Thread cjrh
On Feb 15, 7:07 pm, Saf Hulou saf.hu...@gmail.com wrote: Is there any documentation other than the online book that I can pass on to the hosting company? web2pyslices.com has a lot of hosting-specific HOWTOs and advice.

Re: [web2py] book example not working anymore

2011-02-15 Thread Richard Vézina
Ok I found one typo : records = db.person(request.args(0)) or redirect(URL('index')) And I didn't see that there were the list_records function... [?] So there is just a s to correct in the book. Richard On Tue, Feb 15, 2011 at 3:32 PM, Richard Vézina ml.richard.vez...@gmail.com wrote:

Re: [web2py] book example not working anymore

2011-02-15 Thread Richard Vézina
There is something else that cause problem... If you use in your model : Field('table_id','id') The example not works properly even the appadmin not working... Richard On Tue, Feb 15, 2011 at 3:40 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok I found one typo : records =

[web2py] id pb

2011-02-15 Thread Richard Vézina
Hello Massimo, Is there something wrong with this syntax : Field('table_id','id') sequence_name='table_table_id_seq' You introduced it, a couples of month ago... It works just fine with Postgres... But now I am facing problem. If I want to make one form for many tables, it is not possible

[web2py] Re: new support platform for web2py - make money

2011-02-15 Thread Francisco Costa
Just added a few more features and a new design to http://askvalue.com Hope you like it! On Feb 14, 2:19 am, Christopher Steel chris.st...@gmail.com wrote: I would love to see the code... On Feb 12, 3:08 pm, Ovidio Marinho ovidio...@gmail.com wrote: sorry for a moment thought I was on

[web2py] Re: broken images

2011-02-15 Thread villas
I think I now understand, you want the plugin to work like it does online. After you install a new app e.g. 'alayout' and then the layout plugin 'Optimism', the layout is copied over the top of views/layout.html. This is visible from: http://localhost:8000/alayout/ But the images and urls etc

[web2py] Re: How to create a parallel mobile site

2011-02-15 Thread Chris
The view would be different in my case, since I'm using jQuery Mobile. Fortunately it's probably OK to have the same controller/actions, at least. On Feb 14, 8:14 pm, howesc how...@umich.edu wrote: is the view different or just the css?  if just the css put a conditional css include in

[web2py] Re: new support platform for web2py - make money

2011-02-15 Thread Anthony
For me, the text in the top blue bar (i.e., AskValue, QUESTIONS, and LOGIN) is now difficult to read (either the background or the text needs to be lighter). The attached image shows what it looks like for me. Also, I notice AskValue is using the Tymr favicon, which is confusing. Best,

[web2py] Re: book example not working anymore

2011-02-15 Thread villas
OK I've found that one and fixed it in chapter 7. Thanks. D On Feb 15, 8:40 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok I found one typo : records = db.person(request.args(0)) or redirect(URL('index')) And I didn't see that there were the list_records function... [?] So there

[web2py] LOAD Component + Multiple Forms

2011-02-15 Thread Marc Smith
Hi, I am having trouble using the LOAD component with forms to produce a wizard style multiple form type setup (eg, enter information on one screen, then go to the next, etc.). If I move my mobile_verify.load file to mobile_verify.html and visit http://localhost/myapp/default/mobile_verify/one

[web2py] crud.settings.auth=auth doesn't seem to restrict crud.select

2011-02-15 Thread rocket
I found this threadhttp://www.mail-archive.com/web2py@googlegroups.com/msg17851.html which seems to indicate that something was being done about this, but it still seems like only create, read, update and delete are actually being enforced by crud.settings.auth=auth. This is contrary to the

[web2py] Re: crud.settings.auth=auth doesn't seem to restrict crud.select

2011-02-15 Thread rocket
I realize T2 is deprecated, but here's (http://www.mail-archive.com/ web2py@googlegroups.com/msg05280.html) further reference to the behaviour I'm expecting. now give yourself back permission *only* to select record in table [app]_user group_id=auth.add_group(role='Manager')

[web2py] Dynamic PowerTable populate

2011-02-15 Thread Ialejandro
Hi!! I'm using powertable plugin for a simple app I have the following: (Model) db.define_table('location', Field('name','string'),format='%(name)s') db.define_table('car', Field('name','string'), Field('model','string'),

[web2py] Re: The best way to integrate web services API in one site ?

2011-02-15 Thread pbreit
You should consider a queue: https://groups.google.com/d/topic/web2py/W2gtGxIKYFc/discussion

[web2py] GAE or EC2?

2011-02-15 Thread James Hancock
I am starting a web app for my company soon, and I thought I would ask here if you have any suggestions on whether to use the GAE or EC2 to as a server platform. Any thoughts on the pros and cons? I thought it would be appropriate to ask because of the new things scheduled to come out for the

[web2py] Re: id pb

2011-02-15 Thread Massimo Di Pierro
Can you provide an example of form for many tables this is not something web2py supports out of the box so it depends. I can see problems with it. On Feb 15, 3:08 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello Massimo, Is there something wrong with this syntax :

[web2py] Cappuccino Framework

2011-02-15 Thread Ialejandro
Hi! Is it possible to use that framework with web2py? also in Windows? Anybody has tried it out? How could I get it working? Thanks!

[web2py] Re: GAE or EC2?

2011-02-15 Thread villas
Hi James Here are a few personal opinions, (although my assumptions may be wrong or out of date): GAE 1. web2py targets the GAE platform and a lot of effort is put into this brand of 'No-Sql'. The web2py lead developer has access to forthcoming enhancements and so it should function very well

[web2py] Re: GAE or EC2?

2011-02-15 Thread villas
Forgot to mention this, it may be interesting for you: http://stackoverflow.com/questions/791447/windows-azure-vs-amazon-ec2-vs-google-app-engine

[web2py] Re: powertable: howto adjust table width

2011-02-15 Thread tomt
Thanks, This worked nicely. On Feb 15, 8:24 am, Bruno Rocha rochacbr...@gmail.com wrote: Now I tested here and works. - {{extend 'layout.html'}} style .tablewrapper{  width:400px !important;} /style div class='tablewrapper' {{=table}} /div

[web2py] How to use routes

2011-02-15 Thread Andrew Evans
Hello I am running the latest version of web2py and apach2 on debian lenny but it doesn't seem like my routes.py file is being used I still get invalid controller instead of my message. is there anything in particular I have to do with apache to get routes.py to run *cheers

[web2py] How to use routes

2011-02-15 Thread pbreit
Maybe provide your routes.py code?

[web2py] Why does the output file not have any content? Doing an import test here.

2011-02-15 Thread Rupesh Pradhan
The 'input_sheet.py' module placed in site-packages: def write_to_file(file_name, content): file = open(file_name, 'w') file.write(content) file.close() def main(): file_name = 'output.txt' content = 'This is the output text.' return file_name, content if __name__ == '__main__': file_name,

Re: [web2py] Re: function in query

2011-02-15 Thread Brian M
If you're going to be searching based on the difference between date1 and date2 why not just include the difference in the DB itself with a computed field? (http://www.web2py.com/book/default/chapter/06#Computed-Fields)

[web2py] php to web2py

2011-02-15 Thread stargate
I came across the following URLS http://web2py.com/AlterEgo/default/show/106 http://www.web2py.com/AlterEgo/default/show/167 Where is the updated content with the new web2py tags

[web2py] Re: Spam control? and word filtering?

2011-02-15 Thread greenpoise
incredible that this work, cant wait to try it out thanks d On Feb 15, 11:21 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: import base64, re

[web2py] CRUD form customization - possible??

2011-02-15 Thread greenpoise
Sorry for a possible double post but honestly, I could not find my previous post. I had asked if it was possible to customize CRUD forms? such as the length of the text boxes? if so, how? I love the simplicity of CRUD and would prefer it over manually creating forms THanks

Re: [web2py] Re: Spam control? and word filtering?

2011-02-15 Thread Jonathan Lundell
On Feb 15, 2011, at 11:21 AM, Massimo Di Pierro wrote: import base64, re BADWORDS=re.compile(base64.b64decode(KGFob2xlfGFudXN8YXNoMGxlfGFzaDBsZXN8YXNob2xlc3xhc3N8YXNzfGFzc2ZhY2V8YXNzaDBs There are some very peculiar choices (and omissions) in that list. rautenberg? job? honkey, but not

[web2py] Amazon EC2, How does it... um... how does it work?

2011-02-15 Thread Jason (spot) Brower
With support for Amazon EC2 I am very curious how EC2 actually works. So in tradition of python: How does it... um... how does it work? For example, how does it become elastic whti web2py? How are instances handles and is it generally more expansive than other hosting options? The reason I ask

[web2py] Re: Spam control? and word filtering?

2011-02-15 Thread pbreit
http://akismet.com/

Re: [web2py] How to use routes

2011-02-15 Thread Andrew Evans
Hi ty for the reply and sorry about my message it was quickly done up I only added this line to the routes.example.py and renamed it routes.py routes_onerror = [('dojo0/*','/dojo/error/index')] the controller error/index is this def index(): if request.vars.code == '400': return

Re: [web2py] GAE or EC2?

2011-02-15 Thread Jonathan Lundell
On Feb 15, 2011, at 2:05 PM, James Hancock wrote: I am starting a web app for my company soon, and I thought I would ask here if you have any suggestions on whether to use the GAE or EC2 to as a server platform. Any thoughts on the pros and cons? I thought it would be appropriate to ask

[web2py] Re: Amazon EC2, How does it... um... how does it work?

2011-02-15 Thread pbreit
Each instance is like an individual web server. You can scale in two ways: 1) your existing instance can acquire more CPU cycles and RAM or 2) you can relatively easily add and subtract additional instances (ie, servers). Being able to grow your instance is nice but if you are running into

Re: [web2py] How to use routes

2011-02-15 Thread Jonathan Lundell
On Feb 15, 2011, at 9:25 PM, Andrew Evans wrote: Hi ty for the reply and sorry about my message it was quickly done up I only added this line to the routes.example.py and renamed it routes.py routes_onerror = [('dojo0/*','/dojo/error/index')] Did you mean 'dojo0' or 'dojo'? the

Re: [web2py] How to use routes

2011-02-15 Thread Andrew Evans
Ok ty I got it haha now I feel like a novice :-P I had an extra period in the routes.py filename so it was routes..py any ty for the advice *cheers Andrew

[web2py] VirtualFields are really slow with large datasets

2011-02-15 Thread Kurt Grutzmacher
I have three tables that aren't particularly large (1500, 2500, and 3500 records in each). With VirtualFields enabled a select() query take a very long time to process. class VirtualFields(object): def name(self): return self.table1.table2.name def email(self): return

[web2py] Read-only CRUD fields don't work?

2011-02-15 Thread Joe Barnhart
I have a simple CRUD create form that's driving me crazy. I want to pre-load one of the fields in the form. I want the field to show up, but be read-only so the user can see it but not change it. I've tried setting the default property of the field and then making it readable=True and