Back to index

plone3  3.1.7
Public Member Functions
plone.app.kss.lock.LockView Class Reference
Inheritance diagram for plone.app.kss.lock.LockView:
Inheritance graph
[legend]
Collaboration diagram for plone.app.kss.lock.LockView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def updateLockInfo

Detailed Description

Lock informations/operation in kss

Definition at line 10 of file lock.py.


Member Function Documentation

Update the lock icon -
Check if the object if really locked before showing the icon
an xmlhttprequest might have just been sent on the object to
unlock just a few moment ago. So we need to be really sure
that the object wasn't locked, to be sure, we do one more

Definition at line 17 of file lock.py.

00017 
00018     def updateLockInfo(self):
00019         """Update the lock icon -
00020         Check if the object if really locked before showing the icon
00021         an xmlhttprequest might have just been sent on the object to
00022         unlock just a few moment ago. So we need to be really sure
00023         that the object wasn't locked, to be sure, we do one more
00024         """
00025         context = aq_inner(self.context)
00026         locking = queryAdapter(context, ILockable)
00027         if locking and not locking.locked():
00028             coreCmd = self.getCommandSet('core')
00029             selector = coreCmd.getHtmlIdSelector('lock-icon')
00030             coreCmd.deleteNode(selector)

Here is the call graph for this function:


The documentation for this class was generated from the following file: