Transmogrifier is a migration framework written by Martijn Pieters, Jarn, that makes migrating to Plone fun again. This talk gives an introduction to Transmogrifier, an explanation of how it works and some hints for usage.
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Transmogrifier: Migrating to Plone with less pain
1. Transmogrifier
Lennart Regebro
Plone Conference 2009, Budapest
2. collective.transmogrifier
Created by
Martijn Pieters, Jarn
in 2008
Released in
version 1.0
August 2009
3. collective.transmogrifier
Import/migration
framework
Both from Plone 2
and from other
websites or data
4. Super-simple architecture
You set up a
pipeline of sections
Each section send
items to the next
section.
Sections do
something with the
items (or not)
6. A simple example
1. A section that reads a CSV file with a list of
events and creates items based on that data
2. A section that will generate some plone-specific
data for each item, like path and type.
3. A section that creates the Plone event
4. A section that updates the Archetypes fields
5. A section that publishes the event
12. What is a generator
def my_generator():
i=1
while i < 1000:
yield i
i=i*2
for x in my_generator():
print x
13. Never ending story
def my_generator():
i=1
while True:
yield i
i=i*2
for x in my_generator():
print x
14. EventSource
class EventSource(object):
def __iter__(self):
for event is csv.DictReader(open(self.options['csvfile']))
yield event
for item in self.previous:
yield item
15. EventSource
class EventSource(object):
def __iter__(self):
for event is csv.DictReader(open(self.options['csvfile']))
yield event
for item in self.previous:
yield item
16. EventSource
class EventSource(object):
def __iter__(self):
for event is csv.DictReader(open(self.options['csvfile']))
yield event
for item in self.previous:
yield item