sprox.sa.widgetselector

widgetselecter Module

this contains the class which allows the ViewConfig to select the appropriate widget for the given field

Classes: Name Description WidgetSelecter Parent Class SAWidgetSelector Selecter Based on sqlalchemy field types DatabaseViewWidgetSelector Database View always selects the same widget TableDefWidgetSelector Table def fields use the same widget

Exceptions: None

Functions: None

Copyright (c) 2007 Christopher Perkins Original Version by Christopher Perkins 2007Database Released under MIT license.

Classes

class sprox.sa.widgetselector.WidgetSelector

Bases: object

select(field)
class sprox.sa.widgetselector.SAWidgetSelector

Bases: sprox._widgetselector.WidgetSelector

default_multiple_select_field_widget_type

alias of PropertyMultipleSelectField

default_name_based_widgets = {}
default_single_select_field_widget_type

alias of PropertySingleSelectField

default_widgets = {<class 'sqlalchemy.types.Boolean'>: <class 'sprox.widgets.widgets.SproxCheckBox'>, <class 'sqlalchemy.types.Integer'>: <class 'tw.forms.fields.TextField'>, <class 'sqlalchemy.types.Binary'>: <class 'tw.forms.fields.FileField'>, <class 'sqlalchemy.types.Time'>: <class 'sprox.widgets.widgets.SproxTimePicker'>, <class 'sqlalchemy.types.String'>: <class 'tw.forms.fields.TextField'>, <class 'sqlalchemy.types.BLOB'>: <class 'tw.forms.fields.FileField'>, <class 'sqlalchemy.types.PickleType'>: <class 'tw.forms.fields.TextField'>, <class 'sqlalchemy.types.Date'>: <class 'sprox.widgets.widgets.SproxCalendarDatePicker'>, <class 'sqlalchemy.types.Numeric'>: <class 'tw.forms.fields.TextField'>, <class 'sqlalchemy.types.DateTime'>: <class 'sprox.widgets.widgets.SproxCalendarDateTimePicker'>}
select(field)

Discuss

blog comments powered by Disqus

Table Of Contents

Previous topic

sprox.sa.provider

Next topic

sprox.sa.validatorselector

This Page