Re: [web2py] Re: Off Topic:Pony

2018-03-15 Thread Carlos Cesar Caballero Díaz
Personally I will only see PonyORM as a viable tool if they finally implement a working migrations tool. Greetings. El 16/03/18 a las 00:22, Massimo Di Pierro escribió: yes this it nice. We should take the time to determine which features of pydal are missing in ponyorm if any. If not maybe w

[web2py] Re: change button form style

2018-03-15 Thread Massimo Di Pierro
web2py does not handle style. You have to edit the css. All web2py does it generate the html you apply style to. that html uses bs2, or bs3 or bs4 classes. If you need anything else we recommend you use jQuery to replace classes or use custom forms. On Thursday, 15 March 2018 15:04:06 UTC-5, A

Re: [web2py] auth.settings.actions_disabled.append('register')

2018-03-15 Thread Massimo Di Pierro
That used to be done automatically when registration was disabled. It made the layout unnecessarily complex. Any action could be disabled and that;s a lot of if statements. On Saturday, 10 March 2018 21:34:49 UTC-6, alex wrote: > > What about removing this: > > href="{{=URL('default','user/reg

[web2py] Re: Search box in navbar in defaut layout.html

2018-03-15 Thread Massimo Di Pierro
useless. We just thought some people may find a use for it or remove it if they do not need it. The default layout is an example. On Saturday, 10 March 2018 14:51:10 UTC-6, Mark Erbaugh wrote: > > What is the purpose and usage of the Search box displayed in the navbar > when using the default la

[web2py] Re: web2py_osx.zip seems way out of date ???

2018-03-15 Thread Massimo Di Pierro
For some reason you have two version of pydal, the one under web2py/gluon/packages and one in python site-packages and you are using the latter. That should not be the case. You should use the one under web2py On Friday, 9 March 2018 14:16:09 UTC-6, marco mansilla wrote: > > I recently got this

[web2py] Re: Sites Powered by web2py

2018-03-15 Thread Massimo Di Pierro
You are right. Must do a better job at that. Will review next week. On Thursday, 8 March 2018 21:47:45 UTC-6, Alexander Scarlat MD wrote: > > Tried today to upload a new website > https://www.text2codes.com/ > and got the same link to internal error ticket. > > IMHO, I think the list needs be cura

[web2py] Re: Off Topic:Pony

2018-03-15 Thread Massimo Di Pierro
yes this it nice. We should take the time to determine which features of pydal are missing in ponyorm if any. If not maybe web3py should be based on ponyorm. On Thursday, 8 March 2018 17:47:39 UTC-6, greenpoise wrote: > > Nice indeed. Thanks > > On Wednesday, March 7, 2018 at 3:19:14 AM UTC-8, R

[web2py] Re: Problem Pickling Session

