rizk/rizk/catList.py
2010-10-24 16:17:50 +02:00

21 lines
588 B
Python

from flyovers.models import *
fil = open("catList.txt", "w")
fil.write("Image Categories: \n")
for ic in ImageCategory.objects.all():
fil.write("%d: %s \n" % (ic.id, ic.name,))
fil.write("\n\n")
fil.write("Video Categories: \n")
for vc in VideoCategory.objects.all():
fil.write("%d: %s \n" % (vc.id, vc.name,))
fil.write("\n\n")
fil.write("Audio Categories: \n")
for ac in AudioCategory.objects.all():
fil.write("%d: %s \n" % (ac.id, ac.name,))
fil.write("\n\n")
fil.write("Text Categories: \n")
for tc in TextCategory.objects.all():
fil.write("%d: %s \n" % (tc.id, tc.name,))