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

--- Comment #3 from Aaron Halfaker <[email protected]> ---
(In reply to Brad Jorsch from comment #2)

I understand your concern, but I think it is worthwhile to entertain this bug.  

You're right that you can get namespaces from siteinfo and parse titles with
it, but it's hardly easy and is certainly error prone.  I know because I end up
doing it a lot and I wrote a library to make the work easier. See
https://pythonhosted.org/mediawiki-utilities/lib/title.html#mw-lib-title  For
what it is worth, your "easy" solution wouldn't work.  For example, "Foo:Bar"
would be in the main namespace since "Foo" is not a valid namespace prefix.  In
other words, splitting on colon doesn't work.  Also, you can't just regular
namespace names.  You also need to be able to handle cannonical names and
aliases.  Sure, this information is inside of sitematrix, but how many people
know this?  The people who have spent hours dealing with errors.

Really, the information that is currently stored in params is bad.  It's not
just the pre-pended namespace prefix that is problematic.  The fact that spaces
are underscores in log_title, but spaces are spaces in log_params has probably
cost a substantial amount of developer time handling errors.  

The current proposal is to duplicate badly formatted information with nicely
formatted information.  The only other alternative is to break backwards
compatibility by changing how params are stored to something that is more sane.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to