import datetime

from enthought.traits.traits import Property
from enthought.traits.ui.editor_factory import EditorFactory
from enthought.traits.ui.toolkit import toolkit_object   


#-- DateEditor definition ----------------------------------------------------- 
class DateEditor ( EditorFactory ):
    """
    Editor factory for date/time editors. 
    """

    #---------------------------------------------------------------------------
    #  Trait definitions:  
    #---------------------------------------------------------------------------
    # TODO: Placeholder for date-editor-specific traits.
    pass
#-- end DateEditor definition ------------------------------------------------- 


#-- eof ----------------------------------------------------------------------- 

import datetime

from enthought.traits.traits import Property
from enthought.traits.trait_types import Bool
from enthought.traits.ui.editor_factory import EditorFactory
from enthought.traits.ui.toolkit import toolkit_object   


#-- DateEditor definition ----------------------------------------------------- 
class DateEditor ( EditorFactory ):
    """
    Editor factory for date/time editors. 
    """

    #---------------------------------------------------------------------------
    #  Trait definitions:  
    #---------------------------------------------------------------------------
    
    # Custom date editors can operate on a list of Dates, or just one.
    multi_select = Bool(True)
#-- end DateEditor definition ------------------------------------------------- 


#-- eof ----------------------------------------------------------------------- 

Add multi_select in the DateEditor params for Custom editors.
Add multi_select in the DateEditor params for Custom editors.

  import datetime
  
  from enthought.traits.traits import Property
+ from enthought.traits.trait_types import Bool
  from enthought.traits.ui.editor_factory import EditorFactory
  from enthought.traits.ui.toolkit import toolkit_object   
  
  
  #-- DateEditor definition ----------------------------------------------------- 
  class DateEditor ( EditorFactory ):
      """
      Editor factory for date/time editors. 
      """
  
      #---------------------------------------------------------------------------
      #  Trait definitions:  
      #---------------------------------------------------------------------------
-     # TODO: Placeholder for date-editor-specific traits.
-     pass
+     
+     # Custom date editors can operate on a list of Dates, or just one.
+     multi_select = Bool(True)
  #-- end DateEditor definition ------------------------------------------------- 
  
  
  #-- eof ----------------------------------------------------------------------- 
  
Add multi_select in the DateEditor params for Custom editors.
## Code Before:
import datetime

from enthought.traits.traits import Property
from enthought.traits.ui.editor_factory import EditorFactory
from enthought.traits.ui.toolkit import toolkit_object   


#-- DateEditor definition ----------------------------------------------------- 
class DateEditor ( EditorFactory ):
    """
    Editor factory for date/time editors. 
    """

    #---------------------------------------------------------------------------
    #  Trait definitions:  
    #---------------------------------------------------------------------------
    # TODO: Placeholder for date-editor-specific traits.
    pass
#-- end DateEditor definition ------------------------------------------------- 


#-- eof ----------------------------------------------------------------------- 

## Instruction:
Add multi_select in the DateEditor params for Custom editors.
## Code After:
import datetime

from enthought.traits.traits import Property
from enthought.traits.trait_types import Bool
from enthought.traits.ui.editor_factory import EditorFactory
from enthought.traits.ui.toolkit import toolkit_object   


#-- DateEditor definition ----------------------------------------------------- 
class DateEditor ( EditorFactory ):
    """
    Editor factory for date/time editors. 
    """

    #---------------------------------------------------------------------------
    #  Trait definitions:  
    #---------------------------------------------------------------------------
    
    # Custom date editors can operate on a list of Dates, or just one.
    multi_select = Bool(True)
#-- end DateEditor definition ------------------------------------------------- 


#-- eof ----------------------------------------------------------------------- 
