whrandom
plone import of "whrandom" is unauthorized
以前の写真アルバムを開くとplone import of "whrandom" is unauthorizedのエラーが表示されます。これは、Plone2.1.2rc2のATContentTypesが、atct_album_view.pt中に未だwhrandomを使用しているためです。
下記より修正します。
/portal_skins/ATContentTypes/atct_album_view をカスタマイズし、whrandom を random に書き換えます。
+++
ATContentTypes/branches/release-1_0-branch/skins/ATContentTypes/
atct_album_view.pt Wed Jan 4 19:34:19 2006
<at> <at> -54,7 +54,7 <at> <at>
<div class="photoAlbumEntry photoAlbumFolder"
tal:define="image_brains_in_album
python:album.atctListAlbum(subimages=1)['subimages'];
number_of_images
python:len(image_brains_in_album);
修正前- random python:modules['whrandom'];
修正後+ random python:modules['random'];
random_image python:number_of_images and
random.choice(image_brains_in_album).getObject() or None">
<a tal:attributes="href album/getURL;
title album/Description">



