Ejemplo n.º 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()
Ejemplo n.º 2
0
 def update(self):
     style.need()
     textLight.need()
Ejemplo n.º 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()
Ejemplo n.º 4
0
 def update(self):
     self.html = self.context.highlight()  # Set highlighted text
     style.need()
     textStyle.need()