Re: [web2py] web2py on Google Drive

2013-08-08 Thread Johann Spies
On 08/08/2013 01:10, Evan Caldwell wrote: I use Google Drive on all my machines to keep things synced up. I installed web2py on my windows laptop in a folder in my Google Drive (I use the windows client). Then I opened up web2py on my windows machine at work from the same synced folder. I can o

[web2py] Re: Deploying on GAE through the Admin interface

2013-08-08 Thread Massimo Di Pierro
Excellent suggestion! Done. On Wednesday, 7 August 2013 19:04:59 UTC-5, Christian Foster Howes wrote: > > is it hard to warn users of that or disable the button in the admin > interface? i probably wouldn't have caught that detail. :( > > On Wednesday, August 7, 2013 4:26:50 PM UTC-7, Massimo Di

[web2py] Re: Curious admin upload behavior: file name changed when uploading to static/css: - becomes _

2013-08-08 Thread Massimo Di Pierro
Because only some characters are allowed in file names. Perhaps the rules should be somewhat relaxed for static files? On Wednesday, 7 August 2013 21:45:55 UTC-5, Rob_McC wrote: > > > I occasionally upload a file through admin panel, > > i.e. > http://example.com/admin/default/design/welcome > >

[web2py] Re: AppAdmin: CSV import bug

2013-08-08 Thread Massimo Di Pierro
Hard to say without an example. On Thursday, 8 August 2013 00:07:38 UTC-5, DJ wrote: > > > Not able to upload data using CSV import tool, get the following error > (perhaps, web2py csv import tool needs to read it in using 'rU' option?) - > > Running Version 2.5.1, Python 2.7, MacOSX. Tested it

[web2py] list controller overrides list type?

2013-08-08 Thread Alex
I have a type check isinstance(myvar, list) in a controller. This worked fine until I added a function to the controller: def list(): ... the built-in list type is overridden and is now a function (controller function). The isinstance check does not work anymore. Is this behavior on purpose? I

[web2py] Re: list controller overrides list type?

2013-08-08 Thread Anthony
Yes, that's how Python works -- if you create an object (including a function or class) with the same name as a built-in, you shadow the built-in (within that context). However, you will get a syntax error if you attempt to do the same with any o

[web2py] online book : jQuery.attr to jQuery.prop

