Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Private Attributes
plone.app.kss.commands.issueportalmessage.IssuePortalMessageCommand Class Reference
Inheritance diagram for plone.app.kss.commands.issueportalmessage.IssuePortalMessageCommand:
Inheritance graph
[legend]
Collaboration diagram for plone.app.kss.commands.issueportalmessage.IssuePortalMessageCommand:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def issuePortalMessage
def getCommandSet

Public Attributes

 view
 context
 request
 commands

Static Private Attributes

int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

Definition at line 8 of file issueportalmessage.py.


Member Function Documentation

def kss.core.kssview.CommandSet.getCommandSet (   self,
  name 
) [inherited]

Definition at line 180 of file kssview.py.

00180 
00181     def getCommandSet(self, name):
00182         return self.view.getCommandSet(name)
00183 
# BBB deprecated

Definition at line 14 of file issueportalmessage.py.

00014 
00015     def issuePortalMessage(self, message, msgtype='info'):
00016         'Issue this portal message'
00017         if message is None:
00018             # allow message = None.
00019             message = ''
00020 
00021         if isinstance(message, Message):
00022             msgtype = message.type
00023             message = message.message
00024 
00025         # XXX The macro has to take in account that there might be more than
00026         # one status message.
00027         ksscore = self.getCommandSet('core')
00028         selector = ksscore.getHtmlIdSelector('kssPortalMessage')
00029 
00030         # We hide the standard Plone Portal Message
00031         standar_portal_message_selector = ksscore.getCssSelector('.portalMessage')
00032         ksscore.setStyle(standar_portal_message_selector, 'display','none')
00033 
00034         # Now there is always a portal message but it has to be
00035         # rendered visible or invisible, accordingly
00036         html = '<dt>%s</dt><dd>%s</dd>' % (msgtype, message)
00037         ksscore.replaceInnerHTML(selector, html)
00038         ksscore.setAttribute(selector, 'class', "portalMessage %s" % msgtype)
00039         ksscore.setStyle(selector, 'display', message and 'block' or 'none')

Here is the call graph for this function:


Member Data Documentation

Definition at line 10 of file issueportalmessage.py.

Definition at line 178 of file kssview.py.

Definition at line 176 of file kssview.py.

Definition at line 177 of file kssview.py.

Definition at line 175 of file kssview.py.


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