# Logo constants
#
# These are the URLs which the image logos link to. The Mailman home page now
# points at the gnu.org site instead of the www.list.org mirror.
#
from mm_cfg import MAILMAN_URL
PYTHON_URL = 'http://www.python.org/'
GNU_URL = 'http://www.gnu.org/'
# added ocentrix branding
OCX_URL = 'http://www.ocentrix.com/'
# The names of the image logo files. These are concatentated onto
# mm_cfg.IMAGE_LOGOS (not urljoined).
DELIVERED_BY = 'mailman.jpg'
PYTHON_POWERED = 'PythonPowered.png'
GNU_HEAD = 'gnu-head-tiny.jpg'
# added ocentrix branding
OCX_POWERED = 'powered.jpg'
def MailmanLogo():
t = Table(border=0, width='100%')
if mm_cfg.IMAGE_LOGOS:
def logo(file):
return mm_cfg.IMAGE_LOGOS + file
mmlink = Link(MAILMAN_URL,
'
'
'
version %s'
% (logo(DELIVERED_BY), mm_cfg.VERSION))
pylink = Link(PYTHON_URL,
'
' %
logo(PYTHON_POWERED))
gnulink = Link(GNU_URL,
'
' %
logo(GNU_HEAD))
ocxlink = Link(OCX_URL,
'
' %
logo(OCX_POWERED))
text = Container(Link(MAILMAN_URL, 'Mailman home page'),
'
',
Link(PYTHON_URL, 'Python home page'),
'
',
Link(GNU_URL, 'GNU home page'),
'
',
Link(OCX_URL, 'Ocentrix home page'),
)
t.AddRow([mmlink, ocxlink])
# changed this line to apply ocentrix branding
# t.AddRow([mmlink, pylink, gnulink, ocxlink, text])
else:
# use only textual links
mmlink = Link(MAILMAN_URL,
'Delivered by Mailman
version %s' % mm_cfg.VERSION)
pylink = Link(PYTHON_URL, 'Python Powered')
gnulink = Link(GNU_URL, "Gnu's Not Unix")
ocxlink = Link(OCX_URL, "Powered by Ocentrix")
t.AddRow([mmlink, ocxlink])
# changed this line to apply ocentrix branding
# t.AddRow([mmlink, pylink, gnulink, ocxlink])
return t