Closed
Bug 638261
Opened 15 years ago
Closed 15 years ago
Move non spam images to Kitsune from Tiki
Categories
(support.mozillamessaging.com Graveyard :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rolandtanglao, Assigned: gozer)
References
Details
Attachments
(2 files, 1 obsolete file)
Please move the images in the attached text file from Tiki to Kitsune with the exact same name. Using the same name will allow easier porting of KB articles to Kitsune.
The actual images corresponding to the filenames in the attached text file can be found in :gozer's dropbox folder
| Reporter | ||
Updated•15 years ago
|
Status: NEW → ASSIGNED
Comment 1•15 years ago
|
||
This is 100% doable btw, they wrote a django management command to do it for the moco migration, but naturally they didn't leave it in the codebase, so I'm going to have to reconstruct it myself.
That's okay, but not as plug and play as I was hoping(like everything else...)
| Reporter | ||
Comment 2•15 years ago
|
||
haha And(In reply to comment #1)
> This is 100% doable btw, they wrote a django management command to do it for
> the moco migration, but naturally they didn't leave it in the codebase, so I'm
> going to have to reconstruct it myself.
>
> That's okay, but not as plug and play as I was hoping(like everything else...)
lol, the SuMoDev folks are awesome (thanks paulc and jsocol !!!) and let me know the path of the migration stuff which I forked and hacked for syntax conversion hack:
https://github.com/rtanglao/kitsune/blob/SuMoMoToKitsuneConversionHacks/apps/sumo/convertSuMoMoKBfiles.py
Based on that experience, I believe the image migration you are looking for :-) is here:
https://github.com/rtanglao/kitsune/blob/SuMoMoToKitsuneConversionHacks/apps/gallery/management/commands/migrate_images.py
But then again, these may not be the droids you are looking for :-)
Comment 3•15 years ago
|
||
This script should be untar'd under kitsune/apps/gallery -- I tar'd it up so you'll have the correct directory structure already made.
usage is `python manage.py migrate_images --old='/directory/where/old/images/are'`
You can also set the directory in kitsune/apps/gallery/manage/commands/manage.py itself, in OLD_PATH at the top.
You'll also need to set ANONYMOUS_USER_NAME in manage.py to a user that exists, I have it set to Sancus which should exist on staging already so you shouldn't really need to change this. If you'd rather make some special user, that's fine too. Doesn't really matter, images just need some uploader associated with them.
Comment 4•15 years ago
|
||
Attachment #518798 -
Attachment is obsolete: true
Updated•15 years ago
|
Assignee: sancus → gozer
| Assignee | ||
Updated•15 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 5•15 years ago
|
||
Done, with tweaks.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•