def refresh_lock(self, redirect=True): """Reset the lock start time """ lockable = IRefreshableLockable(self.context, None) if lockable is not None: lockable.refresh_lock() if redirect: self.redirect()
def reply(self): lockable = IRefreshableLockable(self.context, None) if lockable is not None: lockable.refresh_lock() # Disable CSRF protection if "IDisableCSRFProtection" in dir(plone.protect.interfaces): alsoProvides(self.request, plone.protect.interfaces.IDisableCSRFProtection) return lock_info(self.context)
def refresh_lock(self): """Reset the lock start time """ lockable = IRefreshableLockable(self.context, None) if lockable is not None: lockable.refresh_lock()