Commit Graph

155 Commits

Author SHA1 Message Date
Roberto Rosario
11edaaf4e7 Added signature file to the document model and the related method to add, verify and open the signature file 2011-12-06 01:49:45 -04:00
Roberto Rosario
2b6530d9d3 Use cStringIO whenever possible 2011-12-05 22:49:24 -04:00
Roberto Rosario
f5211313b7 Dont fetch public keys when creating document version 2011-12-05 13:35:15 -04:00
Roberto Rosario
292d3ffc3d Dont import deprecated 'get_encoding', simplify decrypted data encapsulation 2011-12-05 07:28:02 -04:00
Roberto Rosario
a32b92b5fc Add signature state field to the Document model, update it whenever a new version is added, use it to return the raw or the decrypted content when calling the open method 2011-12-05 06:54:41 -04:00
Roberto Rosario
f5c3fa21d7 Add a size property to the DocumentVersion model 2011-12-04 02:44:08 -04:00
Roberto Rosario
64e73a9c9d Update the 'invalidate_cached_image' to supply a version pk as now required by the version aware 'get_cached_image_name' method 2011-12-04 02:20:44 -04:00
Roberto Rosario
7de09aae0f Add version support to the document image generation code 2011-12-04 02:00:04 -04:00
Roberto Rosario
c3eaacb6c6 Make document date_added not editable, fix document version delete method, add revert method to document version 2011-12-04 01:10:10 -04:00
Roberto Rosario
43b17456d1 Remove the auto_add_now property from the date_added document field 2011-12-03 23:42:29 -04:00
Roberto Rosario
4bbf5d3514 Add 'siblings' convenience method to the DocumentPage model 2011-12-03 20:43:30 -04:00
Roberto Rosario
a3befc6b7d Remove remarked code 2011-12-03 20:09:44 -04:00
Roberto Rosario
11725c943b Update documents app to support multiple versions 2011-12-03 19:35:03 -04:00
Roberto Rosario
3e471f702e Add document version list view and document version download 2011-12-02 05:54:00 -04:00
Roberto Rosario
d83e8b5428 Initial set of model, form and API changes to support document versions 2011-12-02 02:51:59 -04:00
Roberto Rosario
da1ab56202 Add maintenace view to clear the document image cache 2011-12-01 05:24:31 -04:00
Roberto Rosario
394762047a Fix documents not saving the file encoding 2011-11-30 20:04:29 -04:00
Roberto Rosario
f554655688 Updated documents app admin, model and view modules to use the merged
filename and extension
2011-11-30 08:54:37 -04:00
Roberto Rosario
b5a1f92a9c Added support for base64 encoded document images 2011-11-22 07:51:16 -04:00
Roberto Rosario
3f33924d4a Updated document mode to pass the document mimetype when calling convert to avoid a chain of mimetype detections 2011-11-21 06:24:19 -04:00
Roberto Rosario
a9d211f32f Added size and page_count properties to the document model 2011-11-21 05:40:41 -04:00
Roberto Rosario
b6ccb20988 Only allow clickable thumbnails for document with a valid image 2011-11-07 02:06:33 -04:00
Roberto Rosario
557c960094 Updated python converter backend, document model and staging module to use the new get_mimetype API 2011-11-07 00:05:25 -04:00
Roberto Rosario
0a2591d58f Removed unused import, PEP8 cleanups 2011-08-12 02:13:23 -04:00
Roberto Rosario
066065ccab Implemented document file delete method on Document delete (Needed by Django 1.3) 2011-08-05 21:31:58 -04:00
Roberto Rosario
beea100cd9 Updated the get_page_count logic to let the converter raise UnknownFileFormat
and let the document model handle the exception, defaulting to one page
count and saving a comment on the document description
2011-08-05 03:48:51 -04:00
Roberto Rosario
cd0b1577a7 Renamed the exception UnknownFormat to UnkownFileFormat and updated all
backends get_page_count method to raise it, having the api's get_page_count
function decide how to handle the exception
2011-08-05 03:24:01 -04:00
Roberto Rosario
b64f98b667 Merged document upload code and moved it to the model, improved method of handling compressed file 2011-07-29 05:01:50 -04:00
Roberto Rosario
80bb9810f1 Just display a document page transformation shot name (exclude the document page name) 2011-07-25 05:03:51 -04:00
Roberto Rosario
e94e9407ec Added invalidate_cached_image function for document models instances, remove duplication 2011-07-25 03:42:17 -04:00
Roberto Rosario
39010d7653 Don't translate argument in help text example 2011-07-25 03:00:06 -04:00
Roberto Rosario
48adc6d113 Migrate document source transformation validation solution to document page transformation 2011-07-25 02:51:19 -04:00
Roberto Rosario
f589da84fd Added new mimetype app to handle mimetype guessing and provide mimetype related icons when a preview is not available 2011-07-22 03:42:16 -04:00
Roberto Rosario
90e876ca93 Code cleanup 2011-07-21 11:46:15 -04:00
Roberto Rosario
d202d23862 Merge branch 'smart_staging' into master_merge_test
Conflicts:
	apps/common/__init__.py
	requirements/development.txt
	requirements/production.txt
2011-07-21 03:55:21 -04:00
Roberto Rosario
c55dd90c88 Moved document preview generation to model, implmented pre caching 2011-07-21 03:47:31 -04:00
Roberto Rosario
5829bbde4d Added per OCR queue transformation models and CRUD views to replace the CONVERTER_OCR_OPTIONS with the new refactored converter transformations systems 2011-07-17 01:32:46 -04:00
Roberto Rosario
0fe032f7c9 Finished fixing new document transformations 2011-07-16 01:09:36 -04:00
Roberto Rosario
743ae0fce0 Initial commit of the converter image transformation refactor 2011-07-15 06:16:14 -04:00
Roberto Rosario
415f0c8daa Refactored the converter backend system 2011-07-13 22:53:33 -04:00
Roberto Rosario
1e944c7130 Initial commit of document source transformations 2011-07-08 15:30:52 -04:00
Roberto Rosario
841b02c969 Use python-magic to determine a document's mimetype otherwise fallback to use python's mimetypes library 2011-07-07 21:38:36 -04:00
Roberto Rosario
0fa1e0c706 Moved get_metadata_string Document class method to the metadata app 2011-07-02 00:44:12 -04:00
Roberto Rosario
bafda3f7ad Updated document page model to display the current page number in relation to the total page count 2011-06-28 01:05:11 -04:00
Roberto Rosario
604ef90f79 Implementes an advanced search feature, which allows for individual field terms 2011-06-22 00:47:37 -04:00
Roberto Rosario
de28122c66 Spanish translation updates 2011-06-20 13:44:38 -04:00
Roberto Rosario
b1b68bda67 Added meta informartion to the document type model and ordering information [a-z] 2011-06-12 15:12:12 -04:00
Roberto Rosario
b04a681422 blank=True is not enough to make models.ForeignKey optional, adding null=True too, thanks to Brian Huxley for finding this one 2011-06-12 12:44:47 -04:00
Roberto Rosario
12d3ec4ed5 Added comments documenting some methods 2011-05-30 22:59:14 -04:00
Roberto Rosario
39da4d2e6b Recompose the document filename using os.extsep.join 2011-05-30 22:45:56 -04:00