Search found 38 matches

by lsmoker
Mon Aug 01, 2022 12:48 pm
Forum: General topics
Topic: Removing a SourceColumn
Replies: 2
Views: 97

Re: Removing a SourceColumn

Thanks for this!
by lsmoker
Mon Aug 01, 2022 12:43 pm
Forum: General topics
Topic: Download link in dashboard widget
Replies: 2
Views: 98

Re: Download link in dashboard widget

Thanks!
by lsmoker
Thu Jul 21, 2022 7:24 pm
Forum: General topics
Topic: Removing a SourceColumn
Replies: 2
Views: 97

Removing a SourceColumn

Is there a way to remove SourceColumns? I've added some, but I'd also like to remove mimetype and encoding from the DocumentFile view.
by lsmoker
Fri Jul 15, 2022 7:58 pm
Forum: Issues or Errors
Topic: "Recently created" widget permission?
Replies: 1
Views: 45

"Recently created" widget permission?

Is it intended that this widget will not list any documents if the user's role does not have "permission_document_type_view"? Clicking "View details" will show the documents. It seems odd, but I might be missing something. The code is here -> https://gitlab.com/mayan-edms/mayan-e...
by lsmoker
Tue Jul 12, 2022 3:47 pm
Forum: General topics
Topic: Download link in dashboard widget
Replies: 2
Views: 98

Download link in dashboard widget

I have hacked a way to add a document download link to a dashboard widget (Recently accessed, for instance), but I'm sure there is a better way to do it... I've added this to the my_overrides/apps.py file: SourceColumn( func=lambda context: mark_safe( '<a href=' + reverse( viewname='documents:docume...
by lsmoker
Wed Feb 09, 2022 8:12 pm
Forum: General topics
Topic: Document Content Empty
Replies: 17
Views: 24131

Re: Document Content Empty

I have a fix for the above error, but first here's the workaround to allow the content to be generated/saved for non-PDF documents (which exposes the error). This would be added to your custom apps.py: # adding this makes the "Content" appear for these mimetypes/formats from mayan.apps.doc...
by lsmoker
Tue Feb 08, 2022 6:37 pm
Forum: General topics
Topic: Document Content Empty
Replies: 17
Views: 24131

Re: Document Content Empty

There's an error that occurs with my workaround that forces parsing of all mimetypes. The error is: AttributeError: '_GeneratorContextManager' object has no attribute 'read' at: https://gitlab.com/mayan-edms/mayan-edms/-/blob/master/mayan/apps/document_parsing/parsers.py#L130 I traced this back furt...
by lsmoker
Thu Feb 03, 2022 1:24 pm
Forum: General topics
Topic: Document Content Empty
Replies: 17
Views: 24131

Re: Document Content Empty

This problem still exists in 4.1.4. It arises here -> https://gitlab.com/mayan-edms/mayan-edms/-/blob/master/mayan/apps/document_parsing/parsers.py#L40 The only registered mimetype for parsing is 'application/pdf', but the document_file's mimetype is 'application/vnd.openxmlformats-officedocument.wo...
by lsmoker
Tue Jun 22, 2021 12:49 pm
Forum: General topics
Topic: upgrade process using docker-compose
Replies: 3
Views: 1606

Re: upgrade process using docker-compose

PostgreSQL is now our recommended database manager
Whoa. What does this mean for MySQL/MariaDB?
by lsmoker
Fri Jun 11, 2021 1:52 pm
Forum: Issues or Errors
Topic: DocumentVersion timestamp updated during migration 4.0.5/pip install
Replies: 2
Views: 477

DocumentVersion timestamp updated during migration 4.0.5/pip install

When migrating my db (mariadb) from 2.7.4 to 4.0.5, the timestamp field in the DocumentVersion model is updated to the current app server time. Is this intentional? It means that I lose the date that a document version was really created in the 2.7.4 version of mayan. Having the original date is ver...