Hi,

I've created 2 plugins for elixir. One adds tags to models the other
adds votes, I'm also working on a flagging plugin and a deleting
plugin (so that models can be soft-deleted from the database). At the
moment these work via calling a function on the class at import time,
but I noticed that this isn't the way that the versioned plugin works.
What would be the simplest way to convert these plugins to work via
statements? and don't you think an inheritance model would be more
pythonic, ie, something like.

class Article(Taggable, Voteable(User), Versioned, Entity):
    ...

I'm not sure whether I prefer that or not, it may be a little close to
java for my liking.

Thanks,

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en.

Reply via email to