To get help with using Ming, use the Ming Users mailing list or the TurboGears Users mailing list.
I'm starting to use Ming and i fail to modify MappedClass behaviour: I would like to instantiate my model classes without "auto add" them in the session.
I tried to decorate __ini__ method of my classes but without success (_InitDecorator always encapsulate my decoration). How can i change that ? I know i can make a session.expunge(my_new_instance) but i want the same behaviour for all model class instanciations.
Thank's
Bastien Sevajol.
I tried to decorate __ini__ method of my classes but without success (_InitDecorator always encapsulate my decoration). How can i change that ? I know i can make a session.expunge(my_new_instance) but i want the same behaviour for all model class instanciations.
Hello,
Thank's for reply.
Currently it is not meant to be possible to create an entity that the session is not aware of, but you might be able to achieve that by replacing __init__ **after** the class is declared (instead of overriding it inside the class declaration).
I will follow this way, thank's !
--
You received this message because you are subscribed to a topic in the Google Groups "TurboGears" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/turbogears/FpBFC69a2Vc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.