Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
ATContentTypes.content.newsitem.ATNewsItem Class Reference
Inheritance diagram for ATContentTypes.content.newsitem.ATNewsItem:
Inheritance graph
Collaboration diagram for ATContentTypes.content.newsitem.ATNewsItem:
Collaboration graph

List of all members.

Public Member Functions

def tag
def cmf_edit
def __bobo_traverse__

Static Public Attributes

 schema = ATNewsItemSchema
string portal_type = 'News Item'
string archetype_name = 'News Item'
tuple assocMimetypes = ()
tuple assocFileExt = ('news', )
 cmf_edit_kws = ATDocumentBase.cmf_edit_kws
tuple security = ClassSecurityInfo()

Static Private Attributes

dictionary _atct_newTypeFor = {'portal_type' : 'CMF News Item', 'meta_type' : 'News Item'}
 __implements__ = ATDocumentBase.__implements__,IATNewsItem

Detailed Description

An announcement that will show up on the news portlet and in the news listing.

Definition at line 108 of file

Member Function Documentation

def ATContentTypes.content.newsitem.ATNewsItem.__bobo_traverse__ (   self,
Transparent access to image scales

Definition at line 139 of file

00140     def __bobo_traverse__(self, REQUEST, name):
00141         """Transparent access to image scales
00142         """
00143         if name.startswith('image'):
00144             field = self.getField('image')
00145             image = None
00146             if name == 'image':
00147                 image = field.getScale(self)
00148             else:
00149                 scalename = name[len('image_'):]
00150                 if scalename in field.getAvailableSizes(self):
00151                     image = field.getScale(self, scale=scalename)
00152             if image is not None and not isinstance(image, basestring):
00153                 # image might be None or '' for empty images
00154                 return image
00156         return ATDocumentBase.__bobo_traverse__(self, REQUEST, name)
00158 registerATCT(ATNewsItem, PROJECTNAME)

Here is the call graph for this function:

def ATContentTypes.content.newsitem.ATNewsItem.cmf_edit (   self,
  description = None,
  text_format = None,

Definition at line 133 of file

00134     def cmf_edit(self, text, description=None, text_format=None, **kwargs):
00135         if description is not None:
00136             self.setDescription(description)
00137         self.setText(text, mimetype=translateMimetypeAlias(text_format))
00138         self.update(**kwargs)

def ATContentTypes.content.newsitem.ATNewsItem.tag (   self,
Generate image tag using the api of the ImageField

Definition at line 125 of file

00126     def tag(self, **kwargs):
00127         """Generate image tag using the api of the ImageField
00128         """
00129         if 'title' not in kwargs:
00130             kwargs['title'] = self.getImageCaption()
00131         return self.getField('image').tag(self, **kwargs)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

ATContentTypes.content.newsitem.ATNewsItem.__implements__ = ATDocumentBase.__implements__,IATNewsItem [static, private]

Definition at line 120 of file

dictionary ATContentTypes.content.newsitem.ATNewsItem._atct_newTypeFor = {'portal_type' : 'CMF News Item', 'meta_type' : 'News Item'} [static, private]

Definition at line 115 of file

Definition at line 114 of file

Definition at line 117 of file

Definition at line 116 of file

ATContentTypes.content.newsitem.ATNewsItem.cmf_edit_kws = ATDocumentBase.cmf_edit_kws [static]

Definition at line 118 of file

Definition at line 113 of file

Definition at line 111 of file

tuple = ClassSecurityInfo() [static]

Definition at line 122 of file

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