Mercurial > p > roundup > code
comparison roundup/admin.py @ 2005:fc52d57c6c3e
documentation cleanup
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 11 Feb 2004 23:55:10 +0000 |
| parents | d157b9b56ebf |
| children | 3f6024ab2c7a |
comparison
equal
deleted
inserted
replaced
| 2004:1782fe36e7b8 | 2005:fc52d57c6c3e |
|---|---|
| 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.61 2003-11-13 04:12:10 richard Exp $ | 19 # $Id: admin.py,v 1.62 2004-02-11 23:55:08 richard Exp $ |
| 20 | 20 |
| 21 '''Administration commands for maintaining Roundup trackers. | 21 '''Administration commands for maintaining Roundup trackers. |
| 22 ''' | 22 ''' |
| 23 __docformat__ = 'restructuredtext' | |
| 23 | 24 |
| 24 import sys, os, getpass, getopt, re, UserDict, shutil, rfc822 | 25 import sys, os, getpass, getopt, re, UserDict, shutil, rfc822 |
| 25 from roundup import date, hyperdb, roundupdb, init, password, token, rcsv | 26 from roundup import date, hyperdb, roundupdb, init, password, token, rcsv |
| 26 from roundup import __version__ as roundup_version | 27 from roundup import __version__ as roundup_version |
| 27 import roundup.instance | 28 import roundup.instance |
| 824 | 825 |
| 825 Lists all instances of the given class. If the properties are not | 826 Lists all instances of the given class. If the properties are not |
| 826 specified, all properties are displayed. By default, the column widths | 827 specified, all properties are displayed. By default, the column widths |
| 827 are the width of the largest value. The width may be explicitly defined | 828 are the width of the largest value. The width may be explicitly defined |
| 828 by defining the property as "name:width". For example:: | 829 by defining the property as "name:width". For example:: |
| 830 | |
| 829 roundup> table priority id,name:10 | 831 roundup> table priority id,name:10 |
| 830 Id Name | 832 Id Name |
| 831 1 fatal-bug | 833 1 fatal-bug |
| 832 2 bug | 834 2 bug |
| 833 3 usability | 835 3 usability |
| 834 4 feature | 836 4 feature |
| 835 | 837 |
| 836 Also to make the width of the column the width of the label, | 838 Also to make the width of the column the width of the label, |
| 837 leave a trailing : without a width on the property. E.G. | 839 leave a trailing : without a width on the property. For example:: |
| 840 | |
| 838 roundup> table priority id,name: | 841 roundup> table priority id,name: |
| 839 Id Name | 842 Id Name |
| 840 1 fata | 843 1 fata |
| 841 2 bug | 844 2 bug |
| 842 3 usab | 845 3 usab |
