Re: [web2py] Re: web2py 2.15.0b1

2017-07-05 Thread Martin Weissenboeck
Hi, nice to have a new version. The problems with markmin2html remain, see issue 1671 https://github.com/web2py/web2py/issues/1671 A short summary - an ordered list inside a blockquote does not work: A controller: def mmtest(): t=""" --- This is an ordered list: + Item 1 + It

[web2py] Re: DAL pg8000 adapter and JSON type

2017-07-05 Thread lyn2py
> > what do you mean by " manually altered the type to JSON"? I meant that I logged into the Postgresql DB and ran a command to cast the right type, i.e. "json", for that particular column. On Thursday, July 6, 2017 at 4:49:14 AM UTC+8, Massimo Di Pierro wrote: > > what do you mean by " man

[web2py] Re: web2py 2.15.0b1

2017-07-05 Thread 黄祥
another test 1. can't use response.optimize_js in models/db.py, previous version can work response.optimize_js = 'concat,minify,inline' Traceback (most recent call last): File "/Users/MacBookPro/site/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "", li

[web2py] Re: web2py 2.15.0b1

2017-07-05 Thread 黄祥
tried to build from scratch with minimal code for test before insert callback problem : *1. create new web2py app* *2. models/db_test.py* def before_insert_test(f): f['field1'] = 'field1' db.define_table('table0', Field('field0', notnull = True, required = True), Field('field1', not

[web2py] Re: How to debug via admin?

2017-07-05 Thread Peter
Hi Ramos That is potentially a huge question and maybe I am misunderstanding, apologies if so. I usually use print statements to output and track variable values or args/vars and that is usually sufficient for my needs, but surely you just need to insert a breakpoint (trial and error) just

[web2py] Re: change login page layout

2017-07-05 Thread Peter
Hi Pierre, I don't know the recommended method and I have not tested to see exactly how many pages are affected by this (so I'm happy to be corrected) but this worked for me at least on the login page... edit user.html and replace first line... {{extend 'layout.html'}} with {{if

[web2py] Re: DAL pg8000 adapter and JSON type

2017-07-05 Thread Massimo Di Pierro
what do you mean by " manually altered the type to JSON"? Anyway, please use psycopg2 instead of pg8000. On Tuesday, 4 July 2017 04:03:00 UTC-5, lyn2py wrote: > > I'm using Postgresql, with the pg8000 adapter. > > One of the fields I have is of 'json' type > > Field('json_string','json'),

[web2py] Re: Hosting web2py app on BigRock

2017-07-05 Thread Massimo Di Pierro
Do not recommend running web2py (or any other python app) on any shared hosting service. They put lots of limitations on what you can do for no reason. Shared hosting used to be cheaper but that is no longer true. There is no reason to use shared hosting. On Saturday, 1 July 2017 10:38:22 UTC-5

[web2py] Re: Web2py Error apache2 ubuntu server form two ports

2017-07-05 Thread Massimo Di Pierro
Does the problem go away if you delete your sessions? If not, can you please open a github issue about this? On Friday, 30 June 2017 13:36:22 UTC-5, Marco Antonio Castro Collazos wrote: > > 1073/5000 > Good morning everyone > I have the following problem: > I have web2py installed on an ubuntu se

[web2py] Re: Violating unique constraint in Field doesn't go to standard 500 page

2017-07-05 Thread Massimo Di Pierro
Could you post a minimal code to reproduce this? On Thursday, 29 June 2017 08:42:42 UTC-5, Chris wrote: > > Hello! > > I'm running 2.14.6-stable+timestamp.2016.05.10.00.21.47 and have hit this > issue: > > If I have a Field where unique=True, inserting a row with a duplicate > Field value trig

[web2py] Re: ValueError: invalid literal for long() with base 10:

2017-07-05 Thread Peter
Hi BlueShadow, Are you using routes.py? (Which I know nothing about) Can you redirect errors to a custom error_handler function that parses the error out and redirects to a valid page... from the book... In "routes.py" you can also specify an action in charge of error handling: > error_handle

Re: [web2py] Re: Any ideas on how to prepare web2py apps for GDPR

2017-07-05 Thread António Ramos
just found the solution for pseudonimization of personal data as suggested by GDPR http://www.web2pyslices.com/slice/show/2012/encrypt-information-into-the-database Web2py is GDPR ready! Regards António 2017-07-04 22:26 GMT+01:00 António Ramos : > Something about cookies and GDPR. > > http

[web2py] Re: change login page layout

2017-07-05 Thread Marlysson Silva
Do you replace the first line "extends" in pages that inherits from "layout.html" by the "mylayout.html" ? Em quarta-feira, 5 de julho de 2017 13:22:46 UTC-3, Pierre escreveu: > > Hi, > > how do i tell web2py to use *mylayout.html* instead of *layout.html* for > *login* and other auth related p

[web2py] change login page layout

2017-07-05 Thread Pierre
Hi, how do i tell web2py to use *mylayout.html* instead of *layout.html* for *login* and other auth related pages ? -- 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

[web2py] Re: web2py 2.15.0b1

2017-07-05 Thread Leonel Câmara
My bad I'm still using the old jquery version. -- 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

[web2py] Re: web2py 2.15.0b1

2017-07-05 Thread 黄祥
@leonel : - for before_insert callback problem yes, you are right, i intentionally didn't put fund_manager value because i want to test the before_insert callback during insert data on install controller the same code running well in previous version 2.14.6-stable - for admin page manage button p

Re: [web2py] Re: web2py 2.15.0b1

2017-07-05 Thread António Ramos
tried chrome with a hard refresh and i got this after pressing the "Manage " button [image: Imagem inline 1] 2017-07-05 12:52 GMT+01:00 Leonel Câmara : > Ramos have you done a hard refresh, It's very odd because I don't see that > error at all. > > -- > Resources: > - http://web2py.com > - http:

[web2py] Re: web2py 2.15.0b1

2017-07-05 Thread Leonel Câmara
Ramos have you done a hard refresh, It's very odd because I don't see that error at all. -- 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 thi

[web2py] ValueError: invalid literal for long() with base 10:

2017-07-05 Thread BlueShadow
Hi, I get incresing numbers of errors because there are external sites linking to an address like: www.mydomain.com/Controlerfunction?id=123Brandon So the link is correct up to the id value but for some reason they add some string to the end of the link. Is there a way to catch these errors and m

Re: [web2py] Re: FOREIGN KEY constraint failed

2017-07-05 Thread Santiago Cartasegna
That would do the trick. The backup means thtat before deleteng the files, you backup the folder! 2017-07-05 4:07 GMT-03:00 Dave S : > > > On Tuesday, July 4, 2017 at 11:34:11 PM UTC-7, mostwanted wrote: >> >> Hey Santi, how do i go about doing that, deleting all the tables in the >> database ba

Re: [web2py] Re: web2py 2.15.0b1

2017-07-05 Thread António Ramos
@leonel @windows 7 /Chrome/Firefox/Internet Explorer 2017-07-05 11:37 GMT+01:00 Leonel Câmara : > @stifan but you actually did not put any fund_manager > > @ramos what browser? it's working fine for me in chrome, firefox and edge. > > -- > Resources: > - http://web2py.com > - http://web2py.com/bo

[web2py] Re: web2py 2.15.0b1

2017-07-05 Thread Leonel Câmara
@stifan but you actually did not put any fund_manager @ramos what browser? it's working fine for me in chrome, firefox and edge. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/li

Re: [web2py] Re: web2py 2.15.0b1

2017-07-05 Thread António Ramos
on windows, in admin, the "Manage" Button does not pull dow.. 2017-07-05 9:51 GMT+01:00 黄祥 : > great jobs massimo and everyone, just found some on the latest version > 1. admin page, manage button (dropdown menu) not work (no errors occured) > 2. before insert callback (put it on module) is not

[web2py] Re: web2py 2.15.0b1

2017-07-05 Thread 黄祥
great jobs massimo and everyone, just found some on the latest version 1. admin page, manage button (dropdown menu) not work (no errors occured) 2. before insert callback (put it on module) is not work in latest version, while the same code and same step is work in 2.14.6-stable Traceback (most r

Re: [web2py] Re: vue.js

2017-07-05 Thread Massimo Di Pierro
My strategy is usually to have a some splash image and then after vue = new Vue ({data:{loaded:false}}) set vue.loaded = true; On Monday, 26 June 2017 08:35:45 UTC-5, Anthony wrote: > > Change: > > > > To: > > > > and add the following CSS rule: > > [v-cloak] { > display: none; > } > > T

[web2py] Re: FOREIGN KEY constraint failed

2017-07-05 Thread Dave S
On Tuesday, July 4, 2017 at 11:34:11 PM UTC-7, mostwanted wrote: > > Hey Santi, how do i go about doing that, deleting all the tables in the > database backup folder? > The easiest way is to use a command line, and delete the .table files. In a linux system, and picking the application name f