[web2py] Re: Key error in controller db select

2011-05-12 Thread james c.
Thanks Anthony. This works and the creation, read/write must be from within the same function (as you said). thanks again for your help. James On May 10, 7:37 pm, Anthony abasta...@gmail.com wrote: On Tuesday, May 10, 2011 10:32:34 PM UTC-4, Anthony wrote: To keep things DRY, you can define a

[web2py] Cherokee and fcgi

2011-05-12 Thread luckysmack
Im trying to setup web2py with fcgi on cherokee. At one point it worked (last night after i spent a few hours trying to get it to work. and after i saw the screen went to sleep). But today when i try to use it its not working again. But now I cant get it to work whatsoever. i have a fresh

[web2py] Re: Cherokee and fcgi

2011-05-12 Thread luckysmack
as a side note, when going to domain.dev, it does change the path to domain.dev/welcome/default/index On May 11, 11:56 pm, luckysmack luckysm...@gmail.com wrote: Im trying to setup web2py with fcgi on cherokee. At one point it worked (last night after i spent a few hours trying to get it to

[web2py] Re: Cherokee and fcgi

2011-05-12 Thread pbreit
I unfortunately can't help out with fcgi but I you wanted to try uWSGI there are some scripts and steps posted here and on slices. UWSGI is Probably better anyhow.

[web2py] Re: using CRYPT in SQLFORM.factory doesn't work?

2011-05-12 Thread niknok
Nice catch Anthony! Thanks a bunch. That's the second time I got bitten by a misplaced comma in an SQLFORM ... On May 12, 12:23 pm, Anthony abasta...@gmail.com wrote: I think you've got a simple typo in you code -- in SQLFORM.factory, you have a ')' at the end of the Field line, so your

[web2py] Re: impersonate any user

2011-05-12 Thread rāma
Has this been fixed?

[web2py] date to datetime

2011-05-12 Thread andrej burja
i model i have Field('datum_start','date',label='začetek'), in controller i want to convert datum_start to datetime object (to manipulate it with python) how can i do that? andrej

[web2py] Re: login fails for ajax components

2011-05-12 Thread selecta
On May 11, 7:07 pm, pbreit pbreitenb...@gmail.com wrote: Hmmm...I haven't seen that pattern. I always put the LOAD() in a view. And decorate the calling controller. I don't see why or when you'd ever want to protect an individual component. because you cannot grantee that the component cannot

[web2py] Slice for Windows Installation with speed tests

2011-05-12 Thread sherdim
Good day! I've completed slice http://www.web2pyslices.com/main/slices/take_slice/128 on WSGI deployment on Windows Server. Comments on benchmark testing are welcome! Is it good speed? Is some caveats in parallel handling of requests? Can be issues with sessions congruence? Vale!

Re: [web2py] date to datetime

2011-05-12 Thread Vasile Ermicioi
it is by default python datetime type

[web2py] Re: Web2py - the one-man-band of all python frameworks :)

2011-05-12 Thread Massimo Di Pierro
There is always something to learn here. :-) On May 12, 12:09 am, Roberto De Ioris robe...@unbit.it wrote: On Thu, May 12, 2011 at 2:00 AM, Roberto De Ioris robe...@unbit.it wrote: You have to read it in the rock/heavy metal way, where Web2Py is the talented player that can manage every

[web2py] Re: impersonate any user

2011-05-12 Thread Massimo Di Pierro
Yes. Do not remember if in stable or trunk. On May 12, 4:07 am, rāma ranjeev...@gmail.com wrote: Has this been fixed?

[web2py] Re: login fails for ajax components

2011-05-12 Thread Anthony
On Thursday, May 12, 2011 8:36:36 AM UTC-4, selecta wrote: On May 11, 7:07 pm, pbreit pbreit...@gmail.com wrote: Hmmm...I haven't seen that pattern. I always put the LOAD() in a view. And decorate the calling controller. I don't see why or when you'd ever want to protect an

[web2py] useful reddit post

