Hi All,

Does anyone know how a plugin could gracefully override the
conventional wiki "last edit wins" behavior?  Or am I going to have to
patch trac to get this?

We're working on a plugin that, among other things, uses weighted
voting to decide which edit is actually the default rendered version.
We might also want the elected version to be the one that's brought up
in the edit page, and so on.  Our reasons for doing this are many, and
I'm skipping a lot of detail, but one beneficial side-effect is
vandalism prevention.

I can see how I might subclass WikiModule, have a new process_request
fix up the version number and then call WikiModule.process_request
directly, but that seems to violate the whole intent of the component
architecture, and I don't know if it's "right".  

The plugin development documentation and tutorials are excellent as
far as they go, they've helped a lot, and I like what I see in the
component architecture -- very nice.  I have to think I'm still
missing something critical though, because I can't see how to do this
without completely overriding and subclassing the existing wiki
component.  Searching back through the archives, and grepping the
trac-hacks.org SVN tree, I so far haven't been able to spot any
examples of other plugins that are doing anything like version number
munging.  If anyone can provide pointers, I'd be forever in your debt.

Steve
-- 
Stephen G. Traugott  (KG6HDQ)
UNIX/Linux Infrastructure Architect, TerraLuna LLC
[EMAIL PROTECTED] 
http://www.stevegt.com -- http://Infrastructures.Org
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to