Re: [Zope] Refrencing.

2000-11-05 Thread Dieter Maurer

Jason C. Leach writes:
  dtml-let x=sequence-item
  
  What is the sintax to refrence that object?
   img src=dtml-var x.id
This will give you a NameError (maybe KeyError), as
the variable "x.id" is unknown.

Are you interested in the "id" of "x"?
Then the best thing is:

 dtml-with x
   dtml-var id
 /dtml-with


Dieter

___
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] Refrencing.

2000-11-03 Thread Andy McKay

dtml-var x gives you the object if sequence-item was actually an object.

Is there something else you are tyring to do like get the url to the object
for an image tag? in that case try dtml-var "x.absolute_url()", untested
but since let also pops onto the namespace dtml-var absolute_url should
also work/untested.

- Original Message -
From: "Jason C. Leach" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 02, 2000 9:52 PM
Subject: [Zope] Refrencing.


 hi,

 if I do something like:

 dtml-let x=sequence-item

 What is the sintax to refrence that object?
 img src=dtml-var x.id
 ?

 Thanks,
 j.

 ..
 . Jason C. Leach
 ... University College of the Cariboo.
 ..


 ___
 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] Refrencing.

2000-11-03 Thread Jason C. Leach

hi,

Ya. I'm developing a site (area really) for a client that must
automatically detect all images, displaying only thumbnale images, which
get linked to the large size.  Once I get referencing down, it should be
OK.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Fri, 3 Nov 2000, Andy McKay wrote:

 dtml-var x gives you the object if sequence-item was actually an object.
 
 Is there something else you are tyring to do like get the url to the object
 for an image tag? in that case try dtml-var "x.absolute_url()", untested
 but since let also pops onto the namespace dtml-var absolute_url should
 also work/untested.
 
 - Original Message -
 From: "Jason C. Leach" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, November 02, 2000 9:52 PM
 Subject: [Zope] Refrencing.
 
 
  hi,
 
  if I do something like:
 
  dtml-let x=sequence-item
 
  What is the sintax to refrence that object?
  img src=dtml-var x.id
  ?
 
  Thanks,
  j.
 
  ..
  . Jason C. Leach
  ... University College of the Cariboo.
  ..
 
 
  ___
  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] Refrencing.

2000-11-02 Thread Jason C. Leach

hi,

if I do something like:

dtml-let x=sequence-item

What is the sintax to refrence that object?
img src=dtml-var x.id
?

Thanks,
j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


___
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 )