[quills-dev] [Collective-checkins] r33906 - Quills/tags/1.5-RC3/migrations
quills-dev at lists.etria.com quills-dev at lists.etria.comSun Nov 19 18:32:07 UTC 2006
- Previous message: [quills-dev] [Collective-checkins] r33899 - Quills/trunk/migrations
- Next message: [quills-dev] Problems upgrading from Quills 0.9 to 1.5 RC 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: morphex
Date: Sun Nov 19 18:32:07 2006
New Revision: 33906
Modified:
Quills/tags/1.5-RC3/migrations/quills09to15.py
Log:
Using normalizeString so that upgrades work.
Modified: Quills/tags/1.5-RC3/migrations/quills09to15.py
==============================================================================
--- Quills/tags/1.5-RC3/migrations/quills09to15.py (original)
+++ Quills/tags/1.5-RC3/migrations/quills09to15.py Sun Nov 19 18:32:07 2006
@@ -35,6 +35,8 @@
# Standard lib imports
from StringIO import StringIO
+# ID generator
+from Products.CMFPlone.utils import normalizeString
class Migration(object):
"""Migrate from 0.9 to 1.5
@@ -197,8 +199,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
- Previous message: [quills-dev] [Collective-checkins] r33899 - Quills/trunk/migrations
- Next message: [quills-dev] Problems upgrading from Quills 0.9 to 1.5 RC 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list