durusmail: quixote-users: DateSelectWidget
DateSelectWidget
2002-07-18
2002-07-18
DateSelectWidget
Greg Ward
2002-07-18
On 18 July 2002, Samir Patel said:
>   I have downloaded your DateSelectWidget and anxious to use it. I tried to
> install it and obviously I am not doing right thing.

What precisely did you do, and how precisely did it not work?

It should be enough to put date_widget.ptl somewhere in Python's path
and

  from date_widget import DateSelectWidget

or just

  from quixote.form import Form
  import date_widget
  [...]
  class MyForm (Form)
      def __init__ (self):
          Form.__init__(self)
          [...]
          self.add_widget("date_select", "date", ...)
          [...]

Of course, be sure to read the caveats in date_widget.ptl about why you
should not use this widget too often on the same page.

        Greg


reply