示例#1
0
 def update(self, edit=None, add=None, delete=None, move=None, moved=None,
            nomce=None, cancel=None):
     self.editing = edit is not None
     self.adding = add is not None
     self.deleting = delete is not None
     self.moving = self.process_moving(move, moved, cancel)
     self.viewing = not (self.editing or self.adding or self.deleting or self.moving)
     style.need()
     favicon.need()
     if nomce is None:  # Switch includes or omits tinyMCE
         tinymce.need()
     textdivs.need()
示例#2
0
 def update(self):
     style.need()
     textLight.need()
示例#3
0
 def update(self):
     ''' As this view is called directly and displayed in a dialog window, we need to add the
         css style explicitly.  Also, grok.EditForm includes the HTML header.
     '''
     style.need()
示例#4
0
 def update(self):
     self.html = self.context.highlight()  # Set highlighted text
     style.need()
     textStyle.need()