[Rt-commit] rt branch, 4.4/external-storage, updated. rt-4.2.11-52-gc244b30
Shawn Moore
shawn at bestpractical.com
Fri May 22 16:37:30 EDT 2015
The branch, 4.4/external-storage has been updated
via c244b30ca5c5b50dd08a1411376e1635004667a8 (commit)
from ebfef40b559b4ce927907e016635f974df9d832a (commit)
Summary of changes:
lib/RT/Attachment.pm | 6 ++++++
lib/RT/ObjectCustomFieldValue.pm | 7 +++++++
2 files changed, 13 insertions(+)
- Log -----------------------------------------------------------------
commit c244b30ca5c5b50dd08a1411376e1635004667a8
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Fri May 22 20:36:54 2015 +0000
Add ->ExternalStoreDigest for Attachment and OCFV
This is step one of getting a direct link API set up
diff --git a/lib/RT/Attachment.pm b/lib/RT/Attachment.pm
index 195d60d..3786d6f 100644
--- a/lib/RT/Attachment.pm
+++ b/lib/RT/Attachment.pm
@@ -1200,6 +1200,12 @@ sub ShouldStoreExternally {
}
}
+sub ExternalStoreDigest {
+ my $self = shift;
+
+ return undef if $self->ContentEncoding ne 'external';
+ return $self->Content;
+}
RT::Base->_ImportOverlays();
diff --git a/lib/RT/ObjectCustomFieldValue.pm b/lib/RT/ObjectCustomFieldValue.pm
index 963b795..4dc224d 100644
--- a/lib/RT/ObjectCustomFieldValue.pm
+++ b/lib/RT/ObjectCustomFieldValue.pm
@@ -747,6 +747,13 @@ sub ShouldStoreExternally {
return 0;
}
+sub ExternalStoreDigest {
+ my $self = shift;
+
+ return undef if $self->ContentEncoding ne 'external';
+ return $self->LargeContent;
+}
+
RT::Base->_ImportOverlays();
1;
-----------------------------------------------------------------------
More information about the rt-commit
mailing list