[web2py] Re: Force all requests to https - a pointer please

2014-02-27 Thread Cliff Kachinske
Thanks Anthony, Right there in the core documentation. Should have known. On Thursday, February 27, 2014 9:02:36 PM UTC-5, Anthony wrote: > > A little easier: > > request.requires_https() > > That will redirect to the currently requested URL, but with https instead > of http. > > Anthony > > O

[web2py] Re: Force all requests to https - a pointer please

2014-02-27 Thread Anthony
A little easier: request.requires_https() That will redirect to the currently requested URL, but with https instead of http. Anthony On Thursday, February 27, 2014 6:27:18 PM UTC-5, Limedrop wrote: > > Try this: > > session.secure() > if not request.is_https: > redirect('https:

[web2py] Re: Show referenced records in form that only belong to author

2014-02-27 Thread brahama von
Woww.. like a charm! hehe... Thanks Anthony! I am finding it a bit difficult to catch and understand some things. New to programming in objects and frameworks. Thanks again for the hand El miércoles, 26 de febrero de 2014 19:46:36 UTC-3, Anthony escribió: > > db.uploads.up_post.requires = IS_IN_

[web2py] Re: Web2Py Pages module (basic CMS)

2014-02-27 Thread villas
Hi Rene Is there a plugin now? BTW the whole idea of using check_reserved is so you can avoid using reserved names with new projects. Finding a way to avoid that so you can use 'page' negates the purpose. Thanks for your effort to release this work and it will be very nice to see it in actio

[web2py] Re: Force all requests to https - a pointer please

2014-02-27 Thread Limedrop
Try this: session.secure() if not request.is_https: redirect('https://%s/%s' % (request.env.http_host, request.application)) On Friday, February 28, 2014 11:46:20 AM UTC+13, Cliff Kachinske wrote: > > I know I have read it somewhere, but I can't find it. > > Where can I find out

[web2py] Re: input validation and redirection -- how?

2014-02-27 Thread Anthony
Hard to say what's going on without seeing the real code. The code you have shown does not do what you say -- if you enter a non-IPV4 address, the form is not accepted, and instead it produces an error message as expected. Anthony On Thursday, February 27, 2014 4:45:05 PM UTC-5, Austin Taylor w

[web2py] Force all requests to https - a pointer please

2014-02-27 Thread Cliff Kachinske
I know I have read it somewhere, but I can't find it. Where can I find out how to force all requests to https? Thank you,m Cliff Kachinske -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2p

[web2py] Re: input validation and redirection -- how?

2014-02-27 Thread Austin Taylor
I figured it out. My return dict(form=form) was nestled under the else statement. Totally missed it and I'm sorry for wasting your time. However, when the new page appears with the validator the Submit button seems to be misplaced. It's now under the input field instead of next to it. On Thursd

[web2py] FYI: DAL accepts a variety of connection strings based on the underlying driver

2014-02-27 Thread dlypka
FYI. Although few if any examples are documented, it is possible to for example to connect to Microsoft SQLExpress this way connStr = ( r'Driver={SQL Server};' + r'Server=(local)\SQLEXPRESS;' + r'Database=MyDB;' + r'Trusted_Connection=Yes;' ) d

[web2py] Re: Roadmap

2014-02-27 Thread Simon Ashley
Try some dc.js -- 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-users" g

[web2py] Re: input validation and redirection -- how?

2014-02-27 Thread Austin Taylor
Anthony, I have another function in the code that redirects the page, but that should only work if form.process().accepted works. After if form.process().accepted: I have it run through a long list of code and at the very end it goes into a function defined in my models.py. The function writ

[web2py] Re: Best practices for using mercurial within web2py

2014-02-27 Thread Dave S
On Friday, February 21, 2014 7:28:20 PM UTC-8, Mark Graves wrote: > > Hey everyone, > > I'm trying to use web2py to manage multiple repos on my local system. > > I know using os.chdir is a problem. > > Is the best way to just hg clone [REPO_URL] [FULL_PATH_TO_FILES]? > > I'm not sure what you mean

[web2py] Re: Using ZURB Foundation?

2014-02-27 Thread Paolo Caruccio
It will be ready in few days. I'm doing the final checks. Il giorno giovedì 27 febbraio 2014 21:23:41 UTC+1, Timo Bahner ha scritto: > > How is your foundation package coming along? > > Timo > > On Thursday, December 26, 2013 6:15:56 AM UTC+1, Timo Bahner wrote: >> >> Hi. Is it possible to use ZU

[web2py] Re: Using ZURB Foundation?

2014-02-27 Thread Timo Bahner
How is your foundation package coming along? Timo On Thursday, December 26, 2013 6:15:56 AM UTC+1, Timo Bahner wrote: > > Hi. Is it possible to use ZURB Foundation for frontend design with web2py? > > Thanks & Merry Christmas. > -- Resources: - http://web2py.com - http://web2py.com/book (Docume

[web2py] Re: Web2Py Pages module (basic CMS)

2014-02-27 Thread Rene Dohmen
This was solved a while ago :) On Friday, December 20, 2013 9:34:21 AM UTC+1, Ruud Schroen wrote: > > We are still working on a plugin. > But we are facing a problem regarding reserved keywords which prevents us > from creating a plugin. > > db = DAL('sqlite://storage.sqlite',pool_size=1,check_re

[web2py] Re: Weird truncate performance problem after upgrade to 2.8.2

2014-02-27 Thread Rene Dohmen
We now did a drop outside of web2py. That's very fast. In the web2py logs we only see: DELETE FROM table; When we run that from appadmin or via execute_sql: very slow (3 sec for 100 rows) When we run it from sqlite3: it's done <1 sec On Thursday, February 27, 2014 6:01:10 AM UTC+1, Anthony wro

[web2py] Re: How to install some old version of web2py?

2014-02-27 Thread Niphlod
1 year and a couple of months later still my recommendations are valid :P On Thursday, February 27, 2014 10:09:03 AM UTC+1, yunus santur wrote: > > web2py.com/examples/static/1.99.7/web2py_src.zip didn't work > > i get "invalid request" errors > > 27 Ekim 2012 Cumartesi 23:41:19 UTC+3 tarihinde N

Re: [web2py] Re: Free opensource Janrain alternative - Python Social auth

2014-02-27 Thread Quint
Thanks! You could help by installing and testing the plugin: 1. You need at least a API key/secret for 1 oauth provider. I know that the Twitter or Live work with the version of python-social-auth packaged with the plugin. But python-socia

[web2py] Re: Exceedingly Dumb Question about chaining db conditions

2014-02-27 Thread Mark Billion
Thank you! On Thursday, February 27, 2014 1:24:06 PM UTC-5, Leonel Câmara wrote: > > What you're looking for is belongs > > a = db((db.clear.client==req_arg_0) & (!db.clear.Property_Type.belongs([ > 'aa', 'bb', 'cc'])).select() > -- Resources: - http://web2py.com - http://web2py.com/book (Doc

[web2py] Re: input validation and redirection -- how?

2014-02-27 Thread Anthony
Using your exact code, I cannot replicate the behavior you observe. Can you show the view code? Is there any other relevant code that might be doing a redirect somewhere? On Thursday, February 27, 2014 12:24:14 PM UTC-5, Austin Taylor wrote: > > Also want to add that the function takes me to a p

Re: [web2py] Which Postgresql version?

2014-02-27 Thread cmzenteno
Thanks for clarifying Richard Carlos Original message From: Richard Vézina Date:27/02/2014 12:14 PM (GMT-06:00) To: web2py-users Subject: Re: [web2py] Which Postgresql version? It because of distro rule about new version of package. Most distro don't update major vers

[web2py] Re: How to use markdown with dictionary

2014-02-27 Thread Dave S
(See below) On Friday, February 21, 2014 9:38:36 AM UTC-8, Austin Taylor wrote: > > I tried using this answer located here: > > http://stackoverflow.com/questions/9679090/using-modules-in-views/9680031#9680031 > > Here is the response i'm trying to follow (so you don't have to click the > link).

[web2py] Re: Exceedingly Dumb Question about chaining db conditions

2014-02-27 Thread Leonel Câmara
What you're looking for is belongs a = db((db.clear.client==req_arg_0) & (!db.clear.Property_Type.belongs([ 'aa', 'bb', 'cc'])).select() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

Re: [web2py] Which Postgresql version?

2014-02-27 Thread Richard Vézina
It because of distro rule about new version of package. Most distro don't update major version of package after lunch a version of distro just bug fix or security hole. It a good thing, it where come the legendary stability of most linux distro. :) Richard On Thu, Feb 27, 2014 at 11:35 AM, Carl

[web2py] Re: input validation and redirection -- how?

2014-02-27 Thread Austin Taylor
Also want to add that the function takes me to a page that says None. If the IP I type in the input field meets an if condition it works properly, but if its any kind of character, or an IP that doesn't match my script it redirects me to None. Any thoughts? On Wednesday, February 26, 2014 2:08

[web2py] Exceedingly Dumb Question about chaining db conditions

2014-02-27 Thread Mark Billion
So Ive got a select request that looks like this: a = db((db.clear.client==req_arg_0) & ((db.clear.Property_Type != 'aa') & (db.clear.Property_Type != 'bb') & (db.clear.Property_Type != 'cc'))).select() And it works just fine. However, when I do: a = db((db.clear.client==req_arg_0) & (db.cl

Re: [web2py] Re: Free opensource Janrain alternative - Python Social auth

2014-02-27 Thread Martin Weissenboeck
Ok, what can I do, how can I help? Regards, Martin 2014-02-27 16:39 GMT+01:00 Quint : > Hi, > > I need some people to test-drive this. > > Who want to help here and try it out? > > As soon as I get the initial bugs out and any bugs resulting from platform > differences, it can be advertised. >

[web2py] x-webkit-speech

2014-02-27 Thread Dominique
Hello, A simple and non essential question: is there a way to have x-webkit-speech work with web2py ? Thank you Dominique -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (

Re: [web2py] Which Postgresql version?

2014-02-27 Thread Carlos Zenteno
Thanks Why so many versions of postgresql ? If we can use any of them, guess we should use the newest one? -- 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) ---

[web2py] Re: CSS table width not limited as wished

2014-02-27 Thread Dominique
Thank you very much Paolo for your time spent for my small problem. I would never have found this alone, stick behind my screen... I applied your advices that I appreciate Thanks again Dominique Le mercredi 26 février 2014 21:49:45 UTC+1, Paolo Caruccio a écrit : > > I'm glad to hear this but pl

[web2py] Changing default datetime widget value in blank field

2014-02-27 Thread mcamel
Hello, Does anoybody knows how to alter the default value of the datetime widget in a blank datetime field?. I think it sets to the actual time in the timezone of the operating system. That's fine almost always, but no when the timezone of the application differs from the one of the system. A

Re: [web2py] Re: Free opensource Janrain alternative - Python Social auth

2014-02-27 Thread Quint
Hi, I need some people to test-drive this. Who want to help here and try it out? As soon as I get the initial bugs out and any bugs resulting from platform differences, it can be advertised. Thanks! Quint -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gi

[web2py] Re: web2py for a library of json files

2014-02-27 Thread Anthony
You might look at the code in gluon.tools.Exposefor ideas on how to display and link to a list of files. Anthony On Thursday, February 27, 2014 7:51:13 AM UTC-5, Thomas S wrote: > > Dear all, I have made some simpl

[web2py] Re: Roadmap

2014-02-27 Thread Anthony
Can you be more specific about what features you are looking for? I doubt anything as comprehensive as Splunk would end up on the web2py roadmap, but perhaps there are smaller pieces of functionality that interest you. Are you aware of any web app frameworks like web2py that include a machine da

[web2py] web2py for a library of json files

2014-02-27 Thread Thomas S
Dear all, I have made some simple experiments with web2py in the past and I have now the following problem: Given a bunch of n (n approx. 100) json files. Each json files defines an experiment. Using reflection it's enough to start the experiment with myLibrary.run(jsonFilename). Those files ar

Re: [web2py] Re: email on logging in is case sensitive. Is this a good idea?

2014-02-27 Thread villas
Hi Peter, You are right and I have been bitten by this issue too. I also think that it should be included in the welcome app so that it can prompt new users. I just tried to post the issue on Google Code but for some resason I could not. Maybe you can try to do that. Best wishes, D -- Re

[web2py] Re: Restricted access based on IP to video files

2014-02-27 Thread Leonel Câmara
With HTML5 you don't really need a custom video player and you can implement the IP restriction policy on the controller by analyzing the request. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] Re: Ckeditor plugin - Update ckeditor

2014-02-27 Thread Gael Princivalle
Hi Tim, thank you for your answer. >Do you refer to a plugin downloaded from web2py slices? Yes. For example if if want to use a recent CKeditor plugin for media embedding I cannot do it because they are not available for versions released before 4.0. Do you know how I can update CKeditor in th

[web2py] Re: Strange 'SQLTABLE linkto' behaviour

2014-02-27 Thread mcamel
Pull request done: https://github.com/mdipierro/web2py-book/pull/175 Thanks!. El miércoles, 26 de febrero de 2014 21:13:01 UTC+1, LightDot escribió: > > > > On Wednesday, February 26, 2014 10:44:21 AM UTC+1, mcamel wrote: >> >> ... >> If you agree you can close 1881 ticket. It's not a bug at the

[web2py] Restricted access based on IP to video files

2014-02-27 Thread Kenneth
Hello, I'm trying to built an system to be able to grant access to a bunch on video files based on IP-address. The idea is to have an unique URL for every video but depending on what IP range the viewer is connecting from he will get access to just some of the videos. No username or password w

Re: [web2py] Which Postgresql version?

2014-02-27 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 27-02-2014 01:53, Carlos Zenteno escreveu: > do I use postgresql 9.1, 9.2 or 9.3 with web2py? > Any. > does it work ok with all of them? Yes. > does psycopg2 works ok with any version of it and web2py? > Yes. > any tips on admin tools for li

[web2py] Re: How to install some old version of web2py?

2014-02-27 Thread yunus santur
web2py.com/examples/static/1.99.7/web2py_src.zip didn't work i get "invalid request" errors 27 Ekim 2012 Cumartesi 23:41:19 UTC+3 tarihinde Niphlod yazdı: > > ps: if you need the sourcecode, on > http://code.google.com/p/web2py/source/list there are from 1.77.1 > onwards, on https://github.com