Karl Guertin wrote:
> On 11/9/06, Tim Lesher <[EMAIL PROTECTED]> wrote:
> > Any chance that this "end result" will include something like Rails' "Acts"?
>
> Got an explanation for this? My google-fu is lacking.
I'm guessing it is a reference to the various "acts_as_*" plugins that
make it relatively easy to add row metadata (tags, voting, commenting,
etc) to your model.
In looking at it, TG could go one step further with a
widgets-and-decorator combo. The idea would be that any acts_as_*
plugin comes with some widgets and a decorator that allow the following
to make the change from non-voteable to voteable:
Original:
@expose(template)
def entries(self):
return dict(entries=model.entries.select(), entry_widget=mywidget)
@acts_as_voteable(mywidget, voteable.vote_widget)
@expose(template)
def entries(self):
...
Same for commenting, tagging, and anything else you might want to do.
I've had this idea sitting in the back of my head for a while, it
probably needs some fleshing out before it will work, but I think the
"you can make stuff voteable/taggable/etc with just a decorator and
some widgets" idea is a solid one.
-Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---