README.md
author rougeronj
Thu, 22 Jan 2015 09:26:43 +0100
changeset 111 a7b72620d227
parent 78 37bb8e326446
permissions -rw-r--r--
Add variable "wait". When this variable set, the annotsroll wait ignore some annotations, and wait before printing an otherone so there is no superposition. Can be passed as an options
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
# Mons software suite
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
78
37bb8e326446 add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
     4
- To create the virtualenv:
26
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
```
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
STATIC_DEPS=true pip install -r requirements.txt
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
```
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
78
37bb8e326446 add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    10
- Usage for export_annotations.py:
26
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
```
45
8d2fb4ec85d7 change example for annotation apis
ymh <ymh.work@gmail.com>
parents: 26
diff changeset
    13
python export_annotations.py -a http://localhost:8080/p/api/annotation -b http://localhost/~ymh/platform/ldtplatform/ -p  <project_guid> -E test -H ANNOT -v -v -s "2014-06-19T12:14:48+02" -R -P "{\"username\": \"<username>\",\"api_key\":\"<username api key>\"}"
26
ebfd0d3cffab Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
```
78
37bb8e326446 add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    15
37bb8e326446 add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    16
- Alembic usage
37bb8e326446 add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    17
  - upgrade: `alembic upgrade head`
37bb8e326446 add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    18
  - migrate an existing database : `alembic stamp 3c78152eb874` then `alembic upgrade head`
37bb8e326446 add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    19
  - Create empty database: launch application then `alembic stamp head`