From: Asheesh L. <as...@as...> - 2007-02-23 22:13:54
|
On Fri, 23 Feb 2007, Victor Stone wrote: > for anon upload I suggest 'anonymous everything' -- basically create > an account for anonymous (I think Asheesh might have already done this > http://freemusic.freeculture.org/media/people/anonymous) When Oliver enabled anonymous reviews, and I added the anonymous review at http://freemusic.freeculture.org/media/reviews/admin/8#2 . At http://freemusic.freeculture.org/media/files/admin/8 , cc-extras/cc-reviews.inc line 338 correctly finds topic_text_plain and displays it in the list at the bottom. But when I go to http://freemusic.freeculture.org/media/reviews/admin , I get this message for the anonymous reviews and the non-anonymous reviews: "nameerror: message="(ArrayResolver) Context does not contains key 'topic_text_p..." I found that applying this patch makes it work right: Index: topics.xml =================================================================== --- topics.xml (revision 5415) +++ topics.xml (working copy) @@ -101,7 +101,7 @@ </td> <td class="cc_topic_thumb"> <tal:block condition="not: topic/topic_search_result_info" > - <tal:block define="text php: CC_strchop('${topic/topic_text_plain}',80);" /> + <tal:block define="text php: CC_strchop('${topic/topic_text}',80);" /> <a href="${topic/topic_permalink}"><span tal:content="text" /></a> </tal:block> <tal:block condition="topic/topic_search_result_info" > NOTE that this patch is *not* enabled on the freemusic.freeculture.org site so that I can show you the behavior. It sounds to me like there is something broken unrelated to our changes at http://freemusic.freeculture.org/media/reviews/admin . I did just "svn up" and got this message at the end: Updated to revision 5415. I still get the problem at http://freemusic.freeculture.org/media/reviews/admin . Let me know what you make of it. Thanks! -- Asheesh. P.S. I changed the CCs so it's just me, Oliver, you, and the cctools-cchost archives. Hope that's okay. I doubt that Elizabeth or SJ will mind being taken out of the loop on purely technical issues. -- Q: How many Marxists does it take to screw in a light bulb? A: None: The light bulb contains the seeds of its own revolution. |