how to generate a sildeshow in swf format from python/django?
basically i have a list of images and text and I would like to use python to generate a swf file.
I checked seems using MING or PyAMF is the direction to go but I dont quite understand how it should work.
thanks.
Ok, so to create an swf slideshow you need to use Adobe Flash, a suitable tutorial: http://www.republicofcode.com/tutorials/flash/slideshow/.
To output the xml file from django, use a view that outputs xml:
views.py
This would respond to a url like
/slideshow/10/
and retrieves theSlideShow
object with id 10, this is then passed to an xml template to be rendered:Template xml_template.xml
This will output the xml format as required for the tutorial above. It extracts the data stored in the objects to create the xml file.
models.py:
These models can be created in the admin interface of django and allow the parameters of the slideshow to be specified. An arbitrary number of
SlideShowImage
objects can be created and connected to a singleSlideShow
object.If you haven't used django before the django tutorial will get you far enough to understand the above.
Is this something like what you want?