Roberto Rosario
442bf5dc4b
Wrap storages
...
Wrap storages directly connected to file model fields to avoid
Django triggering a migration change when an attribute of the
storage is changed, like the location.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-28 00:22:49 -04:00
Roberto Rosario
8e69178e07
Project: Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This app name claves with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-12-05 02:04:20 -04:00
Roberto Rosario
da5445eef9
Rename the storages instance names for consistency.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-05 19:30:59 -04:00
Michael Price
424d6a5af9
Standardize the way storages are used. All apps that use storage now define their storages in the .storages modules instead of the .runtime module. The storage.backends.filebasedstorage.FileBasedStorage has been remove, instead Django's default storage is used and each app is responsible of specifying their default path.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-03 02:32:28 -04:00
Michael Price
53239385ae
Add the "to=" keyword argument to all ForeignKey, ManayToMany and OneToOne Fields.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:49:04 -04:00
Michael Price
de65d96fe2
Update cabinets and document_index api views docstrings. Update multi level docstrings as per Python best practices.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:27:45 -04:00
Michael Price
984e8a5b2c
Silence deprecation warning about default manager for child models. Reorganize model according to Mayan's best practices.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:25:32 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -04:00
Roberto Rosario
7a0c2224bb
Add model docstrings.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-04-25 14:21:30 -04:00
Roberto Rosario
09b71144b6
Add support for signing documents from the UI. Mayan EDMS is now in the major leagues :)
2016-03-30 03:47:58 -04:00
Roberto Rosario
b9d75e525f
Convert the signature download view to CBV and add corresponding test.
2016-03-29 05:12:04 -04:00
Roberto Rosario
c1cb983869
Just display the signature type to conserve UI space.
2016-03-28 14:57:19 -04:00
Roberto Rosario
fa1450fe5a
PEP8 cleanups.
2016-03-27 03:27:56 -04:00
Roberto Rosario
5de63c4477
Add support for verifying and unverifying signatures after a key is added or deleted.
2016-03-26 04:23:16 -04:00
Roberto Rosario
355190e919
Start of document_signatures app refactor.
2016-03-25 04:07:57 -04:00
Roberto Rosario
c8f7c4ef86
Update document signature app to work with new django_gpg changes.
2016-03-23 19:57:45 -04:00
Roberto Rosario
1e746c700a
PEP8 cleanups.
2015-07-27 23:53:14 -04:00
Roberto Rosario
d5b5927c77
Reference file in storage backend by name and not by path.
2015-07-13 02:03:30 -04:00
Roberto Rosario
e891fe9525
PEP8 cleanups and code style cleanups.
2015-07-10 17:19:36 -04:00
Roberto Rosario
333c9c9b1a
Document signatues app uses it's own storage backend.
2015-07-08 02:54:14 -04:00
Roberto Rosario
1e02b4dadf
Don't check for embedded signature on save.
2015-06-05 00:58:08 -04:00
Roberto Rosario
0db6a4fdef
Remove lambdas from models, they are not serializable. Add remaining migrations. Issue #33
2015-03-30 05:34:50 -04:00
Roberto Rosario
d59ea3ede2
Add from __future__ import unicode_literals, issue #37
2015-01-19 04:06:40 -04:00
Roberto Rosario
6b6c38832c
Fix lambda argument definition
2015-01-03 23:58:00 -04:00
Roberto Rosario
6796ce8b49
Remove configurability of the document and document signatures UUID function
2014-11-05 00:18:34 -04:00
Roberto Rosario
11382caa9e
upload_to passes two arguments, we don't use them but have to allow them
2014-10-30 15:58:13 -04:00
Roberto Rosario
c8139f22d7
Remove the get_filename_from_uuid helper function
2014-10-30 15:00:38 -04:00
Roberto Rosario
06dd1b3368
Issue #39 , Explicitly captalize string now that they are not capitalized blindly by the templates
2014-10-02 01:17:27 -04:00
Roberto Rosario
75266c7c31
Update the documents app and the document_signatures app to use the new method of loading backends
2014-07-03 17:32:32 -04:00
Roberto Rosario
ec1745b50b
Initial changes to support the new Django 1.6 project structure
2014-06-15 13:13:21 +02:00