Silva Issue Tracker Archive: Issue1607

 This tracker has been migrated to Launchpad. Please post new messages at:
Title combination of file/image reference in document and SilvaLayout skin
Priority bug Status need-eg
Superseder (list) Nosy List daniel, faassen, flynt, kitblake, lbenno (list)
Assigned To daniel Topics Silva-1.5, Silva-1.6 (list)

Created on 2006-08-01.18:39:41 by faassen, last changed 2007-02-19.18:16:02 by kitblake.

msg9094 (view) Author: daniel Date: 2007-02-07.15:15:27
I wasn't able to reproduce.  I did this:

- I added an image to a publication with Silva default layout.

- I created a document in another publication with the WUW layout.  In this
document, I *traverse* to the image in the Silva default layout, using

- I make sure that after that traversal, in the template, I use another view
that is only available in the WUW layout.  And that seems to work fine.

Did I do the right thing?
msg8660 (view) Author: aaltepet Date: 2006-08-01.19:28:44
Sounds like a developer caveat as well.  Perhaps also add a note about this in
the developer_notes.txt?
msg8659 (view) Author: faassen Date: 2006-08-01.18:39:40
In the following circumstances there could be a problem with SilvaLayout and

* create a publication A with a SilvaLayout based skin 1

* create a publication B with a SilvaLayout based skin 2

* register a view '@@foo' for (for example) ISilvaObject, only in skin 1

* create a Silva Document that contains a file or image reference.

* this reference is to an asset in publication B

* the page template displaying the Silva Document does something like
tal:content="context/@@foo" *after* the content is rendered.

* @@foo will not be found, as it'll now look in skin 2, where it isn't registered.

Basically when traversal happens (such as when displaying a file or image in a
document) into a publication with a different skin during rendering of a page,
the skin will be overridden in REQUEST during traversal. Special care needs to
be taken to reset the skin back to the original skin in REQUEST after traversal
takes place.

Basically Silva needs to be reviewed: all cases where such traversal occurs runs
the risk of losing the skin.
Date User Action Args
2007-02-19 18:16:02kitblakesetstatus: chatting -> need-eg
2007-02-07 15:15:28danielsetmessages: + msg9094
2007-02-06 14:09:02thisfredsetnosy: + daniel
assignedto: daniel
2006-10-10 11:25:46flyntsetnosy: + lbenno, flynt
2006-08-01 19:28:45aaltepetsetstatus: unread -> chatting
messages: + msg8660
2006-08-01 18:44:49faassensettopic: + Silva-1.5, Silva-1.6, - Silva-2.0, dummy1
nosy: - erica
2006-08-01 18:39:42faassencreate