mò $á¸Ec@s*dZdkZdkZdkZdkZdklZdklZdkZdk l Z dk l Z l Z lZdklZdklZdklZeid ƒZd Zd ZhZd Zd ZeiieiieƒdƒZ hZ!eƒZ"defd„ƒYZ#ei$e#ƒdd„Z&dS(sNSite error log module. $Id: SiteErrorLog.py 68064 2006-05-09 11:28:02Z shh $ N(srandom(s allocate_lock(saq_base(sClassSecurityInfosgetSecurityManagers Unauthorized(s SimpleItem(sPageTemplateFile(sformat_exceptionsZope.SiteErrorLogsLog Site ErrorssLog to the Event Logi<itwwwt SiteErrorLogcBs°tZdZdZdZdZeZeƒZ hdd<ddtURLt?R(tTraversalRequestNameStacks %s [ /%s ]t/ttypetvaluettimeRttb_textttb_htmltusernametuseridturltreq_htmlsError while loggingtexc_infos%s/showEntry?id=%s(1R4tnowRR5R6tstrtgetattrtinfotstrtypeR t_ignored_exceptionst isinstancet basestringtjointformat_exceptiontrequestR9R7R8R:tstrvR2R+RtgetSecurityManagertgetUsertusrt getUserNametgetIdtnexttlisttreverseRRtrandomtentry_idtappendRRtlent keep_entriesR"tLOGterrortsysR;t copy_to_zlogt_do_copy_to_zlogR&(R R?R6RFRQR5RR:RMRJR7R<R9R8RGR@((RR*sl  !%       % g   cCsoti|dƒ}||joLt||ttƒ}|t7}|t|