Pyramid
Pyramid copied to clipboard
Cannot compare ToTheme in the theme selector
Exception : NotFound: [ :each | each model = anItem ] not found in OrderedCollection
when I'm trying to edit a Toplo view into Pyramid.
This is major because I cannot edit Toplo view with theme!
@plantec says that it should be better to ask the Theme class and not the Theme instance.
It is true if we considere the theme as static. For example we do not dynamicly update token values
That's why I prefer to implement "=" in Themes :)
no = please. now, token properties can be added dynamically in a theme. @pierre, this is not that one should take the class. I said to store an instance in a class variable :)
We can display the class name of the current Theme in the list and propose to setup another one using just class name comparison. We can reset the current Theme (in case of modifications) by a new one from the same class.