[Zope3-dev] Re: How to call addform of other Module

Florian Lindner mailinglists at xgm.de
Thu Oct 21 01:42:43 EDT 2004


Philipp von Weitershausen schrieb:

> Florian Lindner wrote:
>
>> Hello,
>> how can I call the addform of a object from a another object which is 
>> defined in another object? The problem I have is that there is no 
>> instance of the object existing to call...
>
>
> Sorry, I have absolutely no idea what you're talking about. Can you 
> explain your problem in detail? (If you have problems with the 
> English, you can email me in German privately)


Oh, yeah, when I read it now it seems even to me confusing. I think it 
was just a little late yesterday evening...
Ok, let's go in details:
I've a object called Event with a subdir skin which sould contain the 
actual user interface (without using the ZMI). In 
Event/skin/configure.zcml I've defined a addform:

<addform
  for="..interfaces.IEvent"
  name="addEvent.htm"
  permission="zope.Public"
  schema="..interfaces.IEventFolder"
  content_factory="..event.Event"
  layer="centershock"
  template="addEvent.pt" />
</configure>

I've also another folder called Main which is containingthe Main-Object. 
which a kind of index page:

<page
    for="..interfaces.IMain"
    name="index.htm"
    permission="zope.Public"
    layer="centershock"
    template="main.pt"
/>

Now I want to link from this index.htm to the addform of Event, like 
that http://localhost:8080/++skin++centershock/eventinst/@@addEvent.htm. 
But my problem is that eventinst is not existing yet, so where to link?

Thanks and greetings from Dubai,

Florian



More information about the Zope3-dev mailing list