Re: [Zope] DTML Method not working

2000-10-16 Thread Manuel Amador (Rudd-O)




Phil Harris wrote:
Is the code you used in a DTML Method or a DTML Document?
Is it in a DTML Method being called from a DTML Document?
If the answer to either of these is 'yes' then it's doing as you ask!
The thing that gets most new zope users is that a DTML Document is itself
a
container.  This means that anytime you use code similar to yours
or when
using a  it will probably return a blank, as the
DTML
Dopcument has no children(?!?).
Solutions:
1.    Try moving the code into a DTML Method.
2.    Use a dtml-with around it.
The second one works most places but if in the root then it's slightly
more
difficult as the top object is hard to reference (please someone tell
me I'm
wrong here).
You could try something like:



 



The resolve_url(BASE0+'/') should give you a reference to the top Zope
object (root).
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Ronald L. Chichester" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 08, 2000 8:58 PM
Subject: [Zope] DTML Method not working
> I took some code that was in the (work-in-progress) O'Riley book on
> Zope.  In that example, then had a DTML Method used for identifying
> folders and hyperlinking to them.  The code is as follows:
>
> 
> 
>  
> 
> 
>
> The problem is, it doesn't work.  I know the method is being
invoked
> because there is some other text that is indeed being inserted.
> Moreover, there are sub-folders in the folder that calls the method.
>
> Does anyone know what the problem is?  Is it a permission issue. 
The
> standard_html_header and _footer, show up just fine, along with logos
> and such.  The only part that isn't showing up is the stuff
that was
> supposed to be generated by the  block.
>
> Any hints?
>
> Thanks in advance.
>
> Ron
>  ./.
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev
)
___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev
)

-- 
Manuel Amador (Rudd-O)
 


Re: [Zope] DTML Method not working (Please disregard, I figured it out)

2000-10-09 Thread complaw

> > Is the code you used in a DTML Method or a DTML Document?
> 

I figured out (later) that it was indeed the DTML Method/Document issue on the
latter part of my question.  Please disregard my last mesage.

Thanks for your help.

Ron
 ./.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] DTML Method not working

2000-10-09 Thread complaw

> Is the code you used in a DTML Method or a DTML Document?

I had it in a DTML Method.  It was in the standard public interface index_html
that is a DTML method.

> 
> Is it in a DTML Method being called from a DTML Document?

No, the standard_html_header calls the method.  Actually, I just copied the
code/instructions from the Zope Book (http://www.zope.org/Members/michel/ZB/).
Incidentally, once I put your  
> You could try something like:
> 
> 
> 
> 
>  
> 
> 
> 
> 
> The resolve_url(BASE0+'/') should give you a reference to the top Zope
> object (root).
> 
> hth
> 
> Phil
> [EMAIL PROTECTED]
> 
> - Original Message -
> From: "Ronald L. Chichester" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, October 08, 2000 8:58 PM
> Subject: [Zope] DTML Method not working
> 
> 
> > I took some code that was in the (work-in-progress) O'Riley book on
> > Zope.  In that example, then had a DTML Method used for identifying
> > folders and hyperlinking to them.  The code is as follows:
> >
> > 
> > 
> >  
> > 
> > 
> >
> > The problem is, it doesn't work.  I know the method is being invoked
> > because there is some other text that is indeed being inserted.
> > Moreover, there are sub-folders in the folder that calls the method.
> >
> > Does anyone know what the problem is?  Is it a permission issue.  The
> > standard_html_header and _footer, show up just fine, along with logos
> > and such.  The only part that isn't showing up is the stuff that was
> > supposed to be generated by the  block.
> >
> > Any hints?
> >
> > Thanks in advance.
> >
> > Ron
> >  ./.
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] DTML Method not working

2000-10-08 Thread Phil Harris

Oops:

That should be:




 




hth

Phil
[EMAIL PROTECTED]


- Original Message -
From: "Phil Harris" <[EMAIL PROTECTED]>
To: "Ronald L. Chichester" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, October 07, 2000 9:38 PM
Subject: Re: [Zope] DTML Method not working


