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:
parent
4d5d9239cc
commit
4670c98d1c
3 changed files with 13 additions and 3 deletions
|
@ -63,6 +63,10 @@ class IType(Interface):
|
||||||
title=u'Default Container',
|
title=u'Default Container',
|
||||||
description=u'Where objects of this type will be created in '
|
description=u'Where objects of this type will be created in '
|
||||||
'when no explicit container is given')
|
'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,
|
typeProvider = schema.Object(Interface,
|
||||||
title=u'Type Provider',
|
title=u'Type Provider',
|
||||||
description=u'A usually long-living object that corresponds '
|
description=u'A usually long-living object that corresponds '
|
||||||
|
|
|
@ -49,6 +49,7 @@ class BaseType(object):
|
||||||
typeInterface = None
|
typeInterface = None
|
||||||
factory = None
|
factory = None
|
||||||
defaultContainer = None
|
defaultContainer = None
|
||||||
|
viewName = ''
|
||||||
typeProvider = None
|
typeProvider = None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
<metal:editlink define-macro="editLink">
|
<metal:editlink define-macro="editLink"
|
||||||
<a href="#" title="External Editor"
|
tal:define="url xeditObjectUrl | context/@@absolute_url">
|
||||||
tal:define="url xeditObjectUrl | context/@@absolute_url"
|
<a href="#" title="Edit with External Editor"
|
||||||
tal:attributes="href string:$url/external_edit"
|
tal:attributes="href string:$url/external_edit"
|
||||||
><img src="edit.gif" alt="External Editor"
|
><img src="edit.gif" alt="External Editor"
|
||||||
tal:attributes="src context/++resource++edit.gif" /></a>
|
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>
|
</metal:editlink>
|
||||||
|
|
Loading…
Add table
Reference in a new issue