Skip to content

Commit e90ee92

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 0820c25 commit e90ee92

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

doc/admin_guide.txt

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Administration Guide
33
====================
44

5-
:Version: $Revision: 1.15.2.2 $
5+
:Version: $Revision: 1.15.2.3 $
66

77
.. contents::
88

@@ -163,6 +163,8 @@ Maintenance of Roundup can involve one of the following:
163163
2. `software upgrade`_
164164
3. `migrating backends`_
165165
4. `moving a tracker`_
166+
5. `migrating from other software`_
167+
6. `adding a user from the command-line`_
166168

167169

168170
Tracker Backup
@@ -255,6 +257,54 @@ moved using the above steps) then you'll need to:
255257
6. start the tracker web and email frontends on the new machine.
256258

257259

260+
Migrating From Other Software
261+
-----------------------------
262+
263+
You have a couple of choices. You can either use a CSV import into Roundup,
264+
or you can write a simple Python script which uses the Roundup API
265+
directly. The latter is almost always simpler -- see the "scripts"
266+
directory in the Roundup source for some example uses of the API.
267+
268+
"roundup-admin import" will import data into your tracker from a
269+
directory containing files with the following format:
270+
271+
- one colon-separated-values file per Class with columns for each property,
272+
named <classname>.csv
273+
- one colon-separated-values file per Class with journal information,
274+
named <classname>-journals.csv (this is required, even if it's empty)
275+
- if the Class is a FileClass, you may have the "content" property
276+
stored in separate files from the csv files. This goes in a directory
277+
structure::
278+
279+
<classname>-files/<N>/<designator>
280+
281+
where ``<designator>`` is the item's ``<classname><id>`` combination.
282+
The ``<N>`` value is ``int(<id> / 1000)``.
283+
284+
285+
Adding A User From The Command-Line
286+
-----------------------------------
287+
288+
The ``roundup-admin`` program can create any data you wish to in the
289+
database. To create a new user, use::
290+
291+
roundup-admin create user
292+
293+
To figure out what good values might be for some of the fields (eg. Roles)
294+
you can just display another user::
295+
296+
roundup-admin list user
297+
298+
(or if you know their username, and it happens to be "richard")::
299+
300+
roundup-admin find username=richard
301+
302+
then using the user id you get from one of the above commands, you may
303+
display the user's details::
304+
305+
roundup-admin display <userid>
306+
307+
258308
Running the Servers
259309
===================
260310

0 commit comments

Comments
 (0)