Re: [Zope] getProperty title and id

2008-10-15 Thread Tino Wildenhain

Tino Wildenhain wrote:

Hamzat Kamal wrote:

Hi,

I just want to why dtml-var xx.getProperty('title') will display 
the object title and and dtml-var xx.getProperty('id') will 
dispaly none.


apart from the fact that you probably should start using TAL instead of 
DTML,



dtml-let xx= _.getitem('id')
dtml-var xx.getProperty('title')
dtml-var xx.getProperty('id')
/dtml-let


Did you look at the resulting output? Not the HTML rendered
in the browser but the source - view source in the browser.



Ah sorry. yes id is not a property but an attribute of xx.

So instead of xx.getProperty(id) you'd use xx.id

Regards
TIno


smime.p7s
Description: S/MIME Cryptographic Signature
___
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 )


[Zope] getProperty title and id

2008-10-15 Thread Hamzat Kamal
Hi,

I just want to why dtml-var xx.getProperty('title') will display the object 
title and and dtml-var xx.getProperty('id') will dispaly none.


dtml-let xx= _.getitem('id') 
dtml-var xx.getProperty('title') 
dtml-var xx.getProperty('id')
/dtml-let 

Thanks.
___
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] getProperty title and id

2008-10-15 Thread Tino Wildenhain

Hamzat Kamal wrote:

Hi,

I just want to why dtml-var xx.getProperty('title') will display the 
object title and and dtml-var xx.getProperty('id') will dispaly none.


apart from the fact that you probably should start using TAL instead of 
DTML,



dtml-let xx= _.getitem('id')
dtml-var xx.getProperty('title')
dtml-var xx.getProperty('id')
/dtml-let


Did you look at the resulting output? Not the HTML rendered
in the browser but the source - view source in the browser.

Regards
Tino


smime.p7s
Description: S/MIME Cryptographic Signature
___
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 )