Re: [web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-04 Thread Brez Yl
I found some solution... it isn't the best one, but it works... The problem is with using pickle on GAE. The best solution would be to overload/rewrite the add_font() function where for GAE, in such a way, that it would write to a datastore instead of a filesystem. Additionaly ValueError: insec

[web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-04 Thread Brez Yl
suggestions). > > good luck! > > cfh > > On Saturday, August 3, 2013 4:40:10 AM UTC-7, Brez Yl wrote: >> >> In FILE: >> /base/data/home/apps/s~myapp/web2py-04.369240954601780983/applications/app3/controllers/default.py >> >> Traceback

[web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-03 Thread Brez Yl
ust 3, 2013 10:24:28 AM UTC+2, Christian Foster Howes wrote: > > can you post the stack trace to help us understand what went wrong? > > On Friday, August 2, 2013 3:19:43 AM UTC-7, Brez Yl wrote: >> >> Hello! >> >> I'm writing an app, which results with pdf fil

[web2py] Problem with function [pyfpdf] add_font() on GAE.

2013-08-02 Thread Brez Yl
Hello! I'm writing an app, which results with pdf file with some text with unicode characters. On local GAE it works good, but after deploy it can't import crash after add_font() (pyfpdf). The code is: # -*- coding: utf-8 -*- def fun1(): from gluon.contrib.pyfpdf import FPDF, HTMLMixin

[web2py] Re: SQLFORM won't accept after passing 'record' parameter

2013-07-28 Thread Brez Yl
You have right! Instead of: f1 = db.tab1.insert(field_gen='something') form = SQLFORM(db.tab1,record=db.tab1(f1),showid=False, \ fields=['field1','field_gen'], \ ) should be: if len(request.post_vars)==0: f1 = db.tab1.insert(field_gen='something') else: f1 = request.p

[web2py] SQLFORM won't accept after passing 'record' parameter

2013-07-28 Thread Brez Yl
Repost . I can't solve problem with SQLFORM update. I need to compute some field (`field_gen`), and be sure, that form filled by an user will be inserted in the same record. This form; form = SQLFORM(db.tab1, \ fields=['field1','fie