Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.portlets.portlets.news.Assignment Class Reference
Inheritance diagram for plone.app.portlets.portlets.news.Assignment:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.portlets.news.Assignment:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def title
def id
def available
def data

Public Attributes

 count
 state

Detailed Description

Definition at line 33 of file news.py.


Constructor & Destructor Documentation

def plone.app.portlets.portlets.news.Assignment.__init__ (   self,
  count = 5,
  state = ('published', 
)

Definition at line 36 of file news.py.

00036 
00037     def __init__(self, count=5, state=('published', )):
00038         self.count = count
00039         self.state = state

Here is the caller graph for this function:


Member Function Documentation

def plone.app.portlets.portlets.base.Assignment.available (   self,
  context,
  request 
) [inherited]
By default, this portlet is always available

Definition at line 47 of file base.py.

00047 
00048     def available(self, context, request):
00049         """By default, this portlet is always available
00050         """
00051         return True

Make the assignment itself represent the data object that is being rendered.

Definition at line 53 of file base.py.

00053 
00054     def data(self):
00055         """Make the assignment itself represent the data object that is being rendered.
00056         """
00057         return self

Here is the caller graph for this function:

Definition at line 40 of file base.py.

00040 
00041     def id(self):
00042         return getattr(self, '__name__', '')
    

Here is the caller graph for this function:

Reimplemented from plone.app.portlets.portlets.base.Assignment.

Definition at line 41 of file news.py.

00041 
00042     def title(self):
00043         return _(u"News")

Here is the caller graph for this function:


Member Data Documentation

Definition at line 37 of file news.py.

Definition at line 38 of file news.py.


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