Re: [web2py] Re: web2py setup scripts for windows

2014-10-24 Thread Tim Richardson
Ok, Simone is a legend. He found that a recent change in Microsoft's wfastcgi.py was causing the problem. He suggested a fix requiring IIS's URL rewrite module, which I have tested and it works. I've moved from apache to IIS now and I'll see how it goes over the coming week. -- Resources: - h

Re: [web2py] Re: SAML2 Service Provider app in web2py?

2014-10-24 Thread Massimo Di Pierro
I do not know what to say. It works with the provide I was using. Look into the provider log. perhaps there is an error message there. On Friday, 24 October 2014 19:30:24 UTC-5, Prasad Muley wrote: > > Yes. I've printed it. It shows empty dict > On Oct 23, 2014 7:33 PM, "Massimo Di Pierro" > wr

Re: [web2py] Re: SAML2 Service Provider app in web2py?

2014-10-24 Thread Prasad Muley
Yes. I've printed it. It shows empty dict On Oct 23, 2014 7:33 PM, "Massimo Di Pierro" wrote: > Yes it works for me. Can you help debug? Can you print d['response'] and > try figure out where the response attributes are? > > On Friday, 17 October 2014 00:42:29 UTC-5, Prasad Muley wrote: >> >> Hi

[web2py] Re: Bad link at http://web2py.com/layouts

2014-10-24 Thread Massimo Di Pierro
Thanks for reporting this. On Friday, 24 October 2014 08:51:56 UTC-5, Tim Chase wrote: > > I couldn't find anyplace other than this group at http://web2py.com to > report this. > > At http://web2py.com/layouts, Under About --> About plugins, the link is > http://web2py.com/book/default/chapter/

[web2py] Re: Getting web2py to reload module files for each return view

2014-10-24 Thread Massimo Di Pierro
Normally modules are not reloaded because they are cached by python. web2py can bypass this, depending on where the modules are located. If you kwwp in your modules in the web2py app/modules folder then you can do in your models/db.py DEBUG=True from gluon.custom_import import track_changes; tr

[web2py] Re: IS_EMPTY_OR not working for file upload

2014-10-24 Thread Massimo Di Pierro
Please open an issue. this should work. On Friday, 24 October 2014 02:13:54 UTC-5, Nurendra Choudhary wrote: > > I gave this validator. > requires=(IS_EMPTY_OR(IS_UPLOAD_FILENAME(extension='pdf'))) > > But when I submit the form I still get the error Enter a valid file name. > Please help me. > >

