[Zope-CVS] SVN: zversioning/trunk/src/versioning/demo/ more
customizationable view-pagetemplate
Volker Bachschneider
vbachs at dzug.org
Wed Oct 13 05:49:59 EDT 2004
Log message for revision 28055:
more customizationable view-pagetemplate
Changed:
U zversioning/trunk/src/versioning/demo/browser/info.pt
U zversioning/trunk/src/versioning/demo/browser/proposal.css
U zversioning/trunk/src/versioning/demo/browser/view.py
U zversioning/trunk/src/versioning/demo/vproposal.py
-=-
Modified: zversioning/trunk/src/versioning/demo/browser/info.pt
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-13 09:32:50 UTC (rev 28054)
+++ zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-13 09:49:58 UTC (rev 28055)
@@ -19,28 +19,36 @@
<div tal:content="structure view/usecase | nothing">
What Situations we will solve
</div>
- <a href="./@@EditUseCase.html" i18n:translate="" class="edit">Edit</a>
+ <div class="actions">
+ <a href="./@@EditUseCase.html" i18n:translate="">Edit</a>
+ </div>
</div>
<div class="cblock">
<h4 i18n:translate="">Concept</h4>
<div tal:content="structure view/concept | nothing">
Technical Concept
</div>
- <a href="./@@EditConcept.html" i18n:translate="" class="edit">Edit</a>
+ <div class="actions">
+ <a href="./@@EditConcept.html" i18n:translate="">Edit</a>
+ </div>
</div>
<div class="cblock">
<h4 i18n:translate="">Todo</h4>
<div tal:content="structure view/todo | nothing">
Steps to go
</div>
- <a href="./@@EditTodo.html" i18n:translate="" class="edit">Edit</a>
+ <div class="actions">
+ <a href="./@@EditTodo.html" i18n:translate="">Edit</a>
+ </div>
</div>
<div class="cblock">
<h4 i18n:translate="">Open Issues</h4>
<div tal:content="structure view/issues | nothing">
Open Issues
</div>
- <a href="./@@EditIssues.html" i18n:translate="" class="edit">Edit</a>
+ <div class="actions">
+ <a href="./@@EditIssues.html" i18n:translate="">Edit</a>
+ </div>
</div>
</div>
Modified: zversioning/trunk/src/versioning/demo/browser/proposal.css
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/proposal.css 2004-10-13 09:32:50 UTC (rev 28054)
+++ zversioning/trunk/src/versioning/demo/browser/proposal.css 2004-10-13 09:49:58 UTC (rev 28055)
@@ -8,7 +8,6 @@
padding:2px;
}
-a.edit {
- display:block;
+div.actions {
background:#EFEFEF;
}
\ No newline at end of file
Modified: zversioning/trunk/src/versioning/demo/browser/view.py
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/view.py 2004-10-13 09:32:50 UTC (rev 28054)
+++ zversioning/trunk/src/versioning/demo/browser/view.py 2004-10-13 09:49:58 UTC (rev 28055)
@@ -11,15 +11,10 @@
self.concept = self.render(context.concept)
self.todo = self.render(context.todo)
self.issues = self.render(context.issues)
- #Silly hack
- self.href = "display:block; background:#EFEFEF;"
- self.cblock = "border-width:1px; \
- border-style:solid;margin-top:6px; \
- padding:2px;"
-
def render(self,content):
"""render contextattributes to ReST"""
- html = ReStructuredTextToHTMLRenderer(content.encode('utf-8'),
+ if content:
+ html = ReStructuredTextToHTMLRenderer(content.encode('utf-8'),
self.request)
- return unicode(html.render(),'utf-8')
\ No newline at end of file
+ return unicode(html.render(),'utf-8')
\ No newline at end of file
Modified: zversioning/trunk/src/versioning/demo/vproposal.py
===================================================================
--- zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-13 09:32:50 UTC (rev 28054)
+++ zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-13 09:49:58 UTC (rev 28055)
@@ -8,7 +8,8 @@
zope.interface.implements(IVProposal)
- def __init__(self,title=u'',usecase=u'',concept=u'',todo=u'',issues=u''):
+ def __init__(self,title=u'',usecase=u'',concept=u'', \
+ todo=u'',issues=u''):
self.title = title
self.usecase = usecase
self.concept = concept
More information about the Zope-CVS
mailing list