-
Notifications
You must be signed in to change notification settings - Fork 11
Description
There are some wiki images stored as a file which are not represented by a wlimage object in the database. Although those files have no wlimage object they could be linked (shown) in a wiki article and some are used this way. Here is a list of those files:
/wlimages/terrain_split_4.jpg
Used in article: HelpTerrains
/wlimages/single_player_select_AI_800_600.png
Used in article: GameHelpSinglePlayer
/wlimages/barbarians_icon.png
Used in article: All - Wares, Foresters House, Headquarters, Hunters House, Lumberjacks House, Port, Romans - Buildings, Romans - Immovables, Romans - Workers, Warehouse, Well
/wlimages/pbor_pcoc_beech.png
Used in article: TreesAndTerrains
/wlimages/Intro_800_600.png
Used in article: Intro
/wlimages/WL_barbarian_tribe_1024x768middle2.png
Used in article: The Barbarians Tribe
/wlimages/WL_empire_tribe_HQ_1024x768small.png
Used in article: Artwork
/wlimages/frisians_icon.png
Used in article: All - Wares, Foresters House, Hunters House, Lumberjacks House, Romans - Buildings, Romans - Immovables, Romans - Workers
/wlimages/WL_atlantean_tribe_1280x800middle.png
Used in article: The Atlanteans Tribe
/wlimages/Editor-tutorial-new-map-dialog-de.png
Used in article: EditorTutorialNeueKarte
/wlimages/Editor-tutorial-Remaining-stuff-mapoptionsmenu.jpg
Used in article: EditorTutorialRemainingStuff
/wlimages/metaserver_login.png
Used in article: GameHelpMultiplayer
It is currently unknown how this could happen, but probably this happens if a wlimage object get deleted and the file still remains on the server.
In general i think such files should be represented in the database as a wlimage object. For files which are used just in one article this can be done automatically with the pretty new management command cleanup_images
in the future. For files which are used in more than one article (like wlimages/frisians_icon.png
) this can't be done automatically.
There should also be a new view which list all wlimage objects with information to which article it is linked (the content_object
) and in which article(s) it is shown. Maybe with some administrative buttons for deletion.