Skip to content

Commit da67177

Browse files
committed
Revert docstring markup for use with gettext tool.
1 parent 8cc5a96 commit da67177

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

roundup/admin.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def help_all(self):
240240

241241
def do_help(self, args, nl_re=re.compile('[\r\n]'),
242242
indent_re=re.compile(r'^(\s+)\S+')):
243-
"""Usage: help topic
243+
''"""Usage: help topic
244244
Give help about topic.
245245
246246
commands -- list commands
@@ -346,7 +346,7 @@ def help_initopts(self):
346346
print _('Back ends:'), ', '.join(backends)
347347

348348
def do_install(self, tracker_home, args):
349-
"""Usage: install [template [backend [key=val[,key=val]]]]
349+
''"""Usage: install [template [backend [key=val[,key=val]]]]
350350
Install a new Roundup tracker.
351351
352352
The command will prompt for the tracker home directory
@@ -461,7 +461,7 @@ def do_install(self, tracker_home, args):
461461
return 0
462462

463463
def do_genconfig(self, args):
464-
"""Usage: genconfig <filename>
464+
''"""Usage: genconfig <filename>
465465
Generate a new tracker config file (ini style) with default values
466466
in <filename>.
467467
"""
@@ -471,7 +471,7 @@ def do_genconfig(self, args):
471471
config.save(args[0])
472472

473473
def do_initialise(self, tracker_home, args):
474-
"""Usage: initialise [adminpw]
474+
''"""Usage: initialise [adminpw]
475475
Initialise a new Roundup tracker.
476476
477477
The administrator details will be set at this step.
@@ -520,7 +520,7 @@ def do_initialise(self, tracker_home, args):
520520

521521

522522
def do_get(self, args):
523-
"""Usage: get property designator[,designator]*
523+
''"""Usage: get property designator[,designator]*
524524
Get the given property of one or more designator(s).
525525
526526
Retrieves the property value of the nodes specified
@@ -594,7 +594,7 @@ def do_get(self, args):
594594

595595

596596
def do_set(self, args):
597-
"""Usage: set items property=value property=value ...
597+
''"""Usage: set items property=value property=value ...
598598
Set the given properties of one or more items(s).
599599
600600
The items are specified as a class or as a comma-separated
@@ -649,7 +649,7 @@ def do_set(self, args):
649649
return 0
650650

651651
def do_find(self, args):
652-
"""Usage: find classname propname=value ...
652+
''"""Usage: find classname propname=value ...
653653
Find the nodes of the given class with a given link property value.
654654
655655
Find the nodes of the given class with a given link property value.
@@ -709,7 +709,7 @@ def do_find(self, args):
709709
return 0
710710

711711
def do_specification(self, args):
712-
"""Usage: specification classname
712+
''"""Usage: specification classname
713713
Show the properties for a classname.
714714
715715
This lists the properties for a given class.
@@ -756,7 +756,7 @@ def do_display(self, args):
756756
print _('%(key)s: %(value)s')%locals()
757757

758758
def do_create(self, args):
759-
"""Usage: create classname property=value ...
759+
''"""Usage: create classname property=value ...
760760
Create a new entry of a given class.
761761
762762
This creates a new entry of the given class using the property
@@ -821,7 +821,7 @@ def do_create(self, args):
821821
return 0
822822

823823
def do_list(self, args):
824-
"""Usage: list classname [property]
824+
''"""Usage: list classname [property]
825825
List the instances of a class.
826826
827827
Lists all instances of the given class. If the property is not
@@ -838,7 +838,7 @@ def do_list(self, args):
838838
if len(args) < 1:
839839
raise UsageError, _('Not enough arguments supplied')
840840
classname = args[0]
841-
841+
842842
# get the class
843843
cl = self.get_class(classname)
844844

@@ -850,7 +850,7 @@ def do_list(self, args):
850850

851851
if self.separator:
852852
if len(args) == 2:
853-
# create a list of propnames since user specified propname
853+
# create a list of propnames since user specified propname
854854
proplist=[]
855855
for nodeid in cl.list():
856856
try:
@@ -874,7 +874,7 @@ def do_list(self, args):
874874
return 0
875875

876876
def do_table(self, args):
877-
"""Usage: table classname [property[,property]*]
877+
''"""Usage: table classname [property[,property]*]
878878
List the instances of a class in tabular form.
879879
880880
Lists all instances of the given class. If the properties are not
@@ -968,7 +968,7 @@ def do_table(self, args):
968968
return 0
969969

970970
def do_history(self, args):
971-
"""Usage: history designator
971+
''"""Usage: history designator
972972
Show the history entries of a designator.
973973
974974
Lists the journal entries for the node identified by the designator.
@@ -989,7 +989,7 @@ def do_history(self, args):
989989
return 0
990990

991991
def do_commit(self, args):
992-
"""Usage: commit
992+
''"""Usage: commit
993993
Commit changes made to the database during an interactive session.
994994
995995
The changes made during an interactive session are not
@@ -1004,7 +1004,7 @@ def do_commit(self, args):
10041004
return 0
10051005

10061006
def do_rollback(self, args):
1007-
"""Usage: rollback
1007+
''"""Usage: rollback
10081008
Undo all changes that are pending commit to the database.
10091009
10101010
The changes made during an interactive session are not
@@ -1017,7 +1017,7 @@ def do_rollback(self, args):
10171017
return 0
10181018

10191019
def do_retire(self, args):
1020-
"""Usage: retire designator[,designator]*
1020+
''"""Usage: retire designator[,designator]*
10211021
Retire the node specified by designator.
10221022
10231023
This action indicates that a particular node is not to be retrieved
@@ -1041,7 +1041,7 @@ def do_retire(self, args):
10411041
return 0
10421042

10431043
def do_restore(self, args):
1044-
"""Usage: restore designator[,designator]*
1044+
''"""Usage: restore designator[,designator]*
10451045
Restore the retired node specified by designator.
10461046
10471047
The given nodes will become available for users again.
@@ -1064,7 +1064,7 @@ def do_restore(self, args):
10641064
return 0
10651065

10661066
def do_export(self, args, export_files=True):
1067-
"""Usage: export [[-]class[,class]] export_dir
1067+
''"""Usage: export [[-]class[,class]] export_dir
10681068
Export the database to colon-separated-value files.
10691069
To exclude the files (e.g. for the msg or file class),
10701070
use the exporttables command.
@@ -1139,7 +1139,7 @@ class colon_separated(csv.excel):
11391139
return 0
11401140

11411141
def do_exporttables(self, args):
1142-
"""Usage: exporttables [[-]class[,class]] export_dir
1142+
''"""Usage: exporttables [[-]class[,class]] export_dir
11431143
Export the database to colon-separated-value files, excluding the
11441144
files below $TRACKER_HOME/db/files/ (which can be archived separately).
11451145
To include the files, use the export command.
@@ -1154,7 +1154,7 @@ def do_exporttables(self, args):
11541154
return self.do_export(args, export_files=False)
11551155

11561156
def do_import(self, args):
1157-
"""Usage: import import_dir
1157+
''"""Usage: import import_dir
11581158
Import a database from the directory containing CSV files,
11591159
two per class to import.
11601160
@@ -1229,7 +1229,7 @@ class colon_separated(csv.excel):
12291229
return 0
12301230

12311231
def do_pack(self, args):
1232-
"""Usage: pack period | date
1232+
''"""Usage: pack period | date
12331233
12341234
Remove journal entries older than a period of time specified or
12351235
before a certain date.
@@ -1268,7 +1268,7 @@ def do_pack(self, args):
12681268
return 0
12691269

12701270
def do_reindex(self, args, desre=re.compile('([A-Za-z]+)([0-9]+)')):
1271-
"""Usage: reindex [classname|designator]*
1271+
''"""Usage: reindex [classname|designator]*
12721272
Re-generate a tracker's search indexes.
12731273
12741274
This will re-generate the search indexes for a tracker.
@@ -1292,7 +1292,7 @@ def do_reindex(self, args, desre=re.compile('([A-Za-z]+)([0-9]+)')):
12921292
return 0
12931293

12941294
def do_security(self, args):
1295-
"""Usage: security [Role name]
1295+
''"""Usage: security [Role name]
12961296
Display the Permissions available to one or all Roles.
12971297
"""
12981298
if len(args) == 1:
@@ -1332,7 +1332,7 @@ def do_security(self, args):
13321332

13331333

13341334
def do_migrate(self, args):
1335-
"""Usage: migrate
1335+
''"""Usage: migrate
13361336
Update a tracker's database to be compatible with the Roundup
13371337
codebase.
13381338

0 commit comments

Comments
 (0)