Re: [Zope3-Users] a question about zope.app.security.principallogging.PrincipalLogging

2007-08-09 Thread Stephan Richter
On Wednesday 08 August 2007 12:14, Shailesh Kumar wrote:
 zope.app.security.principallogging.PrincipalLogging looks like:

 class PrincipalLogging(object):

     implements(ILoggingInfo)

     def __init__(self, principal):
         self.principal = principal

     def getLogMessage(self):
         return str(self.principal.id)


 It requires that self.principal.id cannot be a UNICODE string (cannot
 contain non-ascii characters).

You are right. The interface says it is a text line, thus accepting unicode. 
So this is a bug.

 Is this intentional???

Can you file a bug report or even fix it yourself, including a test?

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] a question about zope.app.security.principallogging.PrincipalLogging

2007-08-08 Thread Shailesh Kumar
Hi,

zope.app.security.principallogging.PrincipalLogging looks like:

class PrincipalLogging(object):

implements(ILoggingInfo)

def __init__(self, principal):
self.principal = principal

def getLogMessage(self):
return str(self.principal.id)


It requires that self.principal.id cannot be a UNICODE string (cannot
contain non-ascii characters).

Is this intentional???

With regards,
-Shailesh
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users