Re: [web2py] Font size and FPDF Report

2013-12-22 Thread José Luis Redrejo
Hello Alfonso you can not use css with fpdf. It doesn't understand most of it, you have to use html. To change font size, I use, as an example: pdf.write_html('' + tabla.xml().decode('utf-8') + '') where tabla is a html table I've previously built using web2py html helpers (TR, TH,TBODY,TD,TABLE,

[web2py] How to get captcha to display during https session

2013-12-22 Thread weheh
My registration page has changed to https session from http. But now, on IE (haven't tested other browsers yet), the Captcha doesn't display and IE gives the message "Only secure content is displayed." Unless the user clicks the "Show all content" button, they won't be able to register. Anybody

[web2py] Re: Online classes

2013-12-22 Thread Alex Glaros
These videos are great! thanks, Alex Glaros -- 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: Wiki.auth 401 error

2013-12-22 Thread jimbo
Hi Alan, it's 2.8.2 Thanks On Sunday, 22 December 2013 19:54:25 UTC, jimbo wrote: > > This used to work, activate the built in wiki, then register, log in and I > got the wiki available. Now when I try to make a new wiki I get 401 even > though it lets me log on. > > Tried today and I get a 40

[web2py] Re: Wiki.auth 401 error

2013-12-22 Thread Alan Etkin
> This used to work, activate the built in wiki, then register, log in and I > got the wiki available. Now when I try to make a new wiki I get 401 even > though it lets me log on. > With what version? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] Social Login - Twitter logs out plus some other issues- web2py 2.8.2 / Mac OS X 10.9.1

2013-12-22 Thread Luciano Laporta Podazza
Hello, I'm trying to implement Social Login following this example exactly as it shows here: https://groups.google.com/forum/#!topic/web2py/S9ukjWz6qMA Facebook works well, but I'm having some issues: 1. Twitter login works fine, but when it returns from twitter's login page to my web2py app(

[web2py] Problem w/ cpdb.py script

2013-12-22 Thread Scott Hunter
I'm trying to use the cpdb.py script to copy one sqlite db to another. It makes the tables & exports the old data to its own satisfaction, but when it tries to import the data, I get: EXCEPTION: could not make a copy of the database foreign key constraint failed I had run into a similar proble

[web2py] Wiki.auth 401 error

2013-12-22 Thread jimbo
This used to work, activate the built in wiki, then register, log in and I got the wiki available. Now when I try to make a new wiki I get 401 even though it lets me log on. Tried today and I get a 401 error when app accesses /default/index/_create/index Thanks, Jimmy -- Resources: - http:/

[web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-12-22 Thread Ramos
Changing delimiters in angular, keeping web2py Style >From a book i read Delimiters {{ ... }} When you serve your Angular application from a framework like Symfony, the double curly braces {{ }} will conflict with the Twig templating engine, because it also uses the same characters as delimite

[web2py] 401 error using auth.wiki

2013-12-22 Thread jimbo
I was using the built in auth.wiki without problems a few months ago. I could register a user, and get the wiki menu when I logged in. Have upgraded to 2.8.2 and this no longer seems to work. Tried solutions on other threads but still get 401 error when I try to log in, /wiki/default/index/_c

[web2py] ERROR:Rocket.Errors.Thread-4:Unhandled Error when serving connection

2013-12-22 Thread Robert Held
I have a function controllers/default.py test_stream. def test_stream(): '''Test the stream output ''' import cStringIO stringio = cStringIO.StringIO() stringio.write('This is the first line.\n') stringio.write('This is the second line.') stringio.seek(0) return r

[web2py] ERROR:Rocket.Errors.Thread-4:Unhandled Error when serving connection

2013-12-22 Thread Robert Held
Hello, I have a function in controllers/default.py def test_stream(): '''Test the stream output ''' import cStringIO stringio = cStringIO.StringIO() stringio.write('This is the first line.\n') stringio.write('This is the second line.') stringio.seek(0) return resp

[web2py] Re: error using auth.wiki('slug') on service pages

2013-12-22 Thread Janko Strusa
Thank you for your help. I've tried it, and it works for me. Dana četvrtak, 19. prosinca 2013. 20:35:37 UTC+1, korisnik Alan Etkin napisao je: > > El jueves, 19 de diciembre de 2013 07:54:34 UTC-3, Janko Strusa escribió: >> >> Ok, I have reported the issue. >> > > force_render is being ignored in

[web2py] Re: auth.is_logged_in(), @auth.requires_signature() behaving ornery in CORS situation

2013-12-22 Thread Niphlod
the subtle intricacies of a CORS request are hard to grasp. The fact that jQuery prevents them by default is a "sane" standard: you're basically sending out what identifies you (cookies) to another server entirely, and that poses a security threat. Moreover, you need to tune "manually" your serv

Re: [web2py] server slow down when face multiple requests

2013-12-22 Thread Paolo Valleri
what web2py version are you using? have you already had a look here: http://web2py.com/books/default/chapter/29/13/deployment-recipes#Efficiency-and-scalability ? Paolo On Sunday, December 22, 2013 1:48:56 AM UTC+1, viniciusban wrote: > > If you're using sqlite or migrations are enabled, this