Code

Some more documentation.
[roundup.git] / roundup / templates / __init__.py
1 #
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
3 # This module is free software, and you may redistribute it and/or modify
4 # under the same terms as Python, so long as this copyright message and
5 # disclaimer are retained in their original form.
6 #
7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
10 # POSSIBILITY OF SUCH DAMAGE.
11 #
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE.  THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17
18 # $Id: __init__.py,v 1.4 2001-08-07 00:24:43 richard Exp $
20 import os
22 def listTemplates():
23     t_dir = os.path.split(__file__)[0]
24     l = []
25     for entry in os.listdir(t_dir):
26         # this isn't strictly necessary - the CVS dir won't be distributed
27         if entry == 'CVS': continue
28         if os.path.isdir(os.path.join(t_dir, entry)):
29             l.append(entry)
30     return l
32 #
33 # $Log: not supported by cvs2svn $
34 # Revision 1.3  2001/08/07 00:15:51  richard
35 # Added the copyright/license notice to (nearly) all files at request of
36 # Bizar Software.
37 #
38 #
39 #
40 # vim: set filetype=python ts=4 sw=4 et si