https://bugzilla.wikimedia.org/show_bug.cgi?id=29954

--- Comment #4 from Ian Baker <iba...@wikimedia.org> 2011-07-19 18:01:32 UTC ---
Yeah, invoking page creation hooks without creating a page sounds clever, but
also fragile.  Like, if it works now, there's no guarantee that a future
extension won't break it by using those hooks to invoke DML.

I'd be into the notion of making a generic API that, if existing validation
classes are present, will call them all and aggregate the results.  It would
require new code for each validation extension, but it'd allow us to at least
centralize that, rather than having each new consumer of the data implement all
of them separately.

At the moment, though, I think I'm going to build a TitleBlacklist API.  We can
move that very same code into a more generic API when/if we need to add support
for a second validation extension.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to