[web2py] Re: Problem with python3 / pdf output (encoding): UnicodeDecodeError utf-8 invalid continuation byte

2020-03-02 Thread 'Silvan Marco Fin' via web2py-users
I believe this to be a bug, so I submitted a bug report: https://github.com/web2py/web2py/issues/2289 -- 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) --- Y

[web2py] Re: Problem with python3 / pdf output (encoding): UnicodeDecodeError utf-8 invalid continuation byte

2020-02-28 Thread 'Silvan Marco Fin' via web2py-users
> 2.xlabel = label.decode('utf-8')label = cgi.escape(label) > label = label.encode('ascii', 'xmlcharrefreplace')return label* > > Have a try, hope it helps! > > Best regards > Clemens > > > > On Friday, February 28, 2020 at

[web2py] Problem with python3 / pdf output (encoding): UnicodeDecodeError utf-8 invalid continuation byte

2020-02-28 Thread 'Silvan Marco Fin' via web2py-users
tiatpi.py") def print(): return dict(content='Data with "dschörmän" Umlauts') Pressing the first link I get presented with expected web page. Pressing on the second link I receive an Internal error: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Traceback (most recent

[web2py] locally stored auth information / user_groups

2017-12-01 Thread 'Silvan Marco Fin' via web2py-users
Hi! I've successfully set up ldap auth (against an Active Directory), allowing users to log in with their username/password credential. But I've two issues related to ldap auth remaining: 1. Why do I get no user_groups, if user log's in with scope, eg. 'testuser' vs. 'testu...@example.co

[web2py] Re: _next-Parameter to become an array during login

2017-10-27 Thread 'Silvan Marco Fin' via web2py-users
I think I misunderstood your answer the first time I read it. Am Freitag, 27. Oktober 2017 15:39:33 UTC+2 schrieb Anthony: > > The Auth login method adds _next as a hidden input in the login form, so > _next ends up in both request.get_vars and request.post_vars. Because > request.vars combines

[web2py] Re: _next-Parameter to become an array during login

2017-10-27 Thread 'Silvan Marco Fin' via web2py-users
Reading your answer I realize, that I'm not doing it "the right way" :) I don't know when I added the next-parameter to the return value, but that was clearly a mistake. I'll remove it and try again! Many thanks for your answer, Silvan -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: _next-Parameter to become an array during login

2017-10-27 Thread 'Silvan Marco Fin' via web2py-users
Sry, forgot to mention: Ubuntu Linux Ubuntu 14.04.5 LTS with web2py 2.15.2-stable -- 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 mess

[web2py] _next-Parameter to become an array during login

2017-10-27 Thread 'Silvan Marco Fin' via web2py-users
Hi! I found the _next-parameter to become an array during login and I wonder if this is a feature and if I'm using it "the right way(tm)". Situation is as follows: def user(): import logging logging.warn('default/user _next={}'.format(request.vars._next)) return dict(form=auth(), ne

[web2py] Re: SQLFORM.factory with exception: user is tampering with form's record_id: != None

2016-01-15 Thread Silvan Marco Fin
Hi! Am Donnerstag, 14. Januar 2016 21:04:25 UTC+1 schrieb Anthony: > > Looks like the way you were using it before wasn't supposed to work but > did due to a bug. The purpose of the "record" argument is to enable a > database record to be updated, and so it is expected that the record will > ha

[web2py] SQLFORM.factory with exception: user is tampering with form's record_id: != None

2016-01-14 Thread Silvan Marco Fin
Hi! I just upgraded web2py to 2.13.4, and now some of my SQLFORM.factory-forms stopped working as expected. Upon submission of the data entered, I get an error: user is tampering with form's record_id: != None here an example of code: def get_some_input(): if ('my_data' in session):

Re: [web2py] Display reference fields in read-only form

2015-04-14 Thread Silvan Marco Fin
This is a rather old post, but it still was involved in finding a solution to a similar problem, which I came across: Am Montag, 17. Mai 2010 11:44:20 UTC+2 schrieb Andrew Buchan: > > My question is, how do I get a read-only form to display the > Department_Name instead of the id of the referenc