Skip to content.

Etria Lists

 

[quills-dev] [Collective-checkins] r34827 - Quills/branches/1.5/migrations

quills-dev at lists.etria.com quills-dev at lists.etria.com
Mon Dec 18 12:42:48 UTC 2006


Author: tim2p
Date: Mon Dec 18 12:42:48 2006
New Revision: 34827

Modified:
   Quills/branches/1.5/migrations/quills09to15.py
Log:
Checking-in morphex's migration fix for topics with ids that need normalizing.

Modified: Quills/branches/1.5/migrations/quills09to15.py
==============================================================================
--- Quills/branches/1.5/migrations/quills09to15.py	(original)
+++ Quills/branches/1.5/migrations/quills09to15.py	Mon Dec 18 12:42:48 2006
@@ -203,8 +203,9 @@
                     # No title, so existing images folder as we
                     # otherwise just created the folder *with* a
                     # title.
-                    topic_images.invokeFactory('Image', id=title)
-                    newimg = getattr(topic_images, title)
+                    id_title = normalizeString(title, context=ob)
+                    topic_images.invokeFactory('Image', id=id_title)
+                    newimg = getattr(topic_images, id_title)
                     newimg.setImage(img)
                     print >> self.out, u"Copied topic image."
                 to_be_deleted.append(ob.getId())

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Collective-checkins mailing list
Collective-checkins at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/collective-checkins



More information about the quills-dev mailing list