Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.support.werkzeug.contrib.atom Namespace Reference

Classes

class  AtomFeed
class  FeedEntry

Functions

def _make_text_block
def format_iso8601

Variables

string XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'

Function Documentation

def MoinMoin.support.werkzeug.contrib.atom._make_text_block (   name,
  content,
  content_type = None 
) [private]
Helper function for the builder that creates an XML text block.

Definition at line 32 of file atom.py.

00032 
00033 def _make_text_block(name, content, content_type=None):
00034     """Helper function for the builder that creates an XML text block."""
00035     if content_type == 'xhtml':
00036         return u'<%s type="xhtml"><div xmlns="%s">%s</div></%s>\n' % \
00037                (name, XHTML_NAMESPACE, content, name)
00038     if not content_type:
00039         return u'<%s>%s</%s>\n' % (name, escape(content), name)
00040     return u'<%s type="%s">%s</%s>\n' % (name, content_type,
00041                                          escape(content), name)
00042 

Here is the caller graph for this function:

Format a datetime object for iso8601

Definition at line 43 of file atom.py.

00043 
00044 def format_iso8601(obj):
00045     """Format a datetime object for iso8601"""
00046     return obj.strftime('%Y-%m-%dT%H:%M:%SZ')
00047 

Here is the caller graph for this function:


Variable Documentation

string MoinMoin.support.werkzeug.contrib.atom.XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'

Definition at line 29 of file atom.py.