Esempio n. 1
0
 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()
Esempio n. 2
0
 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()
Esempio n. 3
0
    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)
Esempio n. 4
0
 def refresh_lock(self):
     """Reset the lock start time
     """
     lockable = IRefreshableLockable(self.context, None)
     if lockable is not None:
         lockable.refresh_lock()
Esempio n. 5
0
 def refresh_lock(self):
     """Reset the lock start time
     """
     lockable = IRefreshableLockable(self.context, None)
     if lockable is not None:
         lockable.refresh_lock()