Package orm2 :: Package ui :: Package xist :: Module widgets :: Class datetime_input
[hide private]
[frames] | no frames]

Class datetime_input

source code

 widget --+            
          |            
xist_widget --+        
              |        
         _input --+    
                  |    
               text --+
                      |
                     datetime_input

Nested Classes [hide private]
  actual_widget

Instance Methods [hide private]
  __init__(self, format, target_cls=None, empty_to_none=False, **kw)
  __call__(self, dbobj, **kw)

Inherited from xist_widget: belongs_to

Inherited from widget: __cmp__, __init_dbproperty__


Method Details [hide private]

__init__(self, format, target_cls=None, empty_to_none=False, **kw)
(Constructor)

source code 
Parameters:
  • format - strftime()/strptime() compatible format string (see http://docs.python.org/lib/module-time.html
  • farget_class - Either datetime.date or datetime.datetime. Any compatible class (providing a fromtimestamp() constructor with the same semantics) will also work. If set to None (the default) the class of the dbproperty will determin the class used.
Overrides: text.__init__

__call__(self, dbobj, **kw)
(Call operator)

source code 
None
Overrides: text.__call__