Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Content Loader Framework to support delegating to another model for content preparation #116

Open
natacha-beck opened this issue Jun 5, 2015 · 2 comments

Comments

@natacha-beck
Copy link
Contributor

We need to add a :delegate optional parameter to has_content in model (mostly collections) that will use the class method of the model to prepare the content to be sent to the browser.

Example:
In civet collection
has_content :method => :get_raw_data, :delegate_to Minc, :type => :text

the content action will then pass the path of the file in the collection to the class method in Minc and return the data to the browser.

If :delegate_to is not present it should call the instance method that then calls the class method with self.cache_full_path

Redmine: 3098

@natacha-beck natacha-beck added this to the 4.2.0 milestone Jun 5, 2015
@prioux prioux modified the milestones: 4.2.0, 4.3.0 Nov 3, 2015
@prioux prioux changed the title Extend Content Loader Framework to support delegating to another model for content preperation Extend Content Loader Framework to support delegating to another model for content preparation Jan 13, 2016
@natacha-beck natacha-beck modified the milestones: 4.3.0, 4.4.0 Mar 16, 2016
@natacha-beck natacha-beck modified the milestones: 4.4.0, 4.5.0 May 31, 2016
@prioux prioux modified the milestones: 4.5.0, 4.6.0 Aug 18, 2016
@natacha-beck natacha-beck modified the milestones: 4.6.0, 4.7.0 Nov 21, 2016
@prioux prioux modified the milestones: 4.7.0, 5.1.0 Apr 24, 2017
@prioux prioux removed this from the 5.1.0 milestone Nov 16, 2018
@prioux prioux added this to the 5.2.0 milestone Nov 16, 2018
@prioux prioux modified the milestones: 5.2.0, 5.3.0 Sep 16, 2019
@prioux prioux modified the milestones: 5.3.0, 5.4.0 Dec 11, 2019
@natacha-beck
Copy link
Contributor Author

@prioux the idea was implemented in the SubViewer mechanism no ?
So we can close ?

@prioux
Copy link
Member

prioux commented Jan 18, 2023

No I don't think we have this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants