view roundup/templates/__init__.py @ 188:1536be43d2fa

Roundupdb now appends "mailing list" information to its messages... ...which include the e-mail address and web interface address. Templates may override this in their db classes to include specific information (support instructions, etc).
author Richard Jones <richard@users.sourceforge.net>
date Thu, 02 Aug 2001 06:38:17 +0000
parents da7b97149caa
children d45384bc6420
line wrap: on
line source

import os

def listTemplates():
    t_dir = os.path.split(__file__)[0]
    l = []
    for entry in os.listdir(t_dir):
        # this isn't strictly necessary - the CVS dir won't be distributed
        if entry == 'CVS': continue
        if os.path.isdir(os.path.join(t_dir, entry)):
            l.append(entry)
    return l


Roundup Issue Tracker: http://roundup-tracker.org/