comparison roundup/admin.py @ 1863:d2ad3309c415

Clarify listTemplates docstring... ...using http://sourceforge.net/mailarchive/forum.php?thread_id=1983862&forum_id=1100.
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Fri, 24 Oct 2003 19:48:05 +0000
parents d4c0c65adb2c
children dc43e339e607
comparison
equal deleted inserted replaced
1862:0afdf96ea9d7 1863:d2ad3309c415
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: admin.py,v 1.58 2003-08-29 12:43:03 richard Exp $ 19 # $Id: admin.py,v 1.59 2003-10-24 19:48:05 jlgijsbers Exp $
20 20
21 '''Administration commands for maintaining Roundup trackers. 21 '''Administration commands for maintaining Roundup trackers.
22 ''' 22 '''
23 23
24 import sys, os, getpass, getopt, re, UserDict, shutil, rfc822 24 import sys, os, getpass, getopt, re, UserDict, shutil, rfc822
275 return 0 275 return 0
276 276
277 def listTemplates(self): 277 def listTemplates(self):
278 ''' List all the available templates. 278 ''' List all the available templates.
279 279
280 Look in three places: 280 Look in the following places, where the later rules take precedence:
281 <prefix>/share/roundup/templates/* 281
282 <__file__>/../templates/* 282 1. <prefix>/share/roundup/templates/*
283 current dir/* 283 this should be the standard place to find them when Roundup is
284 current dir as a template 284 installed
285 2. <roundup.admin.__file__>/../templates/*
286 this will be used if Roundup's run in the distro (aka. source)
287 directory
288 3. <current working dir>/*
289 this is for when someone unpacks a 3rd-party template
290 4. <current working dir>
291 this is for someone who "cd"s to the 3rd-party template dir
285 ''' 292 '''
286 # OK, try <prefix>/share/roundup/templates 293 # OK, try <prefix>/share/roundup/templates
287 # -- this module (roundup.admin) will be installed in something 294 # -- this module (roundup.admin) will be installed in something
288 # like: 295 # like:
289 # /usr/lib/python2.2/site-packages/roundup/admin.py (5 dirs up) 296 # /usr/lib/python2.2/site-packages/roundup/admin.py (5 dirs up)

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