Meta Tag Description added
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3863 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
d83668f9ed
commit
8ccc1dbb3b
2 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,6 @@ from zope.lifecycleevent import ObjectCreatedEvent, ObjectModifiedEvent
|
|||
|
||||
from zope.app.container.interfaces import INameChooser
|
||||
from zope.app.container.contained import ObjectAddedEvent
|
||||
#from zope.app.container.contained import NameChooser
|
||||
from zope.app.pagetemplate import ViewPageTemplateFile
|
||||
from zope.cachedescriptors.property import Lazy
|
||||
from zope.contenttype import guess_content_type
|
||||
|
|
|
@ -167,6 +167,9 @@ class BaseView(object):
|
|||
|
||||
def getKeywords(self):
|
||||
return self.context.title.split()
|
||||
|
||||
def getMetaDescription(self):
|
||||
return self.context.title
|
||||
|
||||
pattern = re.compile(r'[ /\?\+%]')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue