Example #1
0
def raising(self, *args, **kw):
    if self.aq_parent.meta_type == "Plone Site":
        err = str(getattr(args[0][0], '__name__', args[0][0]))
        tb = "\n".join(traceback.format_tb(args[0][2]))
        msg = args[0][1]
        arecibo(self, error_type=err, error_tb=tb, error_msg=msg)
    return old_raising(self, *args, **kw)
Example #2
0
def raising(self, *args, **kw):
    if self.aq_parent.meta_type == "Plone Site":
        err = str(getattr(args[0][0], '__name__', args[0][0]))
        tb = "\n".join(traceback.format_tb(args[0][2]))
        msg = args[0][1]
        arecibo(self, error_type=err, error_tb=tb, error_msg=msg)
    return old_raising(self, *args, **kw)
Example #3
0
def raising(self, *args, **kw): 
    site = getSite()
    if site and site.meta_type == "Plone Site" and is_contained(self, site):
        if 'clearwind.arecibo' in site.portal_quickinstaller.keys():
            err = str(getattr(args[0][0], '__name__', args[0][0]))
            tb = "\n".join(traceback.format_tb(args[0][2]))
            msg = args[0][1]
            arecibo(self, error_type=err, error_tb=tb, error_msg=msg)
    return old_raising(self, *args, **kw)