Package Camelot :: Package camelot :: Package view :: Package wizard :: Module importwizard :: Class RowDataAdminDecorator |
[frames] | no frames]

# Class RowDataAdminDecorator

source code

Decorator that transforms the Admin of the class to be imported to an Admin of the RowData objects to be used when previewing and validating the data to be imported.

based on the field attributes of the original mode, it will turn the background color pink if the data is invalid for being imported.

Instance Methods
__init__(self, object_admin) decorated | source code
__getattr__(self, attr) | source code
create_validator(self, model) Creates a validator that validates the data to be imported, the validator will check if the background of the cell is pink, and if it is it will mark that object as invalid. | source code
get_fields(self) | source code
flush(self, obj) | source code
get_columns(self) | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables
| invalid_color = `QColor('Pink')`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, object_admin) (Constructor) | source code
decorated Parameters: `object_admin` - the object_admin object that will be Overrides: object.__init__