agritheory / cloud_storage Goto Github PK
View Code? Open in Web Editor NEWS3 protocol storage for Frappe Applications - compatible with S3, Backblaze and DO Spaces
Home Page: https://agritheory.com/documentation/cloud_storage
License: Other
S3 protocol storage for Frappe Applications - compatible with S3, Backblaze and DO Spaces
Home Page: https://agritheory.com/documentation/cloud_storage
License: Other
The use case for making a date/doctype/docname flavor of S3 path has multiple issues:
Switch to using the name
of the File record
Allow configuration of file path with a hookable function in case there's a customer reason to customize this (for example an FTP integration)
The time expiry feature should be configurable
Rendering this as PDF in memory and serving that file for preview is likely an acceptable strategy
# hooks.py
override_whitelisted_methods = {
"share": "cloud_storage.cloud_storage.overrides.file.share?key={path}",
"retrieve": "cloud_storage.cloud_storage.overrides.file.retrieve?key={path}",
}
https://github.com/hujiulong/vue-3d-model
We should be able to support all of these file types: dae, fbx, gltf, obj, ply, stl
Document sharing link feature in File doctype
CustomFile => CloudStorageFile
For a ready to publish app, we want to have ready
Traceback:
If you test sending emails with an attachment, you get the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/api/method/retrieve?key=attachments-new/Task/20230410 PO Report/xzCckWS.png'
File "frappe/utils/background_jobs.py", line 160, in execute_job
method(**kwargs)
File "frappe/email/doctype/email_queue/email_queue.py", line 183, in send_mail
record.send(is_background_task=is_background_task, smtp_server_instance=smtp_server_instance)
File "frappe/email/doctype/email_queue/email_queue.py", line 134, in send
message = ctx.build_message(recipient.recipient)
File "frappe/email/doctype/email_queue/email_queue.py", line 293, in build_message
message = self.include_attachments(message)
File "frappe/email/doctype/email_queue/email_queue.py", line 348, in include_attachments
fcontent = _file.get_content()
File "frappe/core/doctype/file/file.py", line 441, in get_content
with open(file_path, mode="rb") as f:
Context:
Initially, attachments can be viewed normally by clicking on their links in the top-left Attachments section.
After trying to send one of them via email, clicking on the attachment link again generates this error:
Move test dependencies to dev dependencies section
[replace this block with a checklist of changes collected in test_utils]
Shared With case:
We want to add another if block here to check if the file itself has been shared with anyone and to validate that with frappe.session.user
.
Folder Shared With case:
Check if the parent folder has been explicitly shared with frappe.session.user. If there are no shared_with
users, recursively check the parent folder until a shared_with
value is found, and if frappe.session.user
is present, otherwise deny.
Goal: Allow version control of files using Frappe and a cloud storage platform
Variables:
1. New filename, new hash
2. Existing filename, new hash
3&4. New/existing filename, existing hash
5. Rename file
Using a separate API, generate a sharing link for files, that subsequently calls the retrieve API.
Allow logged in users and/or sharing link/token pair to file drop via portal - needs to be configurable
version-14
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can fix this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the version-14
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here are some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
An npm token must be created and set in the NPM_TOKEN
environment variable on your CI environment.
Please make sure to create an npm token and to set it in the NPM_TOKEN
environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/
.
Good luck with your project β¨
Your semantic-release bot π¦π
Refactor the Frappe-style test to pytest
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.