예제 #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()
예제 #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()
예제 #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)
예제 #4
0
파일: locking.py 프로젝트: Vinsurya/Plone
 def refresh_lock(self):
     """Reset the lock start time
     """
     lockable = IRefreshableLockable(self.context, None)
     if lockable is not None:
         lockable.refresh_lock()
예제 #5
0
 def refresh_lock(self):
     """Reset the lock start time
     """
     lockable = IRefreshableLockable(self.context, None)
     if lockable is not None:
         lockable.refresh_lock()