some minor improvements

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1258 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2006-07-07 18:04:51 +00:00
parent 4d5d9239cc
commit 4670c98d1c
3 changed files with 13 additions and 3 deletions

View file

@ -63,6 +63,10 @@ class IType(Interface):
title=u'Default Container',
description=u'Where objects of this type will be created in '
'when no explicit container is given')
viewName = schema.ASCIILine(title=u'viewName',
description=u'Name of the default view to be used for '
'objects of this type',
required=False)
typeProvider = schema.Object(Interface,
title=u'Type Provider',
description=u'A usually long-living object that corresponds '

View file

@ -49,6 +49,7 @@ class BaseType(object):
typeInterface = None
factory = None
defaultContainer = None
viewName = ''
typeProvider = None

View file

@ -1,7 +1,12 @@
<metal:editlink define-macro="editLink">
<a href="#" title="External Editor"
tal:define="url xeditObjectUrl | context/@@absolute_url"
<metal:editlink define-macro="editLink"
tal:define="url xeditObjectUrl | context/@@absolute_url">
<a href="#" title="Edit with External Editor"
tal:attributes="href string:$url/external_edit"
><img src="edit.gif" alt="External Editor"
tal:attributes="src context/++resource++edit.gif" /></a>
<a href="#" title="Edit with WebDAV"
tal:define="url python:url.replace('http://', 'webdav://admin@')"
tal:attributes="href string:$url/"
><img src="edit.gif" alt="External Editor"
tal:attributes="src context/++resource++edit.gif" /></a>
</metal:editlink>