--
You received this message because you are subscribed to the Google Groups "from mena import python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-mena...@googlegroups.com.
To post to this group, send email to pytho...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Abd Allah Diab, Software Engineer.
Dubai, United Arab Emirates
Mobile: +971 555 44 82 04
mpc...@gmail.com
http://mpcabd.igeex.biz
import inspectfor klass_name, klass in inspect.getmembers(sys.modules[__name__], inspect.isclass):if issubclass(klass, BaseOfModelsIWantArchived) and not klass.Meta.abstract:new_class_name = '%sArchive' % (klass_name,)new_class = type(new_class_name, (klass,), {'__module__': __name__})globals()[new_class_name] = new_class