From: olivier Date: Fri, 13 Jun 2008 15:02:20 +0000 (+0000) Subject: converted import README files to reST X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=65e5edfc6d51ac078e3b0b5c0bc29a8c5e24b88a;p=telemeta-data.git converted import README files to reST git-svn-id: http://svn.parisson.org/svn/crem@27 3bf09e05-f825-4182-b9bc-eedd7160adf0 --- diff --git a/import/README b/import/README index 1fbd09c..7b6f193 100644 --- a/import/README +++ b/import/README @@ -1,10 +1,13 @@ -CREM data import -================ -* prototype : this directory contains scripts to perform an experimental +========================================== +CREM data import instructions and programs +========================================== + +* ``prototype`` : this directory contains scripts to perform an experimental import of the CREM database into Telemeta 0.3.x. It is only meant as a proof of concept. -* raw_conversion : instructions and scripts to perform a full raw conversion +* ``raw_conversion`` : instructions and scripts to perform a full raw conversion of the CREM database from 4D to MySQL. The result has the same structure as the original 4D database, and, as such, can't be used directly in Telemeta. + diff --git a/import/prototype/README b/import/prototype/README index b26fb7c..88c4a14 100644 --- a/import/prototype/README +++ b/import/prototype/README @@ -1,28 +1,32 @@ -== CREM data and how to import it into Telemeta 0.3.x == +================================================== +CREM data and how to import it into Telemeta 0.3.x +================================================== Warning: the following instructions allow you to import the CREM's data into telemeta. However, it is currently a rather data destructive process, only meant for demonstration and testing purpose. Do not use this in a production environment. -1 - Install Telemeta upon MySQL. Initialize the database using Telemeta's -Django models. Ensure that everything is running fine before going any -further. +1. Install Telemeta upon MySQL. Initialize the database using Telemeta's + Django models. Ensure that everything is running fine before going any + further. -2 - Run prepare on the source directory. The source directory must contain -text files as they were exported from the 4D database. These files are -expected to be gzipped. +2. Run prepare on the source directory. The source directory must contain + text files as they were exported from the 4D database. These files are + expected to be gzipped. -Example: -$ scripts/prepare src/2007-05-09 + Example:: -3 - Use the import.sql script to insert the data into your MySQL database. + $ scripts/prepare src/2007-05-09 -Example: -$ mysql your_telemeta_database < scripts/import.sql +3. Use the import.sql script to insert the data into your MySQL database. -4 - Copy the WAV test file of your choice, into /items/test.wav -This single file is associated with all media items, for testing purpose. + Example:: + + $ mysql your_telemeta_database < scripts/import.sql + +4. Copy the WAV test file of your choice, into /items/test.wav + This single file is associated with all media items, for testing purpose. That should be it. If you want to run Telemeta against SQLite instead of MySQL, first follow the above instructions to import the data into MySQL.