added more documentation for import command and todos in the readme
authordurandn
Fri, 16 Dec 2016 13:24:55 +0100
changeset 287 959cbaad2076
parent 286 118756839a8a
child 288 9273f1f2c827
added more documentation for import command and todos in the readme
src/README.md
src/iconolab/management/commands/importimages.py
--- a/src/README.md	Fri Dec 16 12:45:48 2016 +0100
+++ b/src/README.md	Fri Dec 16 13:24:55 2016 +0100
@@ -140,3 +140,30 @@
  --delimiter: the delimiter for the csv file. For special ascii characters add a # before the code. Supported special chars are 9 (tab), 29 (Group separator), 30 (Record separator), 31 (Unit separator)
  --encoding: the encoding provided if the csv is not in utf-8. Exemple: 8859 for ISO-8859
  --collection-id: the id of the collection to import into, it must already exist
+
+ 
+ ## TO-DOs
+ 
+ * Add a stat object for items with the following stats (at least?)
+ 	- contributors_count
+ 	- annotations_count
+ 	- comments_count
+ 	- contribution_calls_count
+ 	
+ * Annotation validation: there is an example handler in signals/handler.py for validation an annotation
+ 
+ * Admin interface: add a way to extract data for one or more annotation as .csv
+ 
+ * Django admin:
+ 	- Search annotation/item/image by guid
+ 	- More complete infos per row for object lists
+ 
+ * History view: to be able to visualize the history of a given annotation
+ 
+ * Zoomed images:	
+ 	- Zoomed images on annotation pages and item list pages (thumbnail sizes must be sorted out to be pre-generated for the list pages)
+ 
+ * Fragment editor:
+ 	- Identify usability issues
+ 	- Rectangle selection as default
+ 	- Add a way to define two or more shapes for one fragment 
\ No newline at end of file
--- a/src/iconolab/management/commands/importimages.py	Fri Dec 16 12:45:48 2016 +0100
+++ b/src/iconolab/management/commands/importimages.py	Fri Dec 16 13:24:55 2016 +0100
@@ -99,7 +99,7 @@
             4) For each item:
                 We create the object in the database
                 * Metadatas are extracted from the filtered_csv_data using the pivot identifiers from settings.IMPORT_FIELD_DICT
-                We copy/convert the image into the MEDIA_ROOT/uploads/ dir
+                We copy/convert the image into the MEDIA_ROOT/uploads/ dir: thumbnails size listed in settings.PREGENERATE_THUMBNAIL_SIZES are pre-generated for each image
                 
             Note: each unused row and each unused image in the import folder is kept track of in no_data_images, no_image_rows and duplicate_rows lists and logged at the end of the command.
         """