for image in context.objectValues('Image'): print image.getId() container.zwo_modules.album_photo.thumbnail(image.getId(),'thumbnails',size=140) if not image.hasProperty('affiche_titre'): image.manage_addProperty('affiche_titre','1','string') if not image.hasProperty('affiche_description'): image.manage_addProperty('affiche_description','1','string') if not image.hasProperty('description'): image.manage_addProperty('description','','lines') image.manage_addProperty('thumbnail',1,'int') #image.manage_changeProperties(thumbnail=1) #context.zwo_modules.album_photo_new.thumbscript(container[image.getId()],image.getId()) return printed
|
|