Commit Graph

174 Commits

Author SHA1 Message Date
Roberto Rosario
1c2a89e3e8 Fix cleaned_filename document property 2012-05-21 10:47:45 -04:00
Roberto Rosario
a697b74157 Update apps to flag edited documents as dirty 2012-04-12 02:05:49 -04:00
Roberto Rosario
007b8c10ab Make documents dirty when edited 2012-04-11 21:43:59 -04:00
Roberto Rosario
e3505d05ec Add extension_split and cleaned_filename to the Document class 2012-04-11 01:57:08 -04:00
Roberto Rosario
021c75c665 Add a content producing method to the document version and document class 2012-04-05 23:43:10 -04:00
Roberto Rosario
84c47d4ab6 Merge branch 'release/v0.12'
Conflicts:
	apps/documents/models.py
	apps/history/api.py
	apps/ocr/__init__.py
2012-02-27 12:57:11 -04:00
Roberto Rosario
614906e6f6 Add document and document version filename rename model method 2012-02-14 16:17:12 -04:00
Roberto Rosario
c0d8e6f667 Move the RecentDocumentManager to the models.py file
To be able to return a QuerySet and not a list of recent documents
2012-02-05 23:27:03 -04:00
Roberto Rosario
2be02b2e01 Remove db_index from TextField class fields, this closes issue #12 2012-02-04 13:22:12 -04:00
Roberto Rosario
8a5d0425b6 PEP8 cleanups, style cleanups, unused imports 2012-01-18 13:52:19 -04:00
Roberto Rosario
6a8c86b0a4 Add _post_save_hooks support to the DocumentVersion class 2012-01-03 06:54:34 -04:00
Roberto Rosario
7f66a5fad3 Remove remarked code 2012-01-02 07:23:34 -04:00
Roberto Rosario
34311fb17e Cleanups, permissions separation into explicit module, absolute import update 2012-01-02 03:48:26 -04:00
Roberto Rosario
51464c910b Move more signature functionality to the document signature app 2011-12-31 03:26:25 -04:00
Roberto Rosario
3705007330 Move comments and tags manager statements to their respective apps 2011-12-31 00:22:20 -04:00
Roberto Rosario
c2419e63df Move document signature handling to the new document signature app 2011-12-25 16:08:03 -04:00
Roberto Rosario
4c86a9823a Remove db_index from TextField class fields, this closes issue #12 2011-12-13 13:00:19 -04:00
Roberto Rosario
5f3656c43f Call the correct gpg method 2011-12-07 04:23:02 -04:00
Roberto Rosario
6bf8a3df10 Fix document delete regresion 2011-12-07 04:22:34 -04:00
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