[Zope] how can i the height of a image

2006-02-25 Thread Alain Barbason
hi,

in a file  index_html, I search to have the height of a image, but this,
is in a subdirectroy called images

After a request of a database, I have the name of the image in a
variable nom

if I write

 dtml-var expr='images.'+nom+'.height'  the result is

   images.x0y0.height

(x0y0 is the name of my image,)

if I write

 dtml-var expr='images.x0y0.height'  the result is

275

ok, it's the height of my image

how to make to have the first sentence, but with the result is 275 ?

thank

- - --
by AlainBB
http://www.barbason.be



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


Re: [Zope] how can i the height of a image

2006-02-25 Thread J Cameron Cooper

Alain Barbason wrote:

hi,

in a file  index_html, I search to have the height of a image, but this,
is in a subdirectroy called images

After a request of a database, I have the name of the image in a
variable nom

if I write

 dtml-var expr='images.'+nom+'.height'  the result is

   images.x0y0.height

(x0y0 is the name of my image,)

if I write

 dtml-var expr='images.x0y0.height'  the result is

275

ok, it's the height of my image

how to make to have the first sentence, but with the result is 275 ?


See top of http://plone.org/documentation/how-to/addContentProgrammatically

  --jcc
--
Building Websites with Plone
http://plonebook.packtpub.com/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] how can i the height of a image

2006-02-25 Thread David

J Cameron Cooper wrote:


Alain Barbason wrote:


hi,

in a file  index_html, I search to have the height of a image, but this,
is in a subdirectroy called images

After a request of a database, I have the name of the image in a
variable nom

if I write

 dtml-var expr='images.'+nom+'.height'  the result is

   images.x0y0.height

(x0y0 is the name of my image,)

if I write

 dtml-var expr='images.x0y0.height'  the result is

275

ok, it's the height of my image

how to make to have the first sentence, but with the result is 275 ?



See top of 
http://plone.org/documentation/how-to/addContentProgrammatically


  --jcc


image = context.images['imageName' + nom]
print image.height
return printed

Its always easier in python

David



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )