minor fix for glossary item dialog

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2217 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-12-06 10:18:38 +00:00
parent b9bb7e22ad
commit 8d4276d16c

View file

@ -34,14 +34,14 @@ from loops.common import adapted
from loops import util
template = ViewPageTemplateFile('view_macros.pt')
view_macros = ViewPageTemplateFile('view_macros.pt')
class GlossaryView(ConceptView):
@Lazy
def macro(self):
return template.macros['glossary']
return view_macros.macros['glossary']
def getActions(self, category='object', page=None):
actions = []
@ -62,7 +62,7 @@ class GlossaryItemView(ConceptView):
@Lazy
def macro(self):
return template.macros['glossaryitem']
return view_macros.macros['glossaryitem']
def getActions(self, category='object', page=None):
actions = []
@ -79,10 +79,14 @@ class CreateGlossaryItemForm(CreateConceptForm):
@Lazy
def customMacro(self):
return template.macros['children']
return view_macros.macros['children']
class EditGlossaryItemForm(CreateGlossaryItemForm, EditConceptForm):
pass
title = _(u'Edit Glossary Item')
@Lazy
def macro(self):
return self.template.macros['edit']