[web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2014-10-24 Thread Massimo Di Pierro
Hello Dexter, I think your are right. I will review this asap. Meanwhile, would you be able to open an issue with a link to this thread so we can more easily keep track. Thanks!. Massimo On Thursday, 23 October 2014 13:23:16 UTC-5, Dexter Hadley wrote: > > Hi All, > > This is my first time post

[web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2014-10-24 Thread Dexter Hadley
CORRECTION: I got the boolean wrong below... In fact, I fixed it by editing sqlhtml.py to force the exporter to condition on (request.vars.keywords *and not callable(searchable)*) before setting up the rows object to export. That is, if searchable is not defined, then SQLFORM.build_query get

[web2py] Bad link at http://web2py.com/layouts

2014-10-24 Thread Tim Chase
I couldn't find anyplace other than this group at http://web2py.com to report this. At http://web2py.com/layouts, Under About --> About plugins, the link is http://web2py.com/book/default/chapter/13#Plugins. I think that the "13" should probably be a "12". --Tim -- Resources: - http://web2

Re: [web2py] Re: SQLFORM.grid search with custom request.vars

2014-10-24 Thread Alen Cerovic
I am on the same boat, any solutions? Dana subota, 18. listopada 2014. 20:57:46 UTC+2, korisnik Alfonso de la Guarda Reyes napisao je: > > Hi, > > Any change about this? or at lesat how to solve? > > > El jueves, 8 de mayo de 2014 03:22:14 UTC-5, Paolo Valleri escribió: >> >> I opened an issue ht

[web2py] Re: Sticky sessions in a distributed environment

2014-10-24 Thread Niphlod
+1 on anthony. Dynos are meant to scale as "serving frontends". The data(base) that a dyno1 sees NEEDS to be the same data(base) dyno2 sees, or the whole concept of consistency is not assured (and there's little point of being "distributed" when the only consistency is assured by having a repli

Re: [web2py] Re: Limit SQLFORM.grid results

2014-10-24 Thread Niphlod
On Wednesday, October 8, 2014 1:00:56 PM UTC+2, Narūnas Krasauskas wrote: > > > I have never said anything like you quoted, what I said though was: "users > who can get to the search page ideally would be able to search/see all the > records". Meaning, that users has access to the 1+m records, ho

[web2py] Re: custom ordering on queries

2014-10-24 Thread Dave S
On Friday, October 24, 2014 12:34:41 PM UTC-7, Niphlod wrote: > > > if the cardinality of "owner" is not high, fetch them all and use "for row > in rows.sort(yourownfunction)". If the cardinality is high, either do two > queries, or add a "sort_index" integer column that you can use for large

[web2py] Re: Sticky sessions in a distributed environment

2014-10-24 Thread Anthony
With sessions in a shared database, you shouldn't need sticky sessions, as the sessions are accessed in one central location. Not sure why it's not working in this case, but it bears further investigation. Anthony On Friday, October 24, 2014 5:41:06 AM UTC-4, Louis Amon wrote: > > I am trying t

Re: [web2py] Sticky sessions in a distributed environment

2014-10-24 Thread Louis Amon
Indeed the very structure of Heroku makes it difficult to retain session coherence. But is there a way to work around this ? I mean if Heroku's structure makes it so that web2py gets completely confused about which dyno is which, then any performance gain attained through a distributed archite

Re: [web2py] Re: Rocket use

2014-10-24 Thread Bilal El
Thanks Phyo! I didn't knew that web2py was built on Rocket for the developpement environnement. Thanks for the advice about uWSGI. Le Fri Oct 24 2014 at 23:07:44, Phyo Arkar a écrit : > Web2py is by default run on rocket. > But even small set of users , i recommend uWSGI , it greatly improve >

[web2py] Re: Rocket use

2014-10-24 Thread Anthony
Yes, though it's actually the web server included with web2py: https://github.com/web2py/web2py/blob/master/gluon/rocket.py Anthony On Friday, October 24, 2014 5:03:36 PM UTC-4, Bilal El wrote: > > Hi Rod, > > I am interrested in the same kind of setup. > When you say Rocket, are you talking abo

Re: [web2py] Re: Rocket use

2014-10-24 Thread Phyo Arkar
Web2py is by default run on rocket. But even small set of users , i recommend uWSGI , it greatly improve perfornace and when doing big upload/download , it Shines! , ajax responses much faster . Plus very easy to install and setup uWSGI. On Sat, Oct 25, 2014 at 3:33 AM, Bilal El wrote: > Hi Rod,

[web2py] Re: Rocket use

2014-10-24 Thread Bilal El
Hi Rod, I am interrested in the same kind of setup. When you say Rocket, are you talking about : https://launchpad.net/rocket ? Thanks! Le vendredi 24 octobre 2014 22:03:12 UTC+2, Rod Watkins a écrit : > > Good. I like its simplicity. > Thanks! > > On Friday, 24 October 2014 12:42:43 UTC-7, Niphl

[web2py] Re: Rocket use

2014-10-24 Thread Rod Watkins
Good. I like its simplicity. Thanks! On Friday, 24 October 2014 12:42:43 UTC-7, Niphlod wrote: > > rocket is perfectly fine. > > On Friday, October 24, 2014 7:29:47 PM UTC+2, Rod Watkins wrote: >> >> Hello all, >> >> I am about ready to start deploying my site. It is a private site for >> about 8

Re: [web2py] Re: web2py website error with Chinese user

2014-10-24 Thread Dave S
On Thursday, October 23, 2014 12:27:09 PM UTC-7, Niphlod wrote: > > if you're serving all assets from the same hostname, then "Chinese network > restrictions" aren't the cause. Maybe a wrongly set proxy, but it's > entirely not web2py's fault, nor your app's code. > Could the user's browser ha

[web2py] Re: Rocket use

2014-10-24 Thread Niphlod
rocket is perfectly fine. On Friday, October 24, 2014 7:29:47 PM UTC+2, Rod Watkins wrote: > > Hello all, > > I am about ready to start deploying my site. It is a private site for > about 8-10 users. I was wondering if, given the small size, whether it > would be safe to use the rocket web serve

[web2py] Re: RESTful request args/vars with JSON array

2014-10-24 Thread Niphlod
ok. got it. usually in APIs you don't post an array, you post an object. automatic parsing works only for objects, not for arrays. On Friday, October 24, 2014 8:08:02 PM UTC+2, Henry Nguyen wrote: > > I'm on the latest version from the repo, > 2.10.0-beta+timestamp.2014.10.16.15.58.50, > though

[web2py] Re: custom ordering on queries

2014-10-24 Thread Niphlod
if the cardinality of "owner" is not high, fetch them all and use "for row in rows.sort(yourownfunction)". If the cardinality is high, either do two queries, or add a "sort_index" integer column that you can use for large sorts. use for row in rows.sort() -- Resources: - http://web2py.co

[web2py] custom ordering on queries

2014-10-24 Thread Dave S
This is a more general DB query, but I've learned to trust the web2py community, and web2py is where the answer will do me the most good. I'm looking at a table where I want to have a custom ordering on a field. Standard ascending and descending don't quite work for me in the use I'm intereste

[web2py] Re: reference auth_user from a table in one database to the auth_user table in another database

2014-10-24 Thread Dave S
On Thursday, October 23, 2014 7:11:19 AM UTC-7, Niphlod wrote: > > you can't reference fields from different databases. > > To work around that, you'd do a select on db1 to get the data you want, and then an update on db? /dps > On Thursday, October 23, 2014 3:07:50 PM UTC+2, Carl Petersen

[web2py] Re: RESTful request args/vars with JSON array

2014-10-24 Thread Henry Nguyen
I'm on the latest version from the repo, 2.10.0-beta+timestamp.2014.10.16.15.58.50, though I had this issue on the mainline 2.9.11 as well. Henry On Friday, October 24, 2014 12:37:15 AM UTC-7, Niphlod wrote: > > what web2py version are you on ? > > On Friday, October 24, 2014 3:01:23 AM UTC+2,

[web2py] Re: Opening PDF files in web browser

2014-10-24 Thread José Eloy
Any Idea? 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 subscribed to the Google Groups "web2py-user

[web2py] Rocket use

2014-10-24 Thread Rod Watkins
Hello all, I am about ready to start deploying my site. It is a private site for about 8-10 users. I was wondering if, given the small size, whether it would be safe to use the rocket web server, rather than apache or nginx? Thanks Rod -- Resources: - http://web2py.com - http://web2py.com/boo

Re: [web2py] Re: db.commit() taking too long to update records

2014-10-24 Thread Luciano Laporta Podazza
Thanks for the headsup Anthony!, luckly it's not my case. Cheers! On Thu, Oct 23, 2014 at 2:18 PM, Anthony wrote: > On Thursday, October 23, 2014 12:52:33 PM UTC-4, Leonel Câmara wrote: >> >> Doesn't the database take care of that? I mean isn't db session handling >> inside a transaction anyway

[web2py] Re: Sticky sessions in a distributed environment

2014-10-24 Thread Massimo Di Pierro
from https://devcenter.heroku.com/articles/java-faq The Heroku routing infrastructure does not support “sticky sessions”. Requests from clients will be distributed randomly to all dynos running your application. On Friday, 24 October 2014 04:41:06 UTC-5, Louis Amon wrote: > > I am trying to

[web2py] Re: How can I prevent a user from pressing the browser's back button?

2014-10-24 Thread Fotis Gioulekas
Hello sir, thank you for the hint I am working on this. I hope it works also in my application. BR F On Friday, October 24, 2014 10:54:54 AM UTC+3, T.R.Rajkumar wrote: > > You can do in the head section of the view > > history.forward(); > > I use it in my applications. > > On Wed

[web2py] Re: cool css3 hover effects

2014-10-24 Thread rahul kumar
try this one too... http://www.corelangs.com/css/box/hover.html Ling On Friday, November 11, 2011 12:27:46 AM UTC+5:30, Massimo Di Pierro wrote: > http://tympanus.net/Tutorials/OriginalHoverEffects/index.html -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

[web2py] Exporting from a SQLFORM.grid with customized search queries

2014-10-24 Thread Dexter Hadley
Hi All, This is my first time posting a question, so thanks to Massimo and they whole community for making web2py. Its great! I am trying to export results from a customized full-text search using SQLFORM.grid. My backend is a Postgres db, and I successfully define "search_widget" and "searc

[web2py] IS_EMPTY_OR not working for file upload

2014-10-24 Thread Nurendra Choudhary
I gave this validator. requires=(IS_EMPTY_OR(IS_UPLOAD_FILENAME(extension='pdf'))) But when I submit the form I still get the error Enter a valid file name. Please help me. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Getting web2py to reload module files for each return view

2014-10-24 Thread tahnoon pasha
Hi, Working with a team building a reasonably complex webapp for an investment management system, and I'm trying to learn something of the system too. I have a module that updates data from a file (simulating an FTP drop). Once the module has been loaded the first time, it doesn't update for

[web2py] Re: Question about a field boolean in MSSQL

2014-10-24 Thread Anthony
Looks like the MSSQL2 adapter stores booleans as "T" and "F" character values, so you may need to convert your 1's and 0's to "T" and "F". Anthony On Friday, October 24, 2014 7:14:47 AM UTC-4, Gianganh Nguyen wrote: > > Sorry, this issue just occur in *mssql2.* > > > Vào 17:36:52 UTC+7 Thứ sáu,

[web2py] Re: Question about a field boolean in MSSQL

2014-10-24 Thread Gianganh Nguyen
Sorry, this issue just occur in *mssql2.* Vào 17:36:52 UTC+7 Thứ sáu, ngày 24 tháng mười năm 2014, Gianganh Nguyen đã viết: > > > Hello to everybody, > I have a question, please answer for me! > > In the model, I define a field: > > *db.define_table('mytable',* > * Field

[web2py] Question about a field boolean in MSSQL

2014-10-24 Thread Gianganh Nguyen
Hello to everybody, I have a question, please answer for me! In the model, I define a field: *db.define_table('mytable',* * Field('is_imported', 'boolean', default = False), ...)* *db.**mytable* *.insert(is_imported = True,..)* *db.**mytable**.insert(is_imported = False

[web2py] Sticky sessions in a distributed environment

2014-10-24 Thread Louis Amon
I am trying to scale up my application deployed on Heroku by increasing the number of dynos and am currently confronted with the issue of handling sessions in a distributed environment. The regular solution (storing sessions in the database) does not seem to work anymore when multiple dynos run

[web2py] Re: How can I prevent a user from pressing the browser's back button?

2014-10-24 Thread T.R.Rajkumar
You can do in the head section of the view history.forward(); I use it in my applications. On Wednesday, August 27, 2014 3:06:45 AM UTC+5:30, Fotis Gioulekas wrote: > > Hello to everybody, > > I have built a quiz that randomlycreates questions. > Each time a user submits it's answer

[web2py] Re: RESTful request args/vars with JSON array

2014-10-24 Thread Niphlod
what web2py version are you on ? On Friday, October 24, 2014 3:01:23 AM UTC+2, Henry Nguyen wrote: > > Niphlod, > > That does not appear to be the case, either for request.restful() requests > or regular controller requests. For example, consider this controller > method: > > def test(): > l