[web2py] Re: Alternate way for ticket handling

2016-03-07 Thread luis . valladares
I dont want to be anoying but i still need some help and didnt find any information. My "solution" cant catch models or views errors. Thanks! El lunes, 22 de febrero de 2016, 16:45:26 (UTC-4:30), luis.va...@metamaxzone.com escribió: > > Hello! > > I want to manage and catch all the error of my

[web2py] Re: Fields from multiple tables in a single form

2016-03-07 Thread villas
Hi David Try these two... 1. In your table defs for project and proposer, make sure you add format='%(yourfieldname)s', So that Web2py knows what to show instead of 'id'. 2. You can use .represent in your model or controller. db.visit.proposer_id.represent = . See the book

[web2py] Re: list:reference, multiple=True, validation error

2016-03-07 Thread villas
Could someone please assist to resolve this bug? I am not sure what to do to fix it. Please note that this bug is in the latest source. I believe that it is in the IS_IN_DB validator. Thanks to anyone who might be able to help. To replicate, please do this: > 1. Make a new app. > 2. P

[web2py] Python Social Auth - example site working with downlevel version of PSA

2016-03-07 Thread Donald McClymont
I am sharing an example site http://www.netdecisionmaking.com that uses Python Social Auth for authentication, based on the following code and https://github.com/omab/python-social-auth and the web2py integration developed at https://github.com/bnmnetp/w2p-social-auth

[web2py] Re: nginx cannot import any module

2016-03-07 Thread Jim S
Are the paths to the modules included in the PATH environment variable? -Jim On Sunday, March 6, 2016 at 4:23:49 AM UTC-6, lungupco...@gmail.com wrote: > > > Hi everyone, > > Just deployed my web2py app on a NGINX + uswgi server. > Unfortunately, when I try to run it, I keep getting the error "n

[web2py] Re: restricting load calls with its html parent permission

2016-03-07 Thread Anthony
You can use a digital signature: http://web2py.com/books/default/chapter/29/04/the-core#Digitally-signed-urls When creating the component, do LOAD(..., user_signature=True). Then decorate your component actions with @auth.requires_signature(). Anthony On Monday, March 7, 2016 at 3:58:25 PM UTC

[web2py] Re: checkbox with label on the left side

