sprox.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-10 Christopher Perkins Original Version by Christopher Perkins 2007Database Released under MIT license.

Classes

class sprox.widgetselector.WidgetSelector

Bases: object

select(field)
class sprox.widgetselector.SAWidgetSelector(*args, **kw)

Bases: sprox.sa.widgetselector.SAWidgetSelector

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.String'>: <class 'tw.forms.fields.TextField'>, <class 'sqlalchemy.types.PickleType'>: <class 'tw.forms.fields.TextField'>, <class 'sqlalchemy.types.Boolean'>: <class 'sprox.widgets.widgets.SproxCheckBox'>, <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'>, <class 'sqlalchemy.types.BLOB'>: <class 'tw.forms.fields.FileField'>, <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'>}
select(field)
class sprox.widgetselector.EntitiesViewWidgetSelector

Bases: sprox._widgetselector.WidgetSelector

select(field)
class sprox.widgetselector.EntityDefWidgetSelector

Bases: sprox._widgetselector.WidgetSelector

select(field)

Discuss

blog comments powered by Disqus

Table Of Contents

Previous topic

sprox.recordviewbase

Next topic

sprox.validatorselector

This Page