1 # vim: set et sts=4 sw=4 encoding=utf-8 :
3 r"Simple module that provides a validated and sequenced Item."
7 from pymin.seqtools import Sequence
8 from pymin.validatedclass import ValidatedClass
10 class Item(ValidatedClass, Sequence):
11 r"""Item() -> Item object
13 Utility class to inherit from to get validation and sequence behaviour.
15 Please see pymin.seqtools and pymin.validatedclass modules help for
20 r"""as_tuple() -> tuple - Return tuple representing the object.
22 The tuple returned preserves the validated fields declaration order.
24 return tuple([getattr(self, n) for n in self.validated_fields])