sprox.mg.widgetselector

widgetselecter Module

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

Classes: Name Description MingWidgetSelecter Aid for the selection of a widget to correspond to a Ming Document field

Exceptions: None

Functions: None

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

Mongo Contributions by Jorge Vargas

Classes

class sprox.mg.widgetselector.MingWidgetSelector

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 'ming.schema.String'>: <class 'tw.forms.fields.TextField'>, <class 'ming.schema.Float'>: <class 'tw.forms.fields.TextField'>, <class 'ming.schema.Binary'>: <class 'tw.forms.fields.FileField'>, <class 'ming.schema.ObjectId'>: <class 'tw.forms.fields.TextField'>, <class 'ming.schema.Value'>: <class 'tw.forms.fields.Label'>, <class 'ming.schema.Int'>: <class 'tw.forms.fields.TextField'>, <class 'ming.schema.Bool'>: <class 'sprox.widgets.widgets.SproxCheckBox'>, <class 'ming.schema.DateTime'>: <class 'sprox.widgets.widgets.SproxCalendarDateTimePicker'>}
select(field)

Discuss

blog comments powered by Disqus

Table Of Contents

Previous topic

sprox.mg.provider

Next topic

sprox.mg.validatorselector

This Page