def __init__(self, realm, category, target, comment=None, author=None,
              changes=None, attachment=None):
     AnnouncementEvent.__init__(self, realm, category, target)
     self.author = author
     self.comment = comment
     self.changes = changes or {}
     self.attachment = attachment
Exemple #2
0
 def __init__(self, realm, category, target,
              comment=None, author=None, changes={},
              attachment=None):
     AnnouncementEvent.__init__(self, realm, category, target)
     self.author = author
     self.comment = comment
     self.changes = changes
     self.attachment = attachment
 def __init__(self, realm, category, target, comment=None, author=None,
              version=None, timestamp=None, attachment=None):
     AnnouncementEvent.__init__(self, realm, category, target)
     self.author = author
     self.comment = comment
     self.version = version
     self.timestamp = timestamp
     self.attachment = attachment
Exemple #4
0
 def __init__(self, realm, category, target,
              comment=None, author=None, version=None,
              timestamp=None, remote_addr=None,
              attachment=None):
     AnnouncementEvent.__init__(self, realm, category, target)
     self.author = author
     self.comment = comment
     self.version = version
     self.timestamp = timestamp
     self.remote_addr = remote_addr
     self.attachment = attachment
Exemple #5
0
 def __init__(self, blog_post, category, url, blog_comment=None):
     AnnouncementEvent.__init__(self, 'blog', category, blog_post)
     if blog_comment:
         if 'comment deleted' == category:
             self.comment = blog_comment['comment']
             self.author = blog_comment['author']
             self.timestamp = blog_comment['time']
         else:
             self.comment = blog_comment.comment
             self.author = blog_comment.author
             self.timestamp = blog_comment.time
     else:
         self.comment = blog_post.version_comment
         self.author = blog_post.version_author
         self.timestamp = blog_post.version_time
     self.remote_addr = url
     self.version = blog_post.version
     self.blog_post = blog_post
     self.blog_comment = blog_comment
Exemple #6
0
 def __init__(self, blog_post, category, url, blog_comment=None):
     AnnouncementEvent.__init__(self, 'blog', category, blog_post)
     if blog_comment:
         if 'comment deleted' == category:
             self.comment = blog_comment['comment']
             self.author = blog_comment['author']
             self.timestamp = blog_comment['time']
         else:
             self.comment = blog_comment.comment
             self.author = blog_comment.author
             self.timestamp = blog_comment.time
     else:
         self.comment = blog_post.version_comment
         self.author = blog_post.version_author
         self.timestamp = blog_post.version_time
     self.remote_addr = url
     self.version = blog_post.version
     self.blog_post = blog_post
     self.blog_comment = blog_comment
 def __init__(self, category, username, password=None, token=None):
     AnnouncementEvent.__init__(self, 'acct_mgr', category, None)
     self.username = username
     self.password = password
     self.token = token
 def __init__(self, realm, category, target, log):
     AnnouncementEvent.__init__(self, realm, category, target)
     self.log = log
 def __init__(self, build, category):
     AnnouncementEvent.__init__(self, 'bitten', category, build)
Exemple #10
0
 def __init__(self, category, username, password=None, token=None):
     AnnouncementEvent.__init__(self, 'acct_mgr', category, None)
     self.username = username
     self.password = password
     self.token = token
 def __init__(self, realm, category, target):
     AnnouncementEvent.__init__(self, realm, category, target)