[Zope] Re: API and namespace

Alexander DePauli a.depauli@depauli.com
Mon, 11 Dec 2000 19:22:55 +0100


Rehi Sven,

thanks a lot for your patience with the dummy - which is me :)

Sorry to say that my problem consists even when applying your snippet.

Your statement
<dtml-with "_.getitem('NewFolder')"> 
looks fine to me, but ZOPE insists on creating the new document in 
               /OldFolder 
instead of 
               /OldFolder/NewFolder

Some more stuff for wondering:
If I do a 
               <dtml-with "_.getitem('NewFolder')"> 
               <dtml-var "_.getitem('NewFolder',0)">
to get an actual value for testing purposes, ZOPE returns the *correct*
value.

But if I do an additional 
               <dtml-in objectItems>
                id: <dtml-var sequence-key>,
                type: <dtml-var meta_type>
               </dtml-in>
to get the objects in the actual namespace (surely *after* the above
<dtml-with..>, 
the output is the one of the /OldFolder-namespace, not that of the
/OldFolder/NewFolder.

...I'm sure this is a rookie-problem and can be solved by turning a
switch or two (perhaps in my brain), but I'm stuck.

Do you/anybody has any clue?

Thanks in advance + all the best
Alexander


Sven Hohage schrieb:
> For you this is sufficient ->
>        <dtml- call "manage_addFolder (FolderName)">
> 
>         <dtml-with "_.getitem(FolderName)">
>                     <dtml- call "manage_add (DocumnetName)">
>         </dtml-with>
>
~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.herrenausstatter.de - Der Online-Herrenausstatter
Kostenlose Serviceline: 0800 -999 66 33
Versandkostenfreie Lieferung - 30 Tage Rückgaberecht
~~~~~~~~~~~~~~~~~~~~~~~~~
Verwaltungsadresse:
DePauli.com Aktiengesellschaft
Stahlgruberring 3 - 81829 München
Telefon: 089 / 530 75 170 - Telefax 089 / 514 50 666