示例#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()