Currently, the extension maps template NS/title with the ID. So even if it
was moved, by calling newFromId() on the that ID, we still get the sane
template. Images have no Ids, so matching name to timestamp is the best I
can do.
Maybe you can test this extension sometime btw :)
-Aaron Schulz
From: Brion Vibber <brion(a)wikimedia.org>
Reply-To: Wikimedia developers <wikitech-l(a)lists.wikimedia.org>
To: Wikimedia developers <wikitech-l(a)lists.wikimedia.org>
Subject: Re: [Wikitech-l] On renaming images
Date: Mon, 11 Jun 2007 16:07:04 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Voice of All wrote:
One issue is that it should be done in a way such
that given a name and
timestamp, you can still get the correct image version, rather than have
to
worry if some other image was moved over the
desired one.
Currently, that is the only way you can make "stable versions" of pages
with
images.
The identical issues exists for templates, which are also referenced by
name and may change over time; how are you handling this in the current
FlaggedRevs code?
My previous work on a similar snapshotting system stored the revision
ids for each transcluded page by name with the snapshot record, using
the stored lookup table when re-reading templates for rendering of the
snapshot. Equivalent or similar records could be stored for images,
though I didn't implement that at the time I was playing with it.
- -- brion vibber (brion @
wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFGbatowRnhpk1wk44RAsUsAJ4810aF+vnasV3xOCyt+UVw+lq7eQCdHa6M
wPgn2/0u9x2/4IX7jG8Szgk=
=Pg5s
-----END PGP SIGNATURE-----
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l
_________________________________________________________________
Play games, earn tickets, get cool prizes. Play nowit's FREE!