2011-05-12 Thread Massimo Di Pierro
http://www.reddit.com/r/Python/comments/h9n47/trying_to_implement_tags_in_sqlite_with_python/

[web2py] Google Datastore

2011-05-12 Thread stargate
I was wondering if there is a example on connecting to a google Datastore database on App Engine

[web2py] Re: Google Datastore

2011-05-12 Thread Massimo Di Pierro
db = DAL('gae') But you must be running on the Google app engine. Massimo On May 12, 9:53 am, stargate kyoukh...@gmail.com wrote: I was wondering if there is a example on connecting to a google Datastore database on App Engine

[web2py] Re: Bug with + in email address

2011-05-12 Thread Niphlod
well, if it tells you that there is an integrity error, that's a DB problem and not a validator one . have you tried to see all the values in that column ? DB doesn't know if that's a valid email address or not, he cares only (if that column has a unique costraint applied) that the same value

[web2py] Re: Strange SSL upload issue

2011-05-12 Thread sherdim
The issue is off when use the same site through ISAPI-WSGI as describe in http://www.web2pyslices.com/main/slices/take_slice/128 So it was related to Rocket server timeout on low-speed connection. Reverse Proxy effect could be in slowing of upload.

[web2py] Slice on deployment web2py on Windows with IIS with tests completed

2011-05-12 Thread sherdim
Good day! I have completed slice with receipts of deployment web2py in Windows environment http://www.web2pyslices.com/main/slices/take_slice/128 Comments on performance tests are welcome! Is this speed good? Can parallel using of many workers (Web Forest) break sessions? Vale!

[web2py] Bug with multiple SELECT/OPTIONS and keepvalues=True?

