<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Does this problem only occure with <tt>message/ID</tt> ? Or also with <tt>message/Message
</tt>or <tt>message/SenderId</tt> ?<br>
<br>
Which version of zope are you using?<br>
<br>
<br>
Kind regards,<br>
<br>
<br>
Martijn. <br>
<blockquote cite="mid:4798B548.7060100@ze.tum.de" type="cite">
  <pre wrap="">Hi all,

I have a rather strange Problem.

I have a PersistentList containing PersistentMapping objects.

[{'Status': 'Read', 'Confirm': False, 'Read': DateTime('2008/01/24
16:03:32.508 GMT+1'), 'Expires': None, 'SenderID': 'DC83D1F1DB88CDE8', 'Date':
DateTime('2008/01/24 15:51:50.998 GMT+1'), 'Message': 'Da ist ein permission
test', 'ID': '20080124155150_4641@DC83D1F1DB88CDE8'}]

When do a tal:repeat="message here/getMessages" and a tal:replace="message"
everything functions as expected. When i try tal:replace="message/ID" I get an
 Unauthorized Exception "You are not allowed to access 'a particular str' in
this context"

I can access all DateTime objects. Only the strings a not allowed.

There is no difference when getMessages return of the Original list and when I
 build a new list with copies of the PersistentMapping objects.

To get this working I have to create new Dictionary from the Persistent
Mappings add them to an normal List and return this list.

ret = []

for test in self.msglist :
    temptest = {}
    for (key,value) in test.items() :
        temptest[key] = value
    ret.append(temptest)
return ret

That's a real performance killer as the list is read quite frequently.

Any Idea how to fix this.


Gerhard
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Zope maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Zope@zope.org">Zope@zope.org</a>
<a class="moz-txt-link-freetext" href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</a>
**   No cross posts or HTML encoding!  **
(Related lists - 
 <a class="moz-txt-link-freetext" href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a>
 <a class="moz-txt-link-freetext" href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev</a> )
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Martijn Jacobs
Four Digits, Internet Solutions

a: Willemsplein 15-1 6811 KB Arnhem NL 
kvk: 091621370000 | btw: 8161.22.234.B01
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:martijn@fourdigits.nl">martijn@fourdigits.nl</a> | web: <a class="moz-txt-link-freetext" href="http://www.fourdigits.nl">http://www.fourdigits.nl</a>
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117 
</pre>
</body>
</html>