2013-08-08 Thread Antonis Konstantinos Tzorvas
v5 - p. 504 - if(jQuery('#taxpayer_married').attr('checked')) attr is not being used anymore and this has to change in: + if(jQuery('#taxpayer_married').prop('checked')) in other way it worked with attr adding this line inside the if scope (4fun) jQuery(this).attr('checked', !jQuery(this).attr('

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Niphlod
it would give the same result, its the exact same "mental-mistake" if you negate the filter you get exactly what you would get negating the operator i.e. WHERE NOT column = 'T' matches exactly WHERE COLUMN <> 'T' a column holding a NULL value is "non-existant" for any (and I mean, really a

[web2py] Re: list controller overrides list type?

2013-08-08 Thread Alex
that makes sense. thanks! I have many list controller functions but probably never used the list type, so this was the first time I ran into this problem. Alex Am Donnerstag, 8. August 2013 13:47:15 UTC+2 schrieb Anthony: > > Yes, that's how Python works -- if you create an object (including a

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Richard Vézina
Thanks Niphold. I am aware of that, but forget about it sometimes :( I need bool to be NULL as I have more room for system evolution... Some bool field I set them to not null but some I keep them nullable that can bring me more insight on what going on with the record... Anyway thanks again... I

[web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm facing a bug when I redirect to another controller, that redirects the user to the login prompt, after having been authenticated. The code is too large to post here but was working before I refactored some modules (mostly by using cache on DB

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Clarifying the question: what kind of bug in my code may be causing the session to expire? Thanks, - -- Com os melhores cumprimentos, Carlos Correia = MEMÓRIA PERSISTENTE Tel.: 219 291 591 - GSM: 917 157 146 / 967 511 7

Re: [web2py] websocket_messaging.py example

2013-08-08 Thread Richard Vézina
Maybe it could help you : http://stackoverflow.com/questions/1253683/what-browsers-support-html5-websocket-api IE8 doesn't seems to be supported though. Richard On Wed, Aug 7, 2013 at 6:35 PM, keiser1080 wrote: > Hi, > > I need tu use websocket with ie 8. > A time ago i have read the tutorial

[web2py] LOAD inside a form

2013-08-08 Thread Tito Garrido
Hi Folks, I am using a LOAD function to put a ajax form inside of a form. This is to add videos to a content without need to reload the page... It works perfectly on firefox but on chrome, IE or Safari none of the forms works... It seems to ignore the ajax, reloads the pages and no validation is

[web2py] Re: Deploying on GAE through the Admin interface

2013-08-08 Thread Morten Jeppesen
Ran it from source and it works fine. Thank you. On Thursday, August 8, 2013 10:24:17 AM UTC+2, Massimo Di Pierro wrote: > > Excellent suggestion! Done. > > On Wednesday, 7 August 2013 19:04:59 UTC-5, Christian Foster Howes wrote: >> >> is it hard to warn users of that or disable the button in the

[web2py] JSON Error in web2py | WolframAlpha Python Binder

2013-08-08 Thread PRACHI VAKHARIA
** * * *JSON Error in web2py | WolframAlpha Python Binder* The Python binder from *WolframAlpha* developer gives JSON Error in web2py. Error: * cannot import name JSONDecodeError* The binder files (wap.py and simplejson folder) were put in the Modules folder inside *applica

[web2py] Re: online book : jQuery.attr to jQuery.prop

2013-08-08 Thread Massimo Di Pierro
fixed in trunk. Thanks. On Thursday, 8 August 2013 06:48:43 UTC-5, Antonis Konstantinos Tzorvas wrote: > > v5 - p. 504 > > - if(jQuery('#taxpayer_married').attr('checked')) > > attr is not being used anymore and this has to change in: > + if(jQuery('#taxpayer_married').prop('checked')) > > in oth

[web2py] Re: LOAD inside a form

2013-08-08 Thread Massimo Di Pierro
You cannot put a form inside a form. If the inner form contains input tags, for example, the browser does not understand whether it belongs to the most inner or the outer form. On Thursday, 8 August 2013 10:29:23 UTC-5, Tito Garrido wrote: > > Hi Folks, > > I am using a LOAD function to put a aj

[web2py] Re: JSON Error in web2py | WolframAlpha Python Binder

2013-08-08 Thread Massimo Di Pierro
Can you show us some code? Do you have a complete traceback? On Thursday, 8 August 2013 04:46:49 UTC-5, PRACHI VAKHARIA wrote: > > > > > > ** > > * > * > > *JSON Error in web2py | WolframAlpha Python Binder* > > > > The Python binder from *WolframAlpha* developer gives JSON Error in web2py.

[web2py] Re: Upload image and make a thumbnail question.

2013-08-08 Thread Michael Gheith
Perfect Massimo, thanks so much for all your help! The file should look like the following: uploads*.*thumb*.*08974530*-*d8a6*-*4c6c*-*a9d2*-*ad59e319b953* .base64encodedname.*jpg #no brackets Best! Michael Joseph Gheith On Monday, August 5, 2013 5:34:14 PM UTC-5, Massimo Di Pierro wrote: > >

[web2py] 3rd party mail API methodology

2013-08-08 Thread Wes Hall
How do I implement the alternate method site-wide? Is it as simple as matching the Mail() signature? What are the minimum parameters that would need to be in place for it to work site-wide? (Thinking of Auth, specifically) Is this a bad idea? As far as specifics go, I'm looking at the Elastic

Re: [web2py] Re: Nice change to admin interface for editing files, what about static files?

2013-08-08 Thread Tito Garrido
Is there a way to collapse this left menu or just remove it? It is now worse to see the code, we lost a lot of edit area for a menu, I personally didn't like it. Changes on the interface should be optional, it changes the way that you use the admin... On Tue, Aug 6, 2013 at 9:08 AM, Rob_McC wrot

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Hugo Costa
Sorry about the delay. The first one works fine, but only works for the first and the second. The code I used is: *index.html* * * {{for index, post in enumerate(news):}} {{if index==0:}} {{=post.title}}

[web2py] Cool "formstyle" trick w/Python lambda

2013-08-08 Thread Joe Barnhart
So I'm a control-freak. I mean that in a good way. I discovered the beauty of "placeholders" in forms and just thought "man, I really want that!" But where to hold the placeholder data? And how do I get it to the SQLFORM during form creation? At first I thought about adding YAV (yet another

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Joe Barnhart
Hmmm... That's not quite what I suggested. I suggested WHERE NOT COLUMN = 'F' which I think would result in the OP wants, True and NULL would be grouped together and False would be separate. Or are you saying that web2py db adapters will take the construction ~db.table.column=False and turn

Re: [web2py] Cool "formstyle" trick w/Python lambda

2013-08-08 Thread Richard Vézina
Nice Joe! Thanks for the recipe... Until now I was creating custom widget for that, but this seems simpler, because I was getting in trouble sometimes with custom widget when I was requiring to alter a widget or set a differents widget, since I was getting placeholder from a dabase dictionnary tha

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Roberto Perdomo
Good news! You really have three post? Can you print the three posts in a .html without carousel? You have checked the source of your index.html (in the browser) and search the three div inside "carousel-inner"? 2013/8/8 Hugo Costa > Sorry about the delay. > > The first one works fine, but onl

Re: [web2py] Cool "formstyle" trick w/Python lambda

2013-08-08 Thread Vinicius Assef
Excellent approach. :-) On Thu, Aug 8, 2013 at 3:11 PM, Joe Barnhart wrote: > So I'm a control-freak. I mean that in a good way. I discovered the beauty > of "placeholders" in forms and just thought "man, I really want that!" But > where to hold the placeholder data? And how do I get it to t

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Niphlod
Until now I assumed the problem of @Richard is that if a row has column == None, if he queries the table with column != True he expected the NULL row to show (because in python None is different from True). ~db.table.column=False will result in a WHERE NOT column = 'F'. You don't get any row ho

[web2py] Re: 3rd party mail API methodology

2013-08-08 Thread Niphlod
if you want to replace the standard Mail object, you need to match the signature of the function. Anyway, you can use Amazon's SES (assuming is the one you'd like to match) without adopting the API but using their SMTP server. On Thursday, August 8, 2013 8:06:54 PM UTC+2, Wes Hall wrote: > > >

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Hugo Costa
Yeah, I have. 3 is the magic number :) I did not understand this question. The third is missing Azeite Vinaldo Guache sobre Tela, 75x30 cm. 2013-08-07 18:03:38.774240 B

Re: [web2py] Re: Nice change to admin interface for editing files, what about static files?

2013-08-08 Thread Massimo Di Pierro
Something clearly is not working well for you. The latest menu (in trunk) is a drawer and it does not take any space. Which version are you using? Which browser? can you post a screenshot? On Thursday, 8 August 2013 13:14:23 UTC-5, Tito Garrido wrote: > > Is there a way to collapse this left me

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Ricardo Pedroso
On Thu, Aug 8, 2013 at 2:36 PM, Carlos Correia wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm facing a bug when I redirect to another controller, that redirects the > user > to the login prompt, after having been authenticated. > It's hard to tell what the problem is bu

[web2py] using contains operator with reference types

2013-08-08 Thread dave
I have two tables defined as follows db.define_table('animals', Field('type'), format='%(type)s') db.define_table('zoo', Field('name'), Field('tier', 'reference animals'), format='%(name)s' ) field type is a column with

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Roberto Perdomo
The {{pass}} of the if is not needed :-S 2013/8/8 Hugo Costa > Yeah, I have. 3 is the magic number :) > > I did not understand this question. > > The third is missing > > > > > > src="/diogo/static/images/carousel/carousel3.jpg" alt="banner1"> >Azeite Vinaldo >

Re: [web2py] Cool "formstyle" trick w/Python lambda

2013-08-08 Thread António Ramos
Nice, post it in web2pyslices!!! 2013/8/8 Vinicius Assef > Excellent approach. :-) > > On Thu, Aug 8, 2013 at 3:11 PM, Joe Barnhart > wrote: > > So I'm a control-freak. I mean that in a good way. I discovered the > beauty > > of "placeholders" in forms and just thought "man, I really want t

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Jonathan Lundell
On 8 Aug 2013, at 12:12 PM, Niphlod wrote: > Until now I assumed the problem of @Richard is that if a row has column == > None, if he queries the table with column != True he expected the NULL row to > show (because in python None is different from True). > > ~db.table.column=False will result

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Hugo Costa
You sir, made my day. Thanks a lot Roberto! :) Quinta-feira, 8 de Agosto de 2013 20:33:45 UTC+1, Roberto Perdomo escreveu: > > The {{pass}} of the if is not needed :-S > > > 2013/8/8 Hugo Costa > > >> Yeah, I have. 3 is the magic number :) >> >> I did not understand this question. >> >> The third

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Richard Vézina
I have been quite puzzled with .belongs() in the pass... I don't remember exactly was the cause of my problem at that time, I think it was if I was passing a list to .belongs() and it was empty. I think I had asking about that and get a answer from Niphold to... Let me searche that... Richard On

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Richard Vézina
Here : https://groups.google.com/d/msg/web2py/hQGyg6fL1Ls/zhxcWg7BsjYJ Was a type issue... Richard On Thu, Aug 8, 2013 at 3:47 PM, Richard Vézina wrote: > I have been quite puzzled with .belongs() in the pass... I don't remember > exactly was the cause of my problem at that time, I think it w

[web2py] Re: using contains operator with reference types

2013-08-08 Thread Massimo Di Pierro
This rows = db(db.zoo.tier == 2).select() is equivalent to rows = db(db.zoo.tier.belongs([2])).select() you can do rows = db(db.zoo.tier.belongs([2, 3])).select() On Thursday, 8 August 2013 14:28:47 UTC-5, dave wrote: > > I have two tables defined as follows > > db.define_table('animals', >

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Roberto Perdomo
dont worry, it's a pleasure for me. ;-) Kind Regards. 2013/8/8 Hugo Costa > You sir, made my day. > > Thanks a lot Roberto! :) > > Quinta-feira, 8 de Agosto de 2013 20:33:45 UTC+1, Roberto Perdomo escreveu: >> >> The {{pass}} of the if is not needed :-S >> >> >> 2013/8/8 Hugo Costa >> >> Yeah

[web2py] PyCharm 3.0 EAP web2py support!!

2013-08-08 Thread Richard
Hello, http://blog.jetbrains.com/pycharm/2013/06/meet-pycharm-3-0-eap/ :) Richard -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@goo

[web2py] Re: Cool "formstyle" trick w/Python lambda

2013-08-08 Thread Anthony
Nice. I think we should add an argument to Field() that takes a dictionary of args to pass to the field's widget (or maybe just add **kwargs to Field() and pass kwargs to the widget). For now, though, if that's all you want to do, you can do something like this: def widget(**kwargs): return

Re: [web2py] PyCharm 3.0 EAP web2py support!!

2013-08-08 Thread Richard Vézina
http://confluence.jetbrains.com/display/PYH/JetBrains+PyCharm+Preview+%28EAP%29 30 days free from july 29 But it not even as stable as a beta... Be aware. Richard On Thu, Aug 8, 2013 at 3:56 PM, Richard wrote: > Hello, > > http://blog.jetbrains.com/pycharm/2013/06/meet-pycharm-3-0-eap/ > > :

Re: [web2py] PyCharm 3.0 EAP web2py support!!

2013-08-08 Thread Robert O'Connor
EAP is fine. I use it all the time. On Aug 8, 2013 4:04 PM, "Richard Vézina" wrote: > > http://confluence.jetbrains.com/display/PYH/JetBrains+PyCharm+Preview+%28EAP%29 > > 30 days free from july 29 > > But it not even as stable as a beta... Be aware. > > Richard > > > On Thu, Aug 8, 2013 at 3:56

Re: [web2py] Re: Some typos (routes.py)

2013-08-08 Thread Martin Weissenboeck
Let's say I have a tuple like (r'.*:https?://q.q.mysite.org.* (?P.*)', ...) It will match both qqq.mysite.org and q.q.mysite.org (r'.*:https?://q\.q\.mysite\.org.* (?P.*)', ...) matches only q.q.mysite.org (which is intended) ('.*:https?://q\\.q\\.mysite\\.org.* (?P.*)', ...) Yes, I know, witho

[web2py] Re: using contains operator with reference types

2013-08-08 Thread dave
ok that works but I have one other question, how would I use the belongs operator If I want to refer a field by a name for example instead of rows = db(db.zoo.tier.belongs([2, 3])).select() I want to do this rows = db(db.zoo.tier.belongs(["test 2", "test 3"])).select() ? On Thu

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 08-08-2013 20:23, Ricardo Pedroso escreveu: > On Thu, Aug 8, 2013 at 2:36 PM, Carlos Correia > wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm facing a bug when I re

Re: [web2py] PyCharm 3.0 EAP web2py support!!

2013-08-08 Thread dave
how do you debug though, I tried setting breakpoints but it would not break when debugging it? On Thursday, August 8, 2013 1:08:31 PM UTC-7, Robert O'Connor wrote: > > EAP is fine. I use it all the time. > On Aug 8, 2013 4:04 PM, "Richard Vézina" > > wrote: > >> >> http://confluence.jetbrains.c

Re: [web2py] PyCharm 3.0 EAP web2py support!!

2013-08-08 Thread Richard Vézina
I just install it and it seems stable enough... I am not sure how to create project of type web2py... They say just open an app direcotry, but it not working... I use to have already a pycharm project for this app and can't figure how or if it possible to change the project type.. I can't see web

Re: [web2py] PyCharm 3.0 EAP web2py support!!

2013-08-08 Thread Richard Vézina
Ok, I figure it out. Create a new project, select existing app and say ok, then pycharm will prompt and say there is already file in app and ask if we want to load instead of creating a new app say ok! But seems that pycharm still not recognize gluon stuff... Richard On Thu, Aug 8, 2013 at 4:32

Re: [web2py] PyCharm 3.0 EAP web2py support!!

2013-08-08 Thread dave
can you debug? I can set breakpoints but it does not break or allow me to inspect variables. did you encounter this problem too? On Thursday, August 8, 2013 1:41:12 PM UTC-7, Richard wrote: > > Ok, I figure it out. Create a new project, select existing app and say ok, > then pycharm will prompt

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Niphlod
another piece of examples >>> for row in db(db.thenulltest.thenullablefield.belongs([True])).select(): print row ... >>> for row in db(db.thenulltest.thenullablefield.belongs([True,False])). select(): print row ... >>> for row in db(db.thenulltest.thenullablefield.belongs([True,False,None ]

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Niphlod
> Thanks for this. I've been puzzling over it myself the last couple of > days. It'd be helpful if your explanation, or at least a summary of it, > appeared in The Book. > > Would .belongs() work as expected (over True/False/None)? > Yep. Think to belongs() (that translates to an IN clause) a

[web2py] Re: using contains operator with reference types

2013-08-08 Thread Niphlod
you join them first and then you belong() on the type column. db( (db.zoo.tier == db.animals.id) & (db.animals.type.belongs(['test1', 'test2'])) ).select(db.zoo.ALL) On Thursday, August 8, 2013 10:19:47 PM UTC+2, dave wrote: > > ok that works but I have one other question, how would I us

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Michele Comitini
Is BizDoc pickable? 2013/8/8 Carlos Correia > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Em 08-08-2013 20:23, Ricardo Pedroso escreveu: > > On Thu, Aug 8, 2013 at 2:36 PM, Carlos Correia < > car...@memoriapersistente.pt > > > wrote: > > > >

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Ricardo Pedroso
On Thu, Aug 8, 2013 at 9:22 PM, Carlos Correia wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Em 08-08-2013 20:23, Ricardo Pedroso escreveu: > > On Thu, Aug 8, 2013 at 2:36 PM, Carlos Correia < > car...@memoriapersistente.pt > > > wrote: > > > >

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Jonathan Lundell
On 8 Aug 2013, at 1:47 PM, Niphlod wrote: > Although it doesn't raise an error, querying > WHERE column = NULL > doesn't return any result (unless you force a > really-its-going-to-be-superdeprecated-dont-do-that-youre-going-to-hell mode > in some backends) OK, that was confusing me, until I re

[web2py] Re: Pass python list back to controller

2013-08-08 Thread Kyle Flanagan
This worked well. Thanks. On Thursday, July 18, 2013 11:18:23 AM UTC-5, Ykä Marjanen wrote: > > Hi, > > If I understood correctly, you could use 'session' to save the list, so > you don't have to pass it back and forth to the controller. > > E.g. session.serials = [] and then session.serials.appe

[web2py] Re: using contains operator with reference types

2013-08-08 Thread dave
is there another way to do it, because this replaces my db.zoo.tier field with the id On Thursday, August 8, 2013 1:55:48 PM UTC-7, Niphlod wrote: > > you join them first and then you belong() on the type column. > > db( > (db.zoo.tier == db.animals.id) & > (db.animals.type.belongs(['test

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 08-08-2013 22:05, Ricardo Pedroso escreveu: > > On Thu, Aug 8, 2013 at 9:22 PM, Carlos Correia > wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Em 08-08-2013 20:23, Ricardo Pedroso

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 08-08-2013 21:56, Michele Comitini escreveu: > Is BizDoc pickable? > Yes. Otherwise Web2py would raise an exception (I think). > > 2013/8/8 Carlos Correia > > > Em 08-08-2013 20 :23, Ricardo Pedroso escreve

[web2py] autofocus html5 attribute support?

2013-08-08 Thread davedigerati
using a custom sqlform, in my view I can use the placeholder attribute but not the autofocus- is this being ignored by web2py? {{form.custom.widget.tm_home["_autofocus"]}} {{form.custom.widget.tm_home["_placeholder"] = "Home Team Name"}} I also tried autofocus without the _ with similar result:

[web2py] Re: autofocus html5 attribute support?

2013-08-08 Thread Anthony
form.custom.widget.tm_home["_autofocus"] This is just standard Python, so the above simply attempts to retrieve the value with key "_autofocus" -- it doesn't add the key if it doesn't exist. Instead, you can do: form.custom.widget.tm_home["_autofocus"] = True which will yield: which should

[web2py] Re: deployment to google app engine did not include my static files

2013-08-08 Thread davedigerati
Christian - I'm a total n00b so unable to help as much as I would like, but upon deployment of my app via the GoogleAppEngineLauncher on OS X 10.8.4, it fails with Error parsing yaml file: threadsafe cannot be enabled with CGI handler: gaehandler.py in "/Users/usernamehere/Dropbox/web2py/app

[web2py] Re: autofocus html5 attribute support?

2013-08-08 Thread davedigerati
and as usual Anthony, it does;) Thanks On Thursday, August 8, 2013 10:04:17 PM UTC-4, Anthony wrote: > > form.custom.widget.tm_home["_autofocus"] > > This is just standard Python, so the above simply attempts to retrieve the > value with key "_autofocus" -- it doesn't add the key if it doesn't ex

[web2py] How to switch between pg8000 and psycopg2?

2013-08-08 Thread Joe Barnhart
This is probably so simple everyone already knows it... but... Now that I have psycopg2 installed, my web2py instance always chooses it when opening a postgres database. How can I tell it to use the pg8000 driver? I'd still like to compare the two, and feed back hints to the pg8000 project if

[web2py] Re: accounting appliance

2013-08-08 Thread Mika Sjöman
Hi Did you do anything about this? I really need an accounting appliance but it seems I have to write one myself if not convering some other project. cheers On Thursday, June 3, 2010 9:48:11 AM UTC+8, Jim Karsten wrote: > > I am considering developing a web2py small business Accounting > appli

[web2py] Re: How to switch between pg8000 and psycopg2?

2013-08-08 Thread Joe Barnhart
OK. I looked at the source and found I can add a parameter to the URL: 'postgres:pg8000://web2py:web2py@localhost/mydatabase' But the bad news is --- pg8000 doesn't support Python 2.7! (Or so the docs say.) It stopped development awhile ago, apparently. Oh well. -- Joe On Thursday, August 8