-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ILeadImageBehavior and IRichTextBehavior interfaces were the name…
… change was forgotten.
- Loading branch information
Showing
5 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Fix ILeadImageBehavior and IRichTextBehavior interfaces were the name change was forgotten. | ||
[thet] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from plone.app.contenttypes.behaviors.leadimage import ILeadImage | ||
from plone.app.contenttypes.behaviors.leadimage import ILeadImageBehavior | ||
from plone.app.layout.viewlets import ViewletBase | ||
|
||
|
||
class LeadImageViewlet(ViewletBase): | ||
"""A simple viewlet which renders leadimage""" | ||
|
||
def update(self): | ||
self.context = ILeadImage(self.context) | ||
self.context = ILeadImageBehavior(self.context) | ||
self.available = True if self.context.image else False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters