Update:
this is a session problem. Adding session.forget() at the beginning of a
controller function using my widget solves the issue. I have to find
exactly why.
Le mercredi 12 mars 2014 à 14:23 -0400, Richard Vézina a écrit :
> Thomas,
>
>
> What this widget does exactly, I don't have time to
Thomas,
What this widget does exactly, I don't have time to read all this... Could
you point me on were in the code you think the problem is... Maybe
screenshot of your widget can help me figure out what it does and how...
Richard
On Wed, Mar 12, 2014 at 10:32 AM, Thomas Bellembois <
thomas.be
In the attachment.
Thomas
Le mercredi 12 mars 2014 à 10:26 -0400, Richard Vézina a écrit :
> Hmmm...
>
>
> Code please!
>
>
> Richard
>
>
> On Wed, Mar 12, 2014 at 9:56 AM, Thomas Bellembois
> wrote:
> Yes, I tried but it did not work either...
>
> There is somethi
Hmmm...
Code please!
Richard
On Wed, Mar 12, 2014 at 9:56 AM, Thomas Bellembois <
thomas.bellemb...@gmail.com> wrote:
> Yes, I tried but it did not work either...
>
> There is something weird, actually my widget receives an integer for
> value (actually a table reference).
> I generate a check
Yes, I tried but it did not work either...
There is something weird, actually my widget receives an integer for
value (actually a table reference).
I generate a checkbox and then a
span with the database entry corresponding to the value such as:
row = db(db.table.id == value).select().first()
I u
Ok... But did you try my suggestion? The way to set the default value is
the same, you just have to figure how to set it in the class, it just less
obvious some time.
Richard
On Wed, Mar 12, 2014 at 8:31 AM, Thomas Bellembois <
thomas.bellemb...@gmail.com> wrote:
> Actually I need to initialize
Actually I need to initialize many parameters so I took model on the
AutocompleteWidget widget.
Le mardi 11 mars 2014 à 12:54 -0400, Richard Vézina a écrit :
> Do you really need a class?
>
>
> You can create widget as a simple function as shown in the book. I say
> that because it easier to s
Do you really need a class?
You can create widget as a simple function as shown in the book. I say that
because it easier to show you how to set default value with a simple
function (less code)...
def mysupercustomwidget(field, value, ...)
...
if value is not None and value != '':
Dear web2py community,
I have build my own widget like:
class CHIMITHEQUE_MULTIPLE_widget(object):
def __init__(self, ..., **attributes):
...
def __call__(self, field, value):
...
# build the widget and populate with the value parameter if not
Null
...
9 matches
Mail list logo