Switch to side-by-side view
--- a/ForgeTracker/forgetracker/model/ticket.py +++ b/ForgeTracker/forgetracker/model/ticket.py @@ -5,6 +5,7 @@ import tg from pymongo import bson from pylons import c +from pylons import request from ming import schema from ming.utils import LazyProperty @@ -396,4 +397,7 @@ def url(self): return self.ticket.url() + 'attachment/' + self.filename + def is_embedded(self): + return self.metadata.filename in request.environ.get('allura.macro.att_embedded', []) + MappedClass.compile_all()