| author | durandn |
| Wed, 08 Apr 2015 12:59:07 +0200 | |
| changeset 65 | 8cb54dcf4d60 |
| parent 62 | 746d486f7c42 |
| permissions | -rw-r--r-- |
|
10
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
1 |
# Catedit |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
2 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
3 |
This document will present the structure of the project and dev environment, the different steps to setup a CatEdit server, and what is needed to run it. |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
4 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
5 |
### The dev environment |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
6 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
7 |
** Vagrant + Puppet : ** |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
8 |
After cloning the project repository, you will find a [readme](dev/Puppet_Readme.md) file for Vagrant and Puppet in the /dev folder. Most of the setup of CatEdit dev environment happens in the /dev folder with the exception of the python plugin list located in /virtualenv/requirements.txt |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
9 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
10 |
** Project structure : ** |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
11 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
12 |
Here is the structure of the project directory: |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
13 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
14 |
* /dev/ has all the puppet/vagrant files and scripts to set up dev environment |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
15 |
* /src/catedit/ contains the source files |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
16 |
* /src/catedit/static/ contains the static files (js, css ...) |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
17 |
* /src/catedit/template/ contains the html templates |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
18 |
* /virtualenv/ contains the list of python packages |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
19 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
20 |
### How to setup a server |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
21 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
22 |
** Github config : ** You need a working github repository to use the application. The best way to do this is to have an app admin Github account that will handle all the repository administration. Aside from a working repository, you also need to register the app on github. To do this, you just have to go to your Github settings/applications and register a new application. You will need the "client ID" and "client secret" Github will generate for setting up the config.py file later. |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
23 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
24 |
As this app works using the Github API, all the users must have a Github account to edit categories. The users must also be added as collaborators to the categories repository by the repository owner you defined. |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
25 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
26 |
** Setting up config.py : ** |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
27 |
In the /src/catedit/ folder, you will find a config.py.tmpl. This file is the template of a mandatory config.py file that is used to set up the config of the application. Here are the values you can change in it: |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
28 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
29 |
* HOST : The host on which the app will run, default is "0.0.0.0" for development purpose as "localhost" won't work with vagrant and windows. |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
30 |
* LOGGING : Wether or not the app write log files |
|
12
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
10
diff
changeset
|
31 |
* LOGGING_LEVEL : if LOGGING is True, indicates what logging level will be used |
|
10
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
32 |
* DEBUG : Wether or not the app is on debug mode. If True, then each modification of a given file will restart the server allowing for easy development. |
|
12
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
10
diff
changeset
|
33 |
* SECRET_KEY : Secret key to secure WTForms |
|
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
10
diff
changeset
|
34 |
* PERSISTENCE_METHOD : What Persistence method will be used. Currently, either "PersistenceToFile" or "PersistenceToGithub" |
|
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
10
diff
changeset
|
35 |
* FILE_SAVE_DIRECTORY : If using PersistenceToFile, directory where the turtle files will be saved locally |
|
10
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
36 |
* REPOSITORY_NAME : The name of the repository your app will use to store categories |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
37 |
* REPOSITORY_OWNER : The name of the owner of the repository (typically a "admin" user) |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
38 |
* CATEGORIES_PATH : Where on the repository categories will be stored. Default to /categories |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
39 |
* GITHUB_CLIENT_ID : The client ID Github gave you when you registered the app |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
40 |
* GITHUB_CLIENT_SECRET : The client secret Github gave you when you registered the app |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
41 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
42 |
Once you have set up all the constants you need, save the file as config.py in the /src/catedit folder. |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
43 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
44 |
** Starting up the server ** |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
45 |
: Once you have a config.py file ready, you can start the server by running the following command from the /src/catedit folder: |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
46 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
47 |
python main.py |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
48 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
49 |
## Additional/Advanced informations ## |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
50 |
|
|
62
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
51 |
** Changing the property list : ** If you want to change the default property list available to users editing/creating categories, you have to edit the following entry in config.py |
|
10
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
52 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
53 |
* PROPERTY_LIST : My list of properties ... |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
54 |
|
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
55 |
The list of property has a fixed structure. The property list is a dict of python dicts, each following the fixed structure: |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
56 |
|
|
62
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
57 |
"propertyURI" : { |
|
10
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
58 |
"descriptive_label_fr" : "mylabelfr", |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
59 |
"descriptive_label_en" : "mylabelen", |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
60 |
"object_type": "my-object-type", |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
61 |
"rdflib_class": some-RDFLib-concept, |
|
62
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
62 |
"usable_in_editor: boolean so the property appears or not in the editor |
|
10
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
63 |
} |
|
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
64 |
|
|
62
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
65 |
* "propertyURI" is the complete URI of the property, for a rdflib property that will be the string you get when calling NAMESPACE.property.toPython() |
|
10
7d016d52be36
Added Readme.md, cleaned up config.py.tmpl and settings.py, started working on comparing categories (unfinished) in utils.py
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
66 |
* "object_type" : "my-object-type", -> either "literal", "uriref-category" or "uriref-link" at the moment |
|
62
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
67 |
* "usable_in_editor": if true, the property will appear in the editor and users will be able to apply it to categories, if false they won't be able to. |
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
68 |
* "rdflib_class" : some-RDFLib-concept, -> a rdflib namespaced property with its namespace, examples: SKOS.related or RDF.Type representing the predicate |
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
69 |
|
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
70 |
** Custom property list ** |
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
71 |
|
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
72 |
To setup a custom set of property you need to add a properties/properties.json file in the repository that has 2 values: |
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
73 |
* namespace_title is the string that defines the namespace of your custom properties for this repository (not really used right now but will be useful in the future) |
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
74 |
* property_list is a dict that follows the exact same format as the config.py property list, of course in json format, so the propertyURI that is used as a key must be written explicitely |
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
75 |
|
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
61
diff
changeset
|
76 |
If you make the property list evolve, don't forget to keep the old properties you don't want your users to use anymore to ensure backward compatibility. You just need to set the "usable_in_editor" key to false in the property you don't want your users to have access to. Note this won't affect existing categories with this property, but only ensure that they will be readable. Then it's up to the users to "clean up" if a deprecated property is still used. |
|
61
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
77 |
|
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
78 |
## Testing Protocol for CatEdit (development) ## |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
79 |
|
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
80 |
These tests are meant to be run alongside unit tests (that are not completely implemented yet) to test that everything (and specifically Javascript) works properly. |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
81 |
|
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
82 |
Make sure to work on catedit-dev-testing-2, this repository is only used for development tests to reduce GitHub notification spam for other users. (For the record, catedit-dev-testing is used for other users to test CatEdit functionalities as a whole) |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
83 |
|
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
84 |
Create and submit 3 categories: toEdit, toDelete, and doNotTouch. doNotTouch must have a "related to" property with "toDelete". Add at least one "link"-type property (resource for instance) and one "text"-type property to test if every type of property. Double-check with the property list in your config.py to check that every property appears on the editor and is correctly configured. |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
85 |
|
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
86 |
Then, edit the toEdit category and delete the toDelete category. Submit changes and check that comment thread for your submission is created and detected by CatEdit. Add a test comment. Check that doNotTouch isn't related to toDelete anymore (as toDelete was deleted). Also check that the changeset comment thread page also shows you to the repository state before your changes, after your changes, and to all the changes you made. |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
87 |
|
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
88 |
Create a discussion called "discussion test CatEdit dd/mm/yy" and add a test comment. |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
89 |
|
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
90 |
Also test that the button "delete all changes" work properly. |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
91 |
|
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
92 |
Test the javascript on Firefox, Chrome and Safari: |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
93 |
* In the editor, the right fields are generated according to the property type, the property are added to the list when you click the "add property" button, and it is possible to delete each property separately |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
94 |
* In every page that has a category list, the + and - button displays category details properly, and you can hide or show the whole table using the ^ button. The trahsbin and x buttons display a delete confirmation message with the button to delete category or change |
|
018094c40453
Edited Readme to include a testing protocol for CatEdit
durandn
parents:
12
diff
changeset
|
95 |
* In a changeset page you can hide and show the previous and current state of the category set, and you can hide and show the changes that were made. |