Mercurial > p > roundup > code
comparison doc/upgrading.txt @ 3130:7308c3c5a943
docs editing from Jean Jordaan
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 12 Feb 2005 00:47:33 +0000 |
| parents | 15620de288b1 |
| children | 34d034a4c0d9 |
comparison
equal
deleted
inserted
replaced
| 3127:021b131bd816 | 3130:7308c3c5a943 |
|---|---|
| 62 | 62 |
| 63 The ``dbinit.py`` file has been split into two new files, | 63 The ``dbinit.py`` file has been split into two new files, |
| 64 ``initial_data.py`` and ``schema.py``. The contents of this file are: | 64 ``initial_data.py`` and ``schema.py``. The contents of this file are: |
| 65 | 65 |
| 66 ``initial_data.py`` | 66 ``initial_data.py`` |
| 67 You don't need on of these as your tracker is already initialised. | 67 You don't need one of these as your tracker is already initialised. |
| 68 | 68 |
| 69 ``schema.py`` | 69 ``schema.py`` |
| 70 The contents of the ``def open(name=None):`` function go in this file. | 70 Copy the body of the ``def open(name=None)`` function from your old |
| 71 | 71 tracker's ``dbinit.py`` file to this file. As the lines you're copying |
| 72 Copy the lines of that function (down to the next ``def`` statement) from | 72 aren't part of a function definition anymore, one level of indentation |
| 73 the ``dbinit.py`` file and *remove* the leading four spaces on each line | 73 needs to be removed (remove only the leading four spaces on each |
| 74 (if there's 8 leading spaces, only remove 4). | 74 line). |
| 75 | 75 |
| 76 Remove the first few lines - those starting with ``from roundup.hyperdb | 76 The first few lines -- those starting with ``from roundup.hyperdb |
| 77 import ...`` and the ``db = Database(config, name)`` line. | 77 import ...`` and the ``db = Database(config, name)`` line -- don't |
| 78 | 78 need to be copied. Neither do the last few lines -- those starting |
| 79 Remove the last few lines starting with ``import detectors`` down to | 79 with ``import detectors``, down to ``return db`` inclusive. |
| 80 ``return db`` inclusive. | |
| 81 | 80 |
| 82 There's a new way to write extension code for Roundup - the old | 81 There's a new way to write extension code for Roundup - the old |
| 83 ``interfaces.py`` file will be ignored. See the `customisation | 82 ``interfaces.py`` file will be ignored. See the `customisation |
| 84 documentation`_ for information about how extensions are now written. | 83 documentation`_ for information about how extensions are now written. |
| 85 | 84 |
