Hi,
I've been porting plugins to 0.11 for the last couple of days and the
experience has overall been quite pleasant.
Highlights include:
- add_warning(). Very useful!
I'd like to propose that we also include an add_notice() function
before 0.11 is released. This would allow non-warning informational
messages. Refactor add_warning() to use the general purpose
add_notice() function. This would be *very* useful for plugins
wanting to send messages to the user. In its stead, plugins will
write their own bespoke solutions or use add_warning() (which is
what I'm currently doing).
What's the opinion? I'm happy to do the work.
- The new resource API. Very nice, osimons and I have both used it to
create resource managers for blog and tags respectively. The utility
functions are a bit cumbersome, but it's not a huge deal. eg.
anchor = render_resource_link(self.env,
Context.from_request(req, resource), resource)
Maybe this could become:
anchor = render_resource_link(self.env, req, resource)
Also seems a bit weird that these aren't members of ResourceSystem,
as they all instantiate it internally. Doesn't save that much
typing either, and is more characters if you need to do multiple
*_resource_* calls:
ResourceSystem(self.env).render_link(req, resource)
render_resource_link(self.env, req, resource)
Anyway, minor nits really.
- add_ctxtnav(). Very useful, saves me having to write Transformer
filters to add my own.
Alec
--
Evolution: Taking care of those too stupid to take care of themselves.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---