2018-03-15 Thread Massimo Di Pierro
do you have session in cookie or db? Do you have a line in your code like session.connect()? On Wednesday, 7 March 2018 16:11:29 UTC-6, Mark Erbaugh wrote: > > Web2Py is 2.16.1-stable+timestamp.2017.11.14.05.54.25 > > I tried deleting all the files in the application (both my application and

[web2py] Re: SQLFORM.grid buttons

2018-03-15 Thread Massimo Di Pierro
we should release a new version soon where font-awesome s the default. On Wednesday, 7 March 2018 07:12:18 UTC-6, Esprit Garonne wrote: > > Many Thanks, > Omg! I am really enjoying to test this framework. > > On Tuesday, March 6, 2018 at 8:33:26 PM UTC+1, Esprit Garonne wrote: >> >> Hello, >>

[web2py] Linux Torvalds on vulnerability

2018-03-15 Thread Massimo Di Pierro
Interesting read http://www.zdnet.com/article/linus-torvalds-slams-cts-labs-over-amd-vulnerability-report/ It reminds me of when people criticize web2py because admin/appadmin allow arbitrary code execution. Of course they do! Admin is designed to allow the developer (admin) to write any code v

[web2py] login, redirects, and multiple apps

2018-03-15 Thread Dave S
I have a server with one web2py instance (fronted by nginx/uwsgi), two apps, and a routes.py that says app1 is default. I recently (that is, last night) added a new function to app2, protected (as usual) with @auth.requires_membship('innercircle'). In addition, I had to create a new user 'goo

Re: [web2py] Re: Customizing Fields the lazy way

2018-03-15 Thread Richard Vézina
I found a pretty unclean workaround... You have to set the widget like this : db.tablename.REFERENCEDTABLEOFCHILDFIELD.widget = \ lazy_options_widget(on_key='no_table_PARENTFIELDNAME__selected', off_key='PARENTFIELDNAME__unselected',

Re: [web2py] Re: Customizing Fields the lazy way

2018-03-15 Thread Richard Vézina
I wonder if we could we also make field lazy that way in context of custom form... I find some issue with some of my custom form where I use Field() to define my field that will be use... This form is also dynamic, I manipulate field visibility and lazy_option_widget() to make some field depend of

[web2py] Re: Where is Auth table on Database Administration?

2018-03-15 Thread greenpoise
that was it! thanks On Tuesday, March 6, 2018 at 9:34:19 PM UTC-8, Massimo Di Pierro wrote: > > that happens when you redefined db=DAL(...) maybe have shadow models/db.py > > On Thursday, 1 March 2018 17:40:39 UTC-6, Anthony wrote: >> >> Don't think so. >> >> On Thursday, March 1, 2018 at 6:20:

[web2py] Re: self.error ProgrammingError(u'ERROR', u'42P07', u'relation ..., u'1066', u'heap_create_with_catalog'

2018-03-15 Thread greenpoise
Just noticed this had a followup. I did as you said and sure enough, some of the tables name had reserved words (dont ask me how they would work before but now they wouldnt). Anyways, that did the trick. Thanks On Tuesday, March 6, 2018 at 9:33:39 PM UTC-8, Massimo Di Pierro wrote: > > neve

[web2py] Re: OAUTH2.0 help

2018-03-15 Thread greenpoise
I need a push on this one. Now that I know how to properly Authenticate, also retrieve the code and the access_token which in turn is the same one used to refresh_token, how can I put everything together? I need to check whether the token is expired ( I am thinking a session) and if it is, auth

[web2py] Re: SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-15 Thread Paolo Caruccio
Leonel's suggestion worked but I had to set the key within headers dictionary and column name within column lists of SQLTABLE to '''GROUP_CONCAT("RISCHI"."rischio", \', \')''' However, it seems to me that pyDal accepts SQL strings but it is SQLTABLE that doesn't handle them as before. So I hav

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-15 Thread Manuele Pesenti
Il 15/03/18 20:21, Anthony ha scritto: > Hard to say what's wrong. Where did you get that signature and request > body? You might be better off getting help from folks who know > WooCommerce, as this issue does not appear to be web2py specific. > Yes for sure! Thanks a lot.     M. -- Resources:

[web2py] change button form style

2018-03-15 Thread Andrea Fae'
Can I have any examples about changing some style of form components, like for example buttons, text fields, labels,etc? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-15 Thread Anthony
Hard to say what's wrong. Where did you get that signature and request body? You might be better off getting help from folks who know WooCommerce, as this issue does not appear to be web2py specific. Anthony On Thursday, March 15, 2018 at 1:09:31 PM UTC-4, Manuele wrote: > > On 01/03/2018 00:50

[web2py] Re: Passing an integer javascript variable from view to controller

2018-03-15 Thread Leonel Câmara
You can do this by sending it using json. But, if you don't mind me asking, what are you trying to do? -- 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 Issue

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-15 Thread Manuele Pesenti
On 01/03/2018 00:50, Anthony wrote: I think you're on the right track. If you need the original request body to verify the signature, request.body.read() should do it. Does that not work? Hi Anthony, actually no :( it doesn't work, here[1] I tried to extrapolate the very essential code in ord

[web2py] Re: Angular 2 and web2py

2018-03-15 Thread Anthony
On Thursday, March 15, 2018 at 11:05:56 AM UTC-4, anil.a...@capitalfloat.com wrote: > > I tried integrating angular5+ framework in my already existing web2py > framework and Its running fine, Changed delimiter and interpolation in > angular . I am not able to fetch variables defined in web2py

[web2py] Re: Angular 2 and web2py

2018-03-15 Thread anil.arya via web2py-users
I tried integrating angular5+ framework in my already existing web2py framework and Its running fine, Changed delimiter and interpolation in angular . I am not able to fetch variables defined in web2py from script tag in index.html, is the only issue For exp : var baseUrl = "{{=BAS

[web2py] Passing an integer javascript variable from view to controller

2018-03-15 Thread Ashwanth Unni
How to pass an integer javascript variable from view to controller? -- 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

[web2py] Re: SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-15 Thread Anthony
On Thursday, March 15, 2018 at 7:59:42 AM UTC-4, Leonel Câmara wrote: > > I'm going to say it outright I don't think this should be supported. > > I don't think this should be considered a backwards compatibility problem, > because you're not using the DAL API you're just sending SQL in a string.

Re: [web2py] Re: How to serve same view for multiple urls

2018-03-15 Thread Anthony
On Thursday, March 15, 2018 at 8:01:48 AM UTC-4, Ur. Kr. wrote: > > I'm currently using React/ReactRouter/Redux. The main issue is for web2py > to serve the same view wherefrom the javascript determines what other > requests to make and what to render. > Now if I have > controller file controll

Re: [web2py] LDAP authentication questions

2018-03-15 Thread Richard Vézina
For 1 you already have this opportunity as you example is mostly the same as : auth.settings.login_methods = \ [auth, ldap_auth(...)] So web2py will try authenticate user against web2py data, if it fails it will try the AD. 2) There's the tricky part... The simplest would be to inform y

[web2py] Re: How to serve same view for multiple urls

2018-03-15 Thread Leonel Câmara
You can set the view file using response.view = 'myview.html' in your controller function. -- 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 t

Re: [web2py] Bug in ldap library for python3?

2018-03-15 Thread Richard Vézina
Migth be interesting in this patch : https://github.com/web2py/web2py/issues/1880 On Wed, Mar 14, 2018 at 12:43 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > It debian package... If you goes with pip it should be python-ldap... > > Good luck > > Richard > > On Wed, Mar 14, 2018 at 3:

Re: [web2py] Re: How to serve same view for multiple urls

2018-03-15 Thread Ur. Kr.
I'm currently using React/ReactRouter/Redux. The main issue is for web2py to serve the same view wherefrom the javascript determines what other requests to make and what to render. Now if I have controller file controllers/default.py Then I go to default/page This doesn't work if there's no `p

[web2py] Re: SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-15 Thread Leonel Câmara
I'm going to say it outright I don't think this should be supported. I don't think this should be considered a backwards compatibility problem, because you're not using the DAL API you're just sending SQL in a string. If you put that "GROUP_CONCAT" in a pyDAL Expression and that doesn't work

Re: [web2py] Re: How to serve same view for multiple urls

2018-03-15 Thread Massimiliano
If I understand correctly what you mean, you need an entrypoint that could be index in your controller that load the view. Now from the view you get and set data via ajax from/to other controller functions. SPA are heavly javascript based. Take a look on discussions on Vue.js On Thu, Mar 15, 201

[web2py] Re: How to serve same view for multiple urls

2018-03-15 Thread Ur. Kr.
Would also need a way to redirect to "index" controller instead of getting "invalid controller" when navigating to a URL without a controller. On Thursday, March 15, 2018 at 11:28:33 AM UTC+1, Ur. Kr. wrote: > > If you want to convert part of a web2py app into an SPA with client-side > routing,

[web2py] google analytics integration

2018-03-15 Thread Manuele Pesenti
Hi! What's the difference between thees two (different?) approaches: * https://support.google.com/analytics/answer/1008080?hl=en * http://web2py.com/books/default/chapter/29/05/the-views?search=analytics#Default-page-layout the script integrated in the web2py framework it's not so easy to a

[web2py] How to serve same view for multiple urls

2018-03-15 Thread Ur. Kr.
If you want to convert part of a web2py app into an SPA with client-side routing, how do you make web2py serve the same view for multiple urls? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/

[web2py] LDAP authentication questions

2018-03-15 Thread Johann Spies
I am trying out ldap authentication after I have last used it in 2006. My ldap knowledge is minimal. After reading the documentation in the book and in ldap_auth.py I have a few questions about authentication and ldap. Background: Only a few users (probably not more than 5 or 6) will use this ap

Re: [web2py] Re: prevent multiple session at the same time

2018-03-15 Thread Manuele Pesenti
On 12/03/2018 15:08, Anthony wrote: What if I cache on disk the result of a function that returns the session id and I check if it corresponds to the real value? Not sure what you mean. Where does the session ID produced by the function come from, and how is the "real value" defined