[Checkins] SVN: zopeorg.theme/trunk/zopeorg/theme/browser/ Added
inline-editing capabilities for blurd and divider in Feature view
Denis Mishunov
denis.mishunoff at gmail.com
Mon Feb 4 04:22:49 EST 2008
Log message for revision 83492:
Added inline-editing capabilities for blurd and divider in Feature view
Changed:
U zopeorg.theme/trunk/zopeorg/theme/browser/templates/feature.pt
U zopeorg.theme/trunk/zopeorg/theme/browser/viewlets.py
-=-
Modified: zopeorg.theme/trunk/zopeorg/theme/browser/templates/feature.pt
===================================================================
--- zopeorg.theme/trunk/zopeorg/theme/browser/templates/feature.pt 2008-02-04 09:14:38 UTC (rev 83491)
+++ zopeorg.theme/trunk/zopeorg/theme/browser/templates/feature.pt 2008-02-04 09:22:49 UTC (rev 83492)
@@ -5,10 +5,10 @@
<img tal:replace="structure python:view.tag(scale='mini', css_class='featureImage')" src="" alt="" />
<div id="feature-blurb">
- <tal:blurb replace="structure view/blurb" />
+ <tal:blurb metal:use-macro="view/blurb" />
</div>
</div>
<div id="portal-header-divider">
- <tal:divider replace="structure view/divider" />
+ <tal:divider metal:use-macro="view/divider" />
</div>
\ No newline at end of file
Modified: zopeorg.theme/trunk/zopeorg/theme/browser/viewlets.py
===================================================================
--- zopeorg.theme/trunk/zopeorg/theme/browser/viewlets.py 2008-02-04 09:14:38 UTC (rev 83491)
+++ zopeorg.theme/trunk/zopeorg/theme/browser/viewlets.py 2008-02-04 09:22:49 UTC (rev 83492)
@@ -20,10 +20,12 @@
return self.context.getField('image').tag(self.context, **kwargs)
def blurb(self):
- return self.context.getBlurb()
+ # return self.context.getBlurb()
+ return self.context.widget('blurb', mode='view')
def divider(self):
- return self.context.getDivider()
+ # return self.context.getDivider()
+ return self.context.widget('divider', mode='view')
class ZopeorgSearchBoxViewlet(SearchBoxViewlet):
render = ViewPageTemplateFile('templates/searchbox.pt')
More information about the Checkins
mailing list