Keep backwards compatibility to logbook methods
the version 4.0 has changed the signature of the methods making the API no backwards compatible. It causes problem on some beamlines, specially the ones using spec This issue address this situation by duplicating the methods
def notifyBeamlineInfo(self, message_with_tags):
self.sendNotification("notification", "info", message_with_tags)
def notifyBeamlineDebug(self, message_with_tags):
self.sendNotification("notification", "debug", message_with_tags)
def notifyBeamlineCommand(self, message_with_tags):
self.sendNotification("notification", "commandLine", message_with_tags)
def notifyBeamlineError(self, message_with_tags):
self.sendNotification("notification", "error", message_with_tags)
def userBeamlineComment(self, message_with_tags):
self.sendNotification("annotation", "comment", message_with_tags)
def notifyInfo(self, message_with_tags):
self.sendNotification("notification", "info", message_with_tags, proposal=str(self.get_proposal()))
def notifyDebug(self, message_with_tags):
self.sendNotification("notification", "debug", message_with_tags, proposal=str(self.get_proposal()))
def notifyCommand(self, message_with_tags):
self.sendNotification("notification", "commandLine", message_with_tags, proposal=str(self.get_proposal()))
def notifyError(self, message_with_tags):
self.sendNotification("notification", "error", message_with_tags, proposal=str(self.get_proposal()))
def userComment(self, message_with_tags):
self.sendNotification("annotation", "comment", message_with_tags, proposal=str(self.get_proposal()))
@denolf Do you agree?