how to explore objects attributes and methods from a script or template

fg <[email protected]> Sun, 6 Nov 2011 13:45:55 +0000 (UTC)
Newsgroups gmane.comp.web.zope.page-templates
Message-ID <[email protected]>
hi all,

how do i get the attributes and methods list of an object?
from a python script or a page template, dir(object) does not work?

thx