> Is the code you used in a DTML Method or a DTML Document?
>
> Is it in a DTML Method being called from a DTML Document?
>
> If the answer to either of these is 'yes' then it's doing as you ask!
>
> The thing that gets most new zope users is that a DTML Document is itself
a
> container.  This means that anytime you use code similar to yours or when
> using a  it will probably return a blank, as the DTML
> Dopcument has no children(?!?).
>
> Solutions:
>
> 1.Try moving the code into a DTML Method.
> 2.Use a dtml-with around it.
>
> The second one works most places but if in the root then it's slightly
more
> difficult as the top object is hard to reference (please someone tell me
I'm
> wrong here).
>
> You could try something like:
>
> 
> 
> 
>  
> 
> 
> 
>
> The resolve_url(BASE0+'/') should give you a reference to the top Zope
> object (root).
>
> hth
>
> Phil
> [EMAIL PROTECTED]
>
> - Original Message -
> From: "Ronald L. Chichester" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, October 08, 2000 8:58 PM
> Subject: [Zope] DTML Method not working
>
>
> > I took some code that was in the (work-in-progress) O'Riley book on
> > Zope.  In that example, then had a DTML Method used for identifying
> > folders and hyperlinking to them.  The code is as follows:
> >
> > 
> > 
> >  
> > 
> > 
> >
> > The problem is, it doesn't work.  I know the method is being invoked
> > because there is some other text that is indeed being inserted.
> > Moreover, there are sub-folders in the folder that calls the method.
> >
> > Does anyone know what the problem is?  Is it a permission issue.  The
> > standard_html_header and _footer, show up just fine, along with logos
> > and such.  The only part that isn't showing up is the stuff that was
> > supposed to be generated by the  block.
> >
> > Any hints?
> >
> > Thanks in advance.
> >
> > Ron
> >  ./.
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] DTML Method not working

2000-10-08 Thread Phil Harris

Is the code you used in a DTML Method or a DTML Document?

Is it in a DTML Method being called from a DTML Document?

If the answer to either of these is 'yes' then it's doing as you ask!

The thing that gets most new zope users is that a DTML Document is itself a
container.  This means that anytime you use code similar to yours or when
using a  it will probably return a blank, as the DTML
Dopcument has no children(?!?).

Solutions:

1.Try moving the code into a DTML Method.
2.Use a dtml-with around it.

The second one works most places but if in the root then it's slightly more
difficult as the top object is hard to reference (please someone tell me I'm
wrong here).

You could try something like:




 




The resolve_url(BASE0+'/') should give you a reference to the top Zope
object (root).

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Ronald L. Chichester" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 08, 2000 8:58 PM
Subject: [Zope] DTML Method not working


> I took some code that was in the (work-in-progress) O'Riley book on
> Zope.  In that example, then had a DTML Method used for identifying
> folders and hyperlinking to them.  The code is as follows:
>
> 
> 
>  
> 
> 
>
> The problem is, it doesn't work.  I know the method is being invoked
> because there is some other text that is indeed being inserted.
> Moreover, there are sub-folders in the folder that calls the method.
>
> Does anyone know what the problem is?  Is it a permission issue.  The
> standard_html_header and _footer, show up just fine, along with logos
> and such.  The only part that isn't showing up is the stuff that was
> supposed to be generated by the  block.
>
> Any hints?
>
> Thanks in advance.
>
> Ron
>  ./.
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] DTML Method not working

2000-10-08 Thread Ronald L. Chichester

I took some code that was in the (work-in-progress) O'Riley book on
Zope.  In that example, then had a DTML Method used for identifying
folders and hyperlinking to them.  The code is as follows:



 



The problem is, it doesn't work.  I know the method is being invoked
because there is some other text that is indeed being inserted.
Moreover, there are sub-folders in the folder that calls the method.

Does anyone know what the problem is?  Is it a permission issue.  The
standard_html_header and _footer, show up just fine, along with logos
and such.  The only part that isn't showing up is the stuff that was
supposed to be generated by the  block.

Any hints?

Thanks in advance.

Ron
 ./.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )