[web2py] Strange result from virtual fields

2014-10-10 Thread Niels Jensen
Hi Guys, I have the following virtual fields and for some reason one of them gives an error that I can't explain, I'm hoping one of you guys can shed some light on it: db.nessus_host_summary.total = Field.Virtual( 'total', lambda row: int(row.nessus_host_summary.count_info)

[web2py] Re: How to make search in grid/smartgrid case insensitive ? (v2.9.11)

2014-10-10 Thread Niphlod
@massimo: we covered all bases. If I'm not mistaken grid uses smart_query, that by default uses '=', that for strings/text/etc maps to 'like', that in turns maps to ilike (after lots of discussion about it). Even if it used contains(), though, for everybody (including the OP that uses sqlite) e

[web2py] Re: Returning a token for Android app authentication

2014-10-10 Thread Mark Graves
Did you ever finish this? I implemented something similar. I'd love to collaborate and get a repo up for working with mobile devices with web2py as an app back end. On Sunday, January 6, 2013 11:43:05 AM UTC-6, dlypka wrote: > > If you mimic the same http traffic that a browser would generate,

[web2py] Re: Trying to build a table in a view depending on content of row

2014-10-10 Thread Niels Jensen
Thanks for the replies. I also fount a typo (no closing brackets at the end of the statements. I've got past this problem now... On Friday, 10 October 2014 18:25:15 UTC+1, Anthony wrote: > > > {{if not row.nessus_host_summary.critprct == '0':}} >> {{print "%s" % >> (row.nessus_

[web2py] Re: Apostrophe causes new column in PYFPDF

2014-10-10 Thread Massimo Di Pierro
I am pretty sure this is a pyfpdf issue and you should report it to the maintainers. On Friday, 10 October 2014 08:00:49 UTC-5, Richard Warg wrote: > > Here are some additional observations- > it only fails in tables, either inside a or TD (). > the actual application is using text from a datab

[web2py] Apostrophe causes new column in PYFPDF

2014-10-10 Thread Richard Warg
Here are some additional observations- it only fails in tables, either inside a or TD (). the actual application is using text from a database column. RTF and CSV output conversions work as expected with the same data. I suspect an issue with the pdf table conversion code. -- Resources: - h

[web2py] keep value of email address text fieild after submit form

2014-10-10 Thread Jawad K.
Hi, I am new developer, I have a new web2py app with a login form. I just want to keep value of email address text field after submitting form if username or password is invalid... kindly suggests anything. Regards, Jawad K. -- Resources: - http://web2py.com - http://web2py.com/book (Docum

[web2py] Re: mssql legacy tables reference

2014-10-10 Thread Alen Cerovic
it WORKS now :-) I was playing with it and suddenly it is OK. I dont know what it was, I believe " vs ' these are working definitions: db.define_table("Mjesta", Field ("PostanskiBroj", "integer",notnull=True,unique=True), Field

[web2py] Re: How to make search in grid/smartgrid case insensitive ? (v2.9.11)

2014-10-10 Thread Massimo Di Pierro
Yes. grid uses contains(...) to build queries. It should default to case insensitive except for MongoDB and GAE. We should still have a ticket perhaps we can deal with these cases and we (I) will not forget. On Friday, 10 October 2014 10:01:09 UTC-5, Niphlod wrote: > > it's case-insensitive in t

[web2py] Re: Trying to build a table in a view depending on content of row

2014-10-10 Thread Anthony
> {{if not row.nessus_host_summary.critprct == '0':}} > {{print "%s" % > (row.nessus_host_summary.critprct, row.nessus_host_summary.count_crit}} > {{=TD(row.nessus_host_summary.count_crit, _width=row.nessus_host_summary. critprct)}} or: {{=row.nessus_host_summary.count_crit

[web2py] off topic flowchart.js

2014-10-10 Thread António Ramos
I like it. http://adrai.github.io/flowchart.js/ Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscri

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-10 Thread lpg
Hi Miguel, I've been talking with Niphlod, w2p maintainer. See here. https://groups.google.com/forum/#!topic/web2py-developers/CYE9E7sL7QI Looks like there will be an update to w2p shortly. Meanwhile you can try what Niphlod developed, I attached here. It works with Release Pipelines as well (Whi

[web2py] Re: Trying to build a table in a view depending on content of row

2014-10-10 Thread Leonel Câmara
Don't use print. Use {{='text I want to write'}} or {{response.write('text I want to write')}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You receiv

[web2py] Trying to build a table in a view depending on content of row

2014-10-10 Thread Niels Jensen
Hi, I'm trying to build a table where each a is only created if it has a value and the width is determined by a predetermined percentile that exists in the row This is what I have: Vulnerability Count {{for row in summary:}} {{=row.nessus_hosts.name}}

[web2py] Re: pythonanywhere

2014-10-10 Thread Niphlod
why should you ever want to ditch https if you get it for free ? On Thursday, October 9, 2014 10:11:20 PM UTC+2, clara wrote: > > Hello, > > I realize that when deploying simple web2py applications on > pythonanywhere, they get deployed via HTTPS so it is served as > https://myuser.pythonanywher

[web2py] Re: How to make search in grid/smartgrid case insensitive ? (v2.9.11)

2014-10-10 Thread Niphlod
it's case-insensitive in trunk right now without the need to open a ticket. On Friday, October 10, 2014 6:41:19 AM UTC+2, Massimo Di Pierro wrote: > > Please open a ticket. We should be able to pass a parameter. > > On Thursday, 9 October 2014 04:09:47 UTC-5, Nikos Papageorgiou wrote: >> >> Hi, >>

Re: [web2py] Re: a very selfish request

2014-10-10 Thread António Ramos
Thank you for everything Massimo. 2014-10-10 8:54 GMT+01:00 weheh : > I tweeted. Good luck and hope you get the well-deserved promotion. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google

Re: [web2py] Re: create web2py application with 2 database

2014-10-10 Thread Iuri Guilherme dos Santos Martins
Em 09-10-2014 10:55, Oli escreveu: see there - https://groups.google.com/forum/?fromgroups#!searchin/web2py/dal$20test$20prod/web2py/NCH0_lcWD_g/sPydNBZgPz0J This doesn't seem to

[web2py] Re: a very selfish request

2014-10-10 Thread weheh
I tweeted. Good luck and hope you get the well-deserved promotion. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you a

[web2py] Re: a very selfish request

2014-10-10 Thread cem
I don't have a twitter account (don't ask why) but I wanted to say few things. The web2py project helped me to dive into the web technologies but more than that, reminded me that there are good people doing nice things just for good. Thanks and wish you luck, hope you get it. 9 Ekim 2014 Perşem