[web2py] Re: Field decimal default widget

2015-06-04 Thread Pavel Tyurikov
fying a custom widget for each field, > you could monkey patch gluon.sqlhtml.DecimalWidget or > gluon.sqlhtml.SQLFORM.widgets (change the "decimal" value to a custom > class). > > Anthony > > > On Monday, June 1, 2015 at 2:04:23 PM UTC-4, Pavel Tyurikov wrote:

[web2py] Field decimal default widget

2015-06-01 Thread Pavel Tyurikov
Is it possible to make SQLFORM default widget for decimal field like this: Field('quantity', 'decimal(5,2)', label = 'Price') -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: [web2py] PDF view - set printing page size

2015-03-05 Thread Pavel
=True) ... and now it is all working completely. Thanks again. Pavel -- 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 becaus

Re: [web2py] PDF view - set printing page size

2015-02-24 Thread Pavel
Really thanks José, your "labels" app help me with understanding fpdf. My apps is working now. "Little" problem is unicode characters. I tried examples from fpdf wiki pages, but without success. Fortunately all dynamic fields on our ID cars is numbers and characters without accent. Thanks -- R

[web2py] PDF view - set printing page size

2015-02-22 Thread Pavel
Hallo, I am making simple app for registrations and printing ID cards. I have simple pdf view. For instance: {{ import os from gluon.contrib.generics import pdf_from_html html = 'Today is: ' + str(request.now) =pdf_from_html(html) }} How to specify PDF page size for instance like credit card s

[web2py] Re: Problem with URL helper inside component view

2015-01-07 Thread Pavel
Really thanks Anthony. It works now:). -- 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 Google

[web2py] Problem with URL helper inside component view

2015-01-07 Thread Pavel
Hallo, I have problem with component. I am newbe too... I have component view my.load with this content: Events: {{for row in users_and_events(db.registrations.registered_user==auth.user_id).select():}} {{=A(row.s_events.title, _href=URL('show', args=row.s_events.id))}} {{pass}} In view where

[web2py] Re: A helper and delete argument

2014-12-16 Thread Pavel
Thanks:) On Sunday, December 14, 2014 1:40:15 PM UTC+1, Niphlod wrote: > > A(, noconfirm=True) > > On Friday, December 12, 2014 2:09:59 PM UTC+1, Pavel wrote: >> >> I have another question: >> Example from works fine. >> But, how to prevent showing popup

[web2py] Re: A helper and delete argument

2014-12-13 Thread Pavel
I have another question: Example from works fine. But, how to prevent showing popup message with warning about deleting object from page? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Re: SQLFORM - best method for hide fields and set default values

2014-12-10 Thread Pavel
Set ignore_rw=True may be the way to go. Really thanks for your suggestion, now I see it in the book. -- 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

[web2py] SQLFORM - best method for hide fields and set default values

2014-12-09 Thread Pavel Obr
Hi, I'm new in web2py and I'm bulding apps for students registrations on school events. Exists better method for setting ALL default values in fields and hide them ALL in SQLFORM? I do not make it in table definition as I need table for other form. Thanks My definition: def view_event():