2011-05-12 Thread Clayton
groups=getgroups() group_options = [OPTION(group.description,_value=str(group.id)) for group in groups] form=FORM(TABLE(TR(TD('Search:', INPUT(_name='search'), INPUT(_type='submit', _value='Search')), TD(T(' Downloadable by: '),

[web2py] Re: Slice for Windows Installation with speed tests

2011-05-12 Thread sherdim
funny :) I have just searched for message about IIS, have not found any new one and reposted the same message with anons about the slice. Sorry for double.

Re: [web2py] Re: Why continue to use this obscure phrase 'enterprise'?

2011-05-12 Thread Vinicius Assef
What about web2py - Get it done? -- Vinicius Assef. On Wed, May 11, 2011 at 10:47 AM, Ross Peoples ross.peop...@gmail.com wrote: In the spirit of not messing around with half baked, unstable, hard to maintain, constantly breaking backward compatibility, glued frameworks: web2py - For

[web2py] LOAD with ajax=False fails to pass vars

2011-05-12 Thread Rohan
web2py version: Version 1.92.1 (2011-02-16 15:04:40) LOAD is failing to pass request.vars when ajax is set to False but passed vars when ajax is set to True. I want certain component to load before page finish loading so need to set ajax= False. I tried this call in default/index.html

[web2py] Re: Slice on deployment web2py on Windows with IIS with tests completed

2011-05-12 Thread Massimo Di Pierro
:-) On May 12, 11:21 am, sherdim sher...@gmail.com wrote: Good day! I have completed slice with receipts of deployment web2py in Windows environmenthttp://www.web2pyslices.com/main/slices/take_slice/128 Comments on performance tests are welcome! Is this speed good? Can parallel using of

[web2py] Re: Bug with multiple SELECT/OPTIONS and keepvalues=True?

2011-05-12 Thread Massimo Di Pierro
Can you print request.vars when you submit. This is odd. On May 12, 11:24 am, Clayton clayton.grass...@gmail.com wrote:     groups=getgroups()     group_options = [OPTION(group.description,_value=str(group.id)) for group in groups]     form=FORM(TABLE(TR(TD('Search:', INPUT(_name='search'),

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread pbreit
Yeah, looks like it's not passing args and vars when ajax=False. I'm on trunk.

[web2py] Re: login fails for ajax components

2011-05-12 Thread pbreit
Oh, yeah, I protect all my functions that require login. But all of their enclosing pages are protected, too, so it's never an issue.

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread Massimo Di Pierro
I just made a couple of changed in trunk to that function. Can you see if the problem is still there? On May 12, 12:12 pm, Rohan yourbuddyro...@gmail.com wrote: web2py version: Version 1.92.1 (2011-02-16 15:04:40) LOAD is failing to pass request.vars when ajax is set to False but passed vars

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread Anthony
You might need to set ajax_trap=True in order to pass vars to the component -- otherwise, I think it will just ignore your vars and use request.vars instead. Anthony On Thursday, May 12, 2011 1:12:55 PM UTC-4, Rohan wrote: web2py version: Version 1.92.1 (2011-02-16 15:04:40) LOAD is

[web2py] CarPool web2py anyone?

2011-05-12 Thread António Ramos
hello, this is just an idea. Is there a carpool site made in web2py? in Portugal http://www.carpool.com.pt/ Best regards António

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread Anthony
On Thursday, May 12, 2011 1:48:53 PM UTC-4, pbreit wrote: Yeah, looks like it's not passing args and vars when ajax=False. I'm on trunk. The code looks like it should be passing args (though not vars, unless ajax_trap=True) -- are you sure it's not passing args when ajax=False? Anthony

[web2py] Re: impersonate any user

2011-05-12 Thread pbreit
I think it's still not working. The or not current.request.post_vars is a problem because we are not longer entering impersonate via a var. http://code.google.com/p/web2py/source/browse/gluon/tools.py#2213 if not self.is_logged_in() or not current.request.post_vars: should be if not

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread pbreit
Still didn't work in trunk. ajax_trap=True makes it work. But that shouldn't be necessary, correct?

[web2py] Re: using CRYPT in SQLFORM.factory doesn't work?

2011-05-12 Thread pbreit
I suppose it's personal preference but the comma placement at the beginning of the line is really confusing.

Re: [web2py] CarPool web2py anyone?

2011-05-12 Thread Jason Brower
On 05/12/2011 09:04 PM, António Ramos wrote: hello, this is just an idea. Is there a carpool site made in web2py? in Portugal http://www.carpool.com.pt/ Best regards António Ironnically I had almost the same idea! Sadly, the Finnish Government told me it is out right illegal. Sad as I

[web2py] Re: Cherokee and fcgi

2011-05-12 Thread luckysmack
yea i tried fcgi because that was the example in the book. If wsfi is easier/better to setup, and i can get it working. ill try that as well. Do you know of any good links off hand? otherwise ill just browse on the slices site. I looked here but only really found posts where people were having

[web2py] Re: Bug with multiple SELECT/OPTIONS and keepvalues=True?

2011-05-12 Thread Clayton
request.vars Storage {'admingroup': '8', 'search': '', '_formkey': 'e4a6ec15-3f1c-42b4-a30b-1d50354b6429', 'downloadgroup': '2', '_formname': 'default'} Before form.accepts(request.vars, session, keepvalues=True): form.xml() 'form action= enctype=multipart/form-data method=posttable

[web2py] Re: Cherokee and fcgi

2011-05-12 Thread pbreit
I think this one is most up to date: https://bitbucket.org/pbreit/web2py-automation/src/aa0c47ea95b6/setup-ubuntu-cherokee.sh You can either try and run it or just copy/paste each step. The Cherokee Admin is nice but makes it harder to setup with a script.

[web2py] Re: Cherokee and fcgi

2011-05-12 Thread pbreit
Here's another, slightly older but perhaps worth reviewing: http://web2pyslices.com/main/slices/take_slice/110

[web2py] Re: CarPool web2py anyone?

2011-05-12 Thread Massimo Di Pierro
What is illegal? On May 12, 1:51 pm, Jason Brower encomp...@gmail.com wrote: On 05/12/2011 09:04 PM, Ant nio Ramos wrote: hello, this is just an idea. Is there a carpool site made in web2py? in Portugal http://www.carpool.com.pt/ Best regards Ant nio Ironnically I had almost the

[web2py] Re: Insert blank record crashes in sqlite

2011-05-12 Thread Jim Karsten
Here are two possible solutions, both for gluon.dal.py: class BaseAdapter(ConnectionPool): def insert(self,table,fields): if not fields: raise SyntaxError, 'No fields to insert' query = self._insert(table,fields) ... return rid or class SQLiteAdapter(BaseAdapter): def

Re: [web2py] Re: CarPool web2py anyone?

2011-05-12 Thread Jason Brower
Most types of carepooling. Unless it is absolutely and totally free. If any type of money pass between you then you can't do it without paying taxes and being a licences taxi driver. For example, if you give me a ride, and I pay for your dinner at the end of a long trip, I am breaking the

[web2py] Re: Web2py - the one-man-band of all python frameworks :)

2011-05-12 Thread carlo
..and btw Unbit is one of the best hosting solution for web2py players! carlo On 12 Mag, 15:40, Massimo Di Pierro massimo.dipie...@gmail.com wrote: There is always something to learn here. :-) On May 12, 12:09 am, Roberto De Ioris robe...@unbit.it wrote: On Thu, May 12, 2011 at 2:00

[web2py] Solução de e-commerce em web2py / e-commerce solution in web2py

2011-05-12 Thread Bruno Barbosa
Is there an e-commerce solution in web2py? __ Já existe alguma solução de e-commerce em web2py? # --- # Bruno Barbosa # Web Developer - Linux user and Free Software Enthusiast # http://algoritmizando.com #

[web2py] Re: Solução de e-commerce em web2py / e-commerce solution in web2py

2011-05-12 Thread pbreit
I researched it awhile back and all I could really find was the old appliance: http://code.google.com/p/web2py-estore/ http://web2py.com/appliances/default/show/24 It's a bit outdated but seems to work. I ended up coding my own: http://pricetack.com

Re: [web2py] Re: Solução de e-commerce em web2py / e-commerce solution in web2py

2011-05-12 Thread Bruno Barbosa
oh, thanks! I'll take a look =) regards, # --- # Bruno Barbosa # Web Developer - Linux user and Free Software Enthusiast # http://algoritmizando.com # http://twitter.com/bruninbsb # --- Em 12 de maio de 2011 20:16, pbreit

[web2py] Re: using CRYPT in SQLFORM.factory doesn't work?

2011-05-12 Thread niknok
Ok, here's a quote for you: “Confusion is the welcome mat at the door of creativity.” ;) On May 13, 2:26 am, pbreit pbreitenb...@gmail.com wrote: I suppose it's personal preference but the comma placement at the beginning of the line is really confusing.

[web2py] Re: Cherokee and fcgi

2011-05-12 Thread luckysmack
Sweeet. Well based on the bitbucket link I was able to get it to work with uWSGI. So thanks a bunch for the help. On May 12, 12:12 pm, pbreit pbreitenb...@gmail.com wrote: Here's another, slightly older but perhaps worth reviewing:http://web2pyslices.com/main/slices/take_slice/110

[web2py] Re: Insert blank record crashes in sqlite

2011-05-12 Thread Massimo Di Pierro
My guess is that some engines could allow insertion of a blank record and different versions of the same engine may behave differently. Although a more graceful error would be nice, we should let the database fail on this one. On May 12, 2:53 pm, Jim Karsten iiijjj...@gmail.com wrote: Here are

[web2py] Re: date to datetime

2011-05-12 Thread szimszon
import datetime datetime_object=datetime.datetime.combine(row.datum_start,datetime.time(0))

[web2py] Gigya - Janrain alternative

2011-05-12 Thread Bruno Rocha
HI, I am not very satisfied with Janrain, so I started a search for a different solution, I already tried SimpleAuth but it is not finished yet. I guess I found a better solution than Janrain engage and this is http://developers.gigya.com/ More than centralized login this provides better social