added popup form for creating resources for JavaScript bookmark

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2265 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-12-22 16:43:17 +00:00
parent 209f5402f2
commit 525ec7d5ac

View file

@ -369,6 +369,16 @@ class NodeView(BaseView):
actions = dict(portlet=getPortletActions)
@Lazy
def popupCreateObjectForm(self):
return ("javascript:function%%20openDialog(url){"
"window.open('%s/create_object_popup.html"
"?title='+document.title+'"
"&form.type=.loops/concepts/note&linkUrl='+url,"
"'loops_dialog','width=650,height=450,left=300,top=200');;"
"}"
"openDialog(window.location.href);" % self.topMenu.url)
@Lazy
def hasEditableTarget(self):
return IResource.providedBy(self.virtualTargetObject)