Package Camelot :: Package camelot :: Package types :: Class Rating |
[frames] | no frames]

# Class Rating

source code

The rating field is an integer field that is visualized as a number of stars that can be selected:

    class Movie(Entity):
      title = Field(Unicode(60), required=True)
      rating = Field(camelot.types.Rating())

Nested Classes
| impl A type for `int` integers.

Instance Methods
Inherited from `sqlalchemy.types.TypeDecorator`: `__getattr__`, `__init__`, `bind_processor`, `compare_values`, `copy`, `copy_value`, `dialect_impl`, `get_col_spec`, `get_dbapi_type`, `is_mutable`, `load_dialect_impl`, `process_bind_param`, `process_result_value`, `result_processor` Inherited from `sqlalchemy.types.AbstractType`: `__repr__`, `adapt_operator` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
Inherited from `object`: `__class__`