[Setup] Migrating from ATPhoto to Image
Gauthier Bastien
gauthier at imio.be
Wed Sep 19 07:11:23 UTC 2012
Hi, just for your informations,
using quintagroup.transmogrifier, you will be able to export the entire
site structure of your Plone 2.5.x site to a hierarchy of folders/xml
files containing the data. You have then performed the "export" step.
Then, when importing this into the new Plone 4 site, you will perform
the "import" step and then during import, some transform can be applied
to managed xml files (using xslt), so, a XML file defining a ATPhoto
will be transformed during import and for example, the type will change
from ATPhoto to ATImage so created elements are ATImages, there can be
attribute names/values changes, ... to the imported XML files...
Have a nice day,
Gauthier Bastien
Support IMIO - CommunesPlone
rue de la Vieille Sambre 34
5190 Mornimont
Tél: +32(0)71 780979
Disclaimer
Les informations contenues dans ce courrier électronique (annexes
incluses) sont confidentielles et réservées à l'usage exclusif des
destinataires repris ci-dessus. Si vous n'êtes pas le destinataire,
soyez informé par la présente que vous ne pouvez ni divulguer, ni
reproduire, ni faire usage de ces informations pour vous-même ou toute
tierce personne. Si vous avez reçu ce courrier électronique par erreur,
vous êtes prié d'en avertir immédiatement l'expéditeur et d'effacer le
message e-mail de votre ordinateur.
De informatie in deze e-mail, bijlagen inbegrepen, is vertrouwelijk en
is als dus danig voorbehouden voor exclusief gebruik door de hierboven
vermelde bestemmeling(en). Indien u niet de bestemmeling bent, willen
wij u erop wijzen dat u deze informatie niet mag aanwenden voor eigen
gebruik noch verspreiden aan derden. Indien u deze e-mail per ongeluk
hebt ontvangen, gelieve de afzender onmiddellijk te verwittigen en deze
e-mail van uw computer te verwijderen.
The information contained in this e-mail and the annexed documents is
confidential and exclusively available to the here above mentioned
addressee(s).Should you not be the addressee, please be informed that
you may neither disclose nor reproduce this e-mail, nor may the
information contained in this e-mail and its eventually annexed
documents be used by yourself or by a third party. If you erroneously
received this e-mail, could you kindly and immediately inform the
addresser and delete the message on your computer.
Le 19/09/12 00:37, Florian Sesser a écrit :
> Thank you Gauthier for your help!
>
> However, I'm not able to understand your transmogrifier very well. The
> Plone code is so full of indirection, it's melting my brain.
>
> What I've done now:
>
> Using hints from [1]
>
> * I first found out that I'm likely not able to convert between
> types without having both all corresponding Products installed (that
> is, I can do the migration only in the old version of the site, using
> a special "upgrade" instance I created for the purpose). Is that
> correct? It may be obvious, but then again I'm pretty much a Plone
> newbie (mostly did theming so far and light customizations)
>
> * Then, to my amazement, I found that almost all of our images are
> indeed Images, not ATPhotos:
> >>> len(app.gemeinde_1.portal_catalog(portal_type="ATPhoto"))
> 12
>
> * Twelve. I'm going to do these by hand, as I suppose that's faster
> then getting Products.contentmigration up and running in ancient Plone
> 2.1.
>
> Thanks again and sorry for the fuss!
>
>
> Florian
>
>
> [1]
> http://stackoverflow.com/questions/12150401/plones-portal-catalogportal-type-file-does-not-returns-all-the-objects-i-se
>
>
> On 2012-09-18 14:11, Gauthier Bastien wrote:
>> Hi,
>>
>> we wrote a transmogrifier blueprint for this as we where using
>> ATPhoto with Plone 2.5.x an no more after...
>>
>> See it here :
>>
>> http://svn.communesplone.org/svn/communesplone/communesplone.transmogrifier.ATPhoto2ATImage/
>>
>>
>> Use it with quintagroup.transmogrifier. You should export your
>> content (ATPhotos) from your Plone 2.5x site and import them into the
>> Plone4 one...
>>
>> You could even if possible export the entire content from 2.5 and
>> recreate it into your Plone4 site...
>>
>> Have a nice day,
>>
>>
>>
>> Gauthier Bastien
>> Support IMIO - CommunesPlone
>> rue de la Vieille Sambre 34
>> 5190 Mornimont
>> Tél: +32(0)71 780979
>>
>> Disclaimer
>>
>> Les informations contenues dans ce courrier électronique (annexes
>> incluses) sont confidentielles et réservées à l'usage exclusif des
>> destinataires repris ci-dessus. Si vous n'êtes pas le destinataire,
>> soyez informé par la présente que vous ne pouvez ni divulguer, ni
>> reproduire, ni faire usage de ces informations pour vous-même ou toute
>> tierce personne. Si vous avez reçu ce courrier électronique par
>> erreur, vous êtes prié d'en avertir immédiatement l'expéditeur et
>> d'effacer le message e-mail de votre ordinateur.
>>
>> De informatie in deze e-mail, bijlagen inbegrepen, is vertrouwelijk
>> en is als dus danig voorbehouden voor exclusief gebruik door de
>> hierboven vermelde bestemmeling(en). Indien u niet de bestemmeling
>> bent, willen wij u erop wijzen dat u deze informatie niet mag
>> aanwenden voor eigen gebruik noch verspreiden aan derden. Indien u
>> deze e-mail per ongeluk hebt ontvangen, gelieve de afzender
>> onmiddellijk te verwittigen en deze e-mail van uw computer te
>> verwijderen.
>>
>> The information contained in this e-mail and the annexed documents is
>> confidential and exclusively available to the here above mentioned
>> addressee(s).Should you not be the addressee, please be informed that
>> you may neither disclose nor reproduce this e-mail, nor may the
>> information contained in this e-mail and its eventually annexed
>> documents be used by yourself or by a third party. If you erroneously
>> received this e-mail, could you kindly and immediately inform the
>> addresser and delete the message on your computer.
>>
>> Le 18/09/12 13:58, Florian Sesser a écrit :
>>> Hello all!
>>>
>>> I am doing an upgrade from 2.1 to 4.2. I have a bunch of of
>>> ATPhotos, a content type now deprecated. I would like to migrate all
>>> content of this type to usual "Image"s while retaining IDs so all
>>> pages using ATPhotos still work.
>>>
>>> I cannot get my head around the Products.contentmigration tool.
>>> Combining what I understood from
>>> http://plone.org/documentation/kb/richdocument/migrations and
>>> http://stackoverflow.com/questions/7255932/migrating-from-now-obsolete-custom-atimage-content-type,
>>> I came to this: http://pastie.org/4746670. I defined it as an
>>> External Method in my Plone site root, but calling it from my
>>> browser just returns an HTTP 204 "No Content" as well as only one
>>> blank line output stdout/stderr when running Plone with "plonectl fg".
>>>
>>> When I have incorrect syntax in my file, I at least receive an error
>>> -- but ATM, I get nothing. It seems to me like the walker does not
>>> find any items or so? I'm stuck.
>>>
>>> Thanks for reading,
>>>
>>> Florian
>>>
>>> _______________________________________________
>>> Setup mailing list
>>> Setup at lists.plone.org
>>> https://lists.plone.org/mailman/listinfo/plone-setup
> _______________________________________________
> Setup mailing list
> Setup at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-setup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-setup/attachments/20120919/a9c55f6a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: images1
Type: image/jpeg
Size: 2611 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-setup/attachments/20120919/a9c55f6a/attachment-0001.jpe>
More information about the Setup
mailing list