On Thu, May 25, 2006 at 02:45:04AM +0200, Achim Domma wrote:
[snip]
Just create another interface:
class IWorkspace(Interface):
title = TextLine(
title=uTitle,
description=uThe title,
default=uproCoders Workspace,
required=True)
projects =
Achim Domma wrote:
class IWorkspace(Interface):
[...]
browser:addform
label=Add proCoders Article
name=AddArticle.html
schema=proCoders.interfaces.IArticle
content_factory=proCoders.Article.Article
permission=zope.ManageContent
fields=title
/
[...]
Thanks to
David Johnson wrote:
orderform = PageTemplateFile('orderform.pt')
maybe this attribute ought to be called template instead of orderform ?
Does the name make a difference?
Well, no, I was in a hurry, it makes a difference if you inherit from
formlib
but I see you don't define __call__:
On Thursday 25 May 2006 05:50, Achim Domma wrote:
class Workspace(Persistent):
implements(IWorkspace)
This is your problem. Workspace is not implementing ILocation (or IContained).
Regards,
Stephan
--
Stephan Richter
CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k -
I have a content object, that I want to return a view. How is this
done? This situation seems to come up frequently for me. What do you
do?
In this case, the content object is a fax. The fax will include browser
views as part of it's body.
I tried zapi.getView(), but this has been
I was able to duplicate the example from zope.pagetemplate.readme.txt.
However I still have 2 problems:
1. I receive no debugging or exception output when there are problems
2. I cannot figure out how to call context or viewlet objects.
Obviously Zope/Python is ignoring exceptions for me in
This seems to work
class EditForm(form.EditForm):
form_fields = form.Fields(ISchema)
def __init__(self, context, request):
self.context, self.request = context, request
@form.action('Edit')
def handle_edit_action(self, action, data):
if data['image'] != None:
Kamal Gill wrote:
Hi Damon,
I'm not sure if this will help, but here's my build notes from the
Zope 3.2.1 OS X Installer (with OSX-specific details removed)...
It seems that I was chasing the wrong thing. I was trying to install
Twisted with Zope3 interface. I couldn't get Zope3 or the
Hi.
I tried zapi.getView(), but this has been deprecated, and I don't quite
understand the best approach.
You need to use zapi.getMultiAdapter.
(this is a alias for zope.component.getMultiAdapter)
Because content view is named multiadapter for content's interface and
IBrowserRequest interface,