Ejemplo n.º 1
0
 def _mc_appender(self, obj, **kwargs):
     func = BaseInstrumentedList.__getattribute__(self, '_sa_appender')
     func(self.__list_type_class__(obj.value), **kwargs)
Ejemplo n.º 2
0
 def _mc_append(self, value):
     func = BaseInstrumentedList.__getattribute__(self, 'append')
     func(self.__list_type_class__(value))
Ejemplo n.º 3
0
 def __getattribute__(self, name):
     if name == '_sa_appender':
         return self._mc_appender
     if name == 'append':
         return self._mc_append
     return BaseInstrumentedList.__getattribute__(self, name)