def __init__(self, context, id, d, adminInfo, instanceUserInfo, siteInfo, groupInfo, response): """ Create a respnd-event """ BasicAuditEvent.__init__(self, context, id, INVITE_RESPOND, d, adminInfo, instanceUserInfo, siteInfo, groupInfo, response, None, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, instanceUserInfo, siteInfo, instanceDatum, supplementaryDatum): BasicAuditEvent.__init__(self, context, id, SET_PASSWORD, d, userInfo, instanceUserInfo, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM)
def __init__(self, context, id, d, instanceUserInfo, siteInfo, groupInfo, instanceDatum): """Create a join event """ BasicAuditEvent.__init__(self, context, id, JOIN, d, None, instanceUserInfo, siteInfo, groupInfo, instanceDatum, None, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, siteInfo, instanceDatum, supplementaryDatum): """Create an edit-content event ARGUMENTS Most of the arguments are the same as for the factory, except subsystem and code are skipped. userInfo The person who changed the page. siteInfo The site that contains the page. instanceDatum The url, title, old version identifier, and new version identifier. All base-64 encoded and separated by commas. supplementaryDatum A comparison of the two versions, in a unified-diff format and HTML table. Each comparison is base-64 encoded and separated by commas. SIDE EFFECTS None """ BasicAuditEvent.__init__(self, context, id, EDIT_CONTENT, d, userInfo, None, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, siteInfo, instanceDatum, supplementaryDatum): """Create an edit-atribute event ARGUMENTS Most of the arguments are the same as for the factory, except subsystem and code are skipped. userInfo The person who changed the page. instanceDatum The URL of the page supplementaryDatum The title of the page. SIDE EFFECTS Creates and enrolment query instance, so it can find out about the offering. """ BasicAuditEvent.__init__(self, context, id, EDIT_ATTRIBUTE, d, userInfo, None, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, instanceUserInfo, siteInfo, instanceDatum, supplementaryDatum): BasicAuditEvent.__init__(self, context, id, CHANGE_PROFILE, d, userInfo, instanceUserInfo, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum): BasicAuditEvent.__init__(self, context, id, ADD_NEW_USER, d, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, siteInfo, groupInfo, instanceDatum): """Create a post event ARGUMENTS Most of the arguments are the same as for the factory, except some are skipped. The instanceDatum is the identifier of the post. """ BasicAuditEvent.__init__(self, context, id, POST, d, userInfo, None, siteInfo, groupInfo, instanceDatum, None, SUBSYSTEM)
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): if (code == ADD_NEW_USER): event = AddNewUserEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum) elif (code == ADD_OLD_USER): event = AddOldUserEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum) elif (code == ADD_EXISTING_MEMBER): event = AddExistingMemberEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): assert subsystem == SUBSYSTEM, 'Subsystems do not match' if (code == BOUNCE): event = BounceEvent(context, event_id, date, instanceUserInfo, siteInfo, groupInfo, instanceDatum) elif (code == DISABLE): event = DisableEvent(context, event_id, date, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum) else: # The catch-all event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, None, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): """Create an event""" assert subsystem == SUBSYSTEM, 'Subsystems do not match' if code == ADD_EMAIL: event = AddEvent(context, event_id, date, siteInfo, instanceDatum, supplementaryDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo=None, instanceDatum='', supplementaryDatum=None, subsystem=''): if code == ADD_ADDRESS: event = AddAddressEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, instanceDatum) elif code == REMOVE_ADDRESS: event = RemoveAddressEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, instanceDatum) elif code == DELIVERY_ON: event = DeliveryOnEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, instanceDatum) elif code == DELIVERY_OFF: event = DeliveryOffEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, instanceDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo=None, instanceDatum='', supplementaryDatum='', subsystem=''): if code == JOIN_SITE: event = JoinEvent(context, event_id, date, userInfo, siteInfo) elif code == JOIN_SITE_MEMBER: event = JoinMemberEvent(context, event_id, date, userInfo, siteInfo) elif code == LEAVE_SITE: event = LeaveEvent(context, event_id, date, userInfo, siteInfo) elif code == LEAVE_SITE_MEMBER: event = LeaveMemberEvent(context, event_id, date, userInfo, siteInfo) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo=None, instanceDatum='', supplementaryDatum='', subsystem=''): if code == VERIFIED: event = VerifiedEvent( context, event_id, date, instanceUserInfo, siteInfo, instanceDatum, supplementaryDatum) elif code == ADD_VERIFY: event = AddVerifyEvent( context, event_id, date, userInfo, instanceUserInfo, siteInfo, instanceDatum) elif code == CLEAR_VERIFY: event = ClearVerifyEvent( context, event_id, date, instanceUserInfo, siteInfo, instanceDatum) elif code == VERIFY_LOGIN: event = VerifyLoginEvent( context, event_id, date, instanceUserInfo, siteInfo) elif code == VERIFY_ID_400: event = VerifyLoginNoIdEvent( context, event_id, date, siteInfo) elif code == VERIFY_ID_404: event = VerifyLoginIdNotFoundEvent( context, event_id, date, siteInfo, instanceDatum) elif code == VERIFY_ID_410: event = VerifyLoginIdUsedEvent( context, event_id, date, instanceUserInfo, siteInfo, instanceDatum) else: event = BasicAuditEvent( context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): """Create an event""" if subsystem != SUBSYSTEM: raise ValueError('Subsystems do not match') if code == JOIN_GROUP: event = JoinEvent(context, event_id, date, instanceUserInfo, siteInfo, groupInfo) elif code == JOIN_SITE: event = JoinSiteEvent(context, event_id, date, instanceUserInfo, siteInfo, groupInfo) elif code == MODERATED: event = ModerateEvent(context, event_id, date, instanceUserInfo, siteInfo, groupInfo) elif code == CONFIRM: event = ConfirmEvent( context, event_id, date, instanceUserInfo, siteInfo, groupInfo, instanceDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo=None, instanceDatum='', supplementaryDatum='', subsystem=''): if code == AUTH_FAIL: event = AuthFailEvent(context, event_id, date, siteInfo, instanceDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, eventId, code, d, userInfo, instanceUserInfo, siteInfo, instanceDatum, supplementaryDatum): if code == CHANGE_PROFILE: event = ChangeProfileEvent(context, eventId, d, userInfo, instanceUserInfo, siteInfo, instanceDatum, supplementaryDatum) else: event = BasicAuditEvent(context, eventId, UNKNOWN, d, userInfo, instanceUserInfo, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM) return event
def __init__(self, context, id, d, userInfo, siteInfo, instanceDatum, supplementaryDatum): """Create an edit-atribute event ARGUMENTS Most of the arguments are the same as for the factory, except subsystem and code are skipped. userInfo The person who changed the page. instanceDatum The original URL supplementaryDatum The new URL SIDE EFFECTS Creates and enrolment query instance, so it can find out about the offering. """ BasicAuditEvent.__init__(self, context, id, RENAME_PAGE, d, userInfo, None, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM)
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo=None, instanceDatum='', supplementaryDatum='', subsystem=''): if code == START: event = StartEvent(context, event_id, date, userInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum) if code == STOP: event = StopEvent(context, event_id, date, userInfo, siteInfo, groupInfo) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): """Create an event""" assert subsystem == SUBSYSTEM, 'Subsystems do not match' if (code == GAIN): event = GainStatusEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum) elif (code == LOSE): event = LoseStatusEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): """Create an event""" assert subsystem == SUBSYSTEM, 'Subsystems do not match' if (code == DIGEST): event = DigestEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo) elif (code == DIGEST_COMMAND): event = DigestCommand(context, event_id, date, instanceUserInfo, groupInfo, siteInfo, instanceDatum) elif (code == EMAIL): event = EmailEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo) elif (code == EMAIL_COMMAND): event = EmailCommand(context, event_id, date, instanceUserInfo, groupInfo, siteInfo, instanceDatum) elif (code == WEB_ONLY): event = WebOnlyEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo) elif (code == ADDRESS_DEFAULT): event = DefaultAddressesEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo) elif (code == ADDRESS_SPECIFIC): event = SpecificAddressesEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, instanceUserInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): """Create an event""" assert subsystem == SUBSYSTEM, 'Subsystems do not match' if code == REQUEST: event = RequestEvent(context, event_id, date, instanceUserInfo, siteInfo, groupInfo) elif code == ACCEPT: event = AcceptEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo) elif code == DECLINE: event = DeclineEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): if code == CHANGE_ABOUT: event = ChangeAboutEvent(context, event_id, date, userInfo, siteInfo, groupInfo, instanceDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo = None, instanceDatum='', supplementaryDatum='', subsystem=''): if (code == SET_PASSWORD): event = SetPasswordEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, instanceDatum, supplementaryDatum) elif (code == CHANGE_PROFILE): event = ChangeProfileEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, instanceDatum, supplementaryDatum) elif (code == REGISTER): event = RegisterEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, instanceDatum, supplementaryDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): if (code == INVITE_NEW_USER): event = InviteNewUserEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum) elif (code == INVITE_OLD_USER): event = InviteOldUserEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum) elif (code == INVITE_EXISTING_MEMBER): event = InviteExistingMemberEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum) elif (code == WITHDRAW_INVITATION): event = WithdrawInvitationEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): if code == INVITE_RESPOND: event = RespondEvent(context, event_id, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo=None, instanceDatum='', supplementaryDatum='', subsystem=''): if (code == SEND_NOTIFICATION): event = SendNotificationEvent(context, event_id, date, userInfo, siteInfo, instanceDatum, supplementaryDatum) elif (code == SEND_MESSAGE): event = SendMessageEvent(context, event_id, date, userInfo, siteInfo, instanceDatum, supplementaryDatum) elif (code == CREATE_MESSAGE): event = CreateMessageEvent(context, event_id, date, userInfo, siteInfo, instanceDatum) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum='', supplementaryDatum='', subsystem=''): if code == SENT_STATUS: event = SentStatusEvent(context, event_id, date, instanceUserInfo, instanceDatum) elif code == SKIPPED_STATUS_EMAIL: event = SkippedStatusEmailEvent(context, event_id, date, instanceUserInfo) elif code == SKIPPED_STATUS_GROUPS: event = SkippedStatusGroupsEvent(context, event_id, date, instanceUserInfo) elif code == SKIPPED_STATUS_ANON: event = SkippedStatusAnonEvent(context, event_id, date, instanceDatum) elif code == SKIPPED_STATUS_INACTIVE: event = SkippedStatusInactiveEvent(context, event_id, date, instanceUserInfo) elif code == SKIPPED_STATUS_EXPLICIT: event = SkippedStatusExplicitEvent(context, event_id, date, instanceUserInfo) else: event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, instanceUserInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __init__(self, context, id, d, userInfo, siteInfo, instanceDatum): BasicAuditEvent.__init__(self, context, id, RESET_ID_410, d, userInfo, userInfo, siteInfo, None, instanceDatum, None, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, siteInfo): BasicAuditEvent.__init__(self, context, id, LEAVE_SITE, d, userInfo, userInfo, siteInfo, None, None, None, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, siteInfo): BasicAuditEvent.__init__(self, context, id, JOIN_SITE_MEMBER, d, userInfo, userInfo, siteInfo, None, None, None, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum): BasicAuditEvent.__init__(self, context, id, DISABLE, d, None, userInfo, siteInfo, groupInfo, instanceDatum, supplementaryDatum, SUBSYSTEM) self.__numBounceDays = self.__numDaysChecked = None
def __init__(self, context, id, d, userInfo, siteInfo, groupInfo, instanceDatum): BasicAuditEvent.__init__(self, context, id, BOUNCE, d, None, userInfo, siteInfo, groupInfo, instanceDatum, None, SUBSYSTEM)
def __init__(self, context, id, d, siteInfo, instanceDatum, supplementaryDatum): """ Create an event""" BasicAuditEvent.__init__(self, context, id, ADD_EMAIL, d, None, None, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, instanceUserInfo, siteInfo, instanceDatum): BasicAuditEvent.__init__(self, context, id, DELIVERY_OFF, d, userInfo, instanceUserInfo, siteInfo, None, instanceDatum, None, SUBSYSTEM)
def __init__(self, context, id, d, siteInfo): BasicAuditEvent.__init__(self, context, id, RESET_ID_400, d, None, None, siteInfo, None, None, None, SUBSYSTEM)
def __init__(self, context, id, d, siteInfo, instanceDatum): BasicAuditEvent.__init__(self, context, id, BADUSERID, d, None, None, siteInfo, None, instanceDatum, None, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, siteInfo): BasicAuditEvent.__init__(self, context, id, BADPASSWORD, d, userInfo, None, siteInfo, None, None, None, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, instanceUserInfo, siteInfo, groupInfo): BasicAuditEvent.__init__(self, context, id, WITHDRAW_INVITATION, d, userInfo, instanceUserInfo, siteInfo, groupInfo, None, None, SUBSYSTEM)
def __call__(self, context, event_id, code, date, userInfo, instanceUserInfo, siteInfo, groupInfo=None, instanceDatum='', supplementaryDatum='', subsystem=''): """Create an event DESCRIPTION The factory is called to create event instances. It expects all the arguments that are required to create an event instance, though it ignores some. The arguments to this method *must* be the same for *all* event factories, no matter the subsystem, and the argument names *must* match the fields returned by the getter-methods of the audit trail query. ARGUMENTS context The context used to create the event. event_id The identifier for the event. code The code used to determine the event that is instantiated. date The date the event occurred. userInfo The user who caused the event. Always set. instanceUserInfo The user who had an event occurred to them. siteInfo The site where the event occurred. Always set. groupInfo The group where the event occurred. Can be None. instanceDatum Data about the event. Can be ''. supplementaryDatum More data about the event. Can be ''. subsystem The subsystem (should be this one). RETURNS An event, that conforms to the IAuditEvent interface. SIDE EFFECTS None """ assert subsystem == SUBSYSTEM, 'Subsystems do not match' # The process of picking the class used to create an event # not a pretty one: use the code in a big if-statement. # Not all data-items are passed to the constructors of # the classes that represent the events: they do not need # the code or subsystem, for example. if (code == EDIT_CONTENT): event = EditContentEvent(context, event_id, date, userInfo, siteInfo, instanceDatum, supplementaryDatum) if (code == CHANGE_PRIVACY): event = ChangePrivacyEvent(context, event_id, date, userInfo, siteInfo, instanceDatum, supplementaryDatum) else: # If we get something odd, create a basic event with all # the data we have. All call methods for audit-event # factories will end in this call. event = BasicAuditEvent(context, event_id, UNKNOWN, date, userInfo, None, siteInfo, None, instanceDatum, supplementaryDatum, SUBSYSTEM) assert event return event
def __init__(self, context, id, d, userInfo, instanceUserInfo, siteInfo, instanceDatum): BasicAuditEvent.__init__(self, context, id, ADD_ADDRESS, d, userInfo, instanceUserInfo, siteInfo, None, instanceDatum, None, SUBSYSTEM)
def __init__(self, context, id, d, userInfo, siteInfo): BasicAuditEvent.__init__(self, context, id, RESET_LOGIN, d, userInfo, userInfo, siteInfo, None, None, None, SUBSYSTEM)