>
> Thank you Anthony ... I renamed the calendar.js  and indeed ... the popup 
> does not show up anymore ( good ! ) ..  however ... the select_datewidget 
> does not work  - what am I doing wrong ???  what am I missing ?? .. Any 
> suggestions ???  how do I make the select_datewidget be used by default now 
> when it comes to choosing dates ??? ...
>

    form = SQLFORM.factory(db.auth_user,
        Field('birth_date','date',default=request.now,widget=
select_datewidget)) 

I just noticed you mentioned that your db.auth_user table already includes 
a birth_date field. In that case, SQLFORM.factory will ignore the 
Field('birth_date', 
...) argument because a table cannot have two fields with the same name. If 
you want to add the widget to the db.auth_user.birth_date field, you can 
either do so when you first define that field, or subsequently via:

db.auth_user.birth_date.widget = select_datewidget

Note, for the widget to work, it may not be necessary to disable the 
standard datepicker -- try it and see what happens.

Anthony

-- 



Reply via email to