[Checkins] SVN: zc.objectlog/trunk/src/zc/objectlog/log.py coercing principal_ids to unicode as we already expect them to be. This is needed for so that logging works for UnauthenticatedPrincipals and other global principals that might be defined using ZCMLs that have non-unicode ids.

Satchidanand Haridas satchit at zope.com
Fri May 16 21:24:37 EDT 2008


Log message for revision 86816:
  coercing principal_ids to unicode as we already expect them to be. This is needed for so that logging works for UnauthenticatedPrincipals and other global principals that might be defined using ZCMLs that have non-unicode ids.
  
  

Changed:
  U   zc.objectlog/trunk/src/zc/objectlog/log.py

-=-
Modified: zc.objectlog/trunk/src/zc/objectlog/log.py
===================================================================
--- zc.objectlog/trunk/src/zc/objectlog/log.py	2008-05-17 00:53:17 UTC (rev 86815)
+++ zc.objectlog/trunk/src/zc/objectlog/log.py	2008-05-17 01:24:36 UTC (rev 86816)
@@ -176,7 +176,7 @@
             self.principal_ids = ()
         else:
             self.principal_ids = tuple(
-                [p.principal.id for p in interaction.participations
+                [unicode(p.principal.id) for p in interaction.participations
                  if zope.publisher.interfaces.IRequest.providedBy(p)])
     
     record = property(lambda self: Record(self))



More information about the Checkins mailing list