2016-03-07 Thread Paolo Caruccio
In my sqlforms, I solved the issue with css. Prerequisite 1: formstyle = divs Prerequisite 2: you have to know the id of the field outer div i.e. that containing the div.w2p_fl and the div.w2p_fw Generally it is build as tablename_fieldname__row (for more on this subject see

Re: [web2py][OT] ZeroDB An open-source end-to-end encrypted database

2016-03-07 Thread Niphlod
nosql is pretty broad. zerodb is a key-value store, so nothing to abstract around it... On Monday, March 7, 2016 at 9:42:27 PM UTC+1, Richard wrote: > > Hello, > > Anyone eard about ZeroDB? > > https://www.zerodb.io/ > > I found this really recently and interresting in it. > > Curious to know how

[web2py] restricting load calls with its html parent permission

2016-03-07 Thread Ben Lawrence
Hi I just need a little advice here. There are logged in users on my website that are given permission to access a particular html page. The page changes depending on the user logged in. The controller decides on whether the user can access that page or not. The html page calls LOADs. How do

[web2py][OT] ZeroDB An open-source end-to-end encrypted database

2016-03-07 Thread Richard
Hello, Anyone eard about ZeroDB? https://www.zerodb.io/ I found this really recently and interresting in it. Curious to know how can web2py support it since it NoSQL and encrypted... Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: Bug migrating polyline

2016-03-07 Thread Leonel Câmara
Ok I solved this, but theres a bug with pydal. How I solved it, I manually migrated using: ALTER TABLE tour ALTER COLUMN polyline TYPE JSON USING polyline::JSON; Then I did a fake_migrate. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

[web2py] Re: Bug migrating polyline

2016-03-07 Thread Leonel Câmara
Is it because json fields are dealt differently now and migration didn't work? -- 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

[web2py] Bug migrating polyline

2016-03-07 Thread Leonel Câmara
I don't know why it's doing a migration since I didn't change this table at all but it is and I'm getting this error. column "polyline__tmp" is of type json but expression is of type text LINE 1: UPDATE tour SET polyline__tmp=polyline; ^ HINT: You will need to rewrite or cast the expression.

Re: [web2py] Re: random generator of stupid pages

2016-03-07 Thread Fabiano Almeida
Great work! 2016-03-07 3:24 GMT-03:00 Dave S : > On Sunday, March 6, 2016 at 8:49:15 PM UTC-8, Massimo Di Pierro wrote: >> >> http://mdipierro.github.io/stupid.css/themes/random.html >> > > > Nice! Thank you! > > /dps > > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Docume

[web2py] Re: Not receiving post_vars from external service webhook

2016-03-07 Thread Lisandro
Thank you very much Anthony and Niphlod for your help. I could rewrite my function to read the post JSON like this: def sparkpost_message_opened(): from gluon.contrib import simplejson post_data = simplejson.load(request.body) # notice it's load() and not loads() # here I can succesf

[web2py] checkbox with label on the left side

2016-03-07 Thread Viator
Hello dear knowers! I tried the whole day to create a form with a checkbox with its label on the left side instead of on the right side. But with no success. So far I ended up with a field as simple string and the option to select 'yes' or 'no'. But in this case the confirmation does not work

[web2py] Re: Not receiving post_vars from external service webhook

2016-03-07 Thread Niphlod
it's sending a json as a post content, not the usual form data that is automatically parsed. you'd get automatic request.post_vars reconstruction with json ONLY if they posted an object, but instead they're posting an array of objects (notice the [ ] at top and bottom). web2py (or anything, for

[web2py] Re: for those of us who do not understand ...

2016-03-07 Thread Leonel Câmara
How do you handle menus and submenus in touch devices where you don't "hover"? -- 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

[web2py] Re: Deploying with a lot of modules

2016-03-07 Thread Leonel Câmara
The production environment can always be a dedicated server or a VPS where you can pretty much install anything you have on your development computer. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

[web2py] Deploying with a lot of modules

2016-03-07 Thread Marty Jones
I'm working on developing a web2py application that uses a scraper. In order to accomplish what I need I'm using a lot of modules... Selenium, BeautifulSoup, possibly AutoIT, and all the dependencies of those modules... How do I begin to think about including those during deployment? I'm admitt

Re: [web2py] Re: for those of us who do not understand ...

2016-03-07 Thread Richard Vézina
I submit a PR to replace bla bla by Lorem ipsum extract... Richard On Mon, Mar 7, 2016 at 6:28 AM, Ron Chatterjee wrote: > Nice work Massimo. Looks really great. Once seen one theme but the others > looks nice as well. > > On Sunday, March 6, 2016 at 5:19:33 PM UTC-5, Massimo Di Pierro wrote: >

[web2py] Re: Not receiving post_vars from external service webhook

2016-03-07 Thread Lisandro
Thanks for the tip. I've done some tests, and I've found some details that could point the problem. I'm sending a test post to my app url, from SparkPost web app. SparkPost tells me that it will send this post: POST /ws/sparkpost_message_opened HTTP/1.1 Host: x.com.ar Content-Type: app

[web2py] Re: Not receiving post_vars from external service webhook

2016-03-07 Thread Anthony
request.vars, request.post_vars, and request.get_vars are properties (and their values are filled in lazily upon first access), so they are ignored by BEAUTIFY (which only includes attributes found in request.keys()). If you want the entire request object, you could try the trick used in respon

[web2py] Not receiving post_vars from external service webhook

2016-03-07 Thread Lisandro
I'm using SparkPost [1] (a transactional email platform) through its API [2]. I'm trying to implement their webhook. I have already set up a public URL in my app to let SparkPost send a POST each time a message is opened (that is, one of the messages I previously sent throug the API). The prob

[web2py] Re: Auth User split by tables

2016-03-07 Thread Anthony
This doesn't quite make sense. You are processing one form, and in the callback, you overwrite the "form" variable with an entirely new form object, attempting to process it immediately without the user having seen or submitted it. I think you need a different strategy. Two other tips: - If

[web2py] Re: for those of us who do not understand ...

2016-03-07 Thread Ron Chatterjee
Nice work Massimo. Looks really great. Once seen one theme but the others looks nice as well. On Sunday, March 6, 2016 at 5:19:33 PM UTC-5, Massimo Di Pierro wrote: > > Hello Ron, > > I changed the page so that when you hover on an example it shows a "?" and > if you just click it shoes you the