Has someone written a script which renders a zope object to HTML? I would like to know: which base classes this object has, which methods it has, which properties it has ... I think it is quite easy if you know python good. I am a python newbie. __members__ doesn't seem to work on my zope object (inherited from folder). Can someone help? guettli
Look for "HappyDoc" by Doug Hellmann... zopestoller@thomas-guettler.de wrote:
Has someone written a script which renders a zope object to HTML?
I would like to know: which base classes this object has, which methods it has, which properties it has ...
I think it is quite easy if you know python good. I am a python newbie. __members__ doesn't seem to work on my zope object (inherited from folder).
Can someone help? guettli
_______________________________________________ Zope maillist - Zope@zope.org 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 )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"
No, I was looking for something that does this at runtime. Something like http://localhost:8080/my_object/introspection --> Which results in a HTML Page with information about my_object. With information I mean: method names, attribute names, base classes ... I would like to write this if noone has done this. But how can I access this information? Sorry, I quite new to python. my_object.__methods__ does not work in a python product. dir(my_object) does. But it has not much information. Does someone know how to get this? Chris McDonough <chrism@zope.com> schrieb am 11.01.2002, 14:12:04:
Look for "HappyDoc" by Doug Hellmann...
zopestoller@thomas-guettler.de wrote:
Has someone written a script which renders a zope object to HTML?
I would like to know: which base classes this object has, which methods it has, which properties it has ...
I think it is quite easy if you know python good. I am a python newbie. __members__ doesn't seem to work on my zope object (inherited from folder).
Can someone help? guettli
_______________________________________________ Zope maillist - Zope@zope.org 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 )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"
zopestoller@thomas-guettler.de wrote:
No, I was looking for something that does this at runtime. Something like http://localhost:8080/my_object/introspection --> Which results in a HTML Page with information about my_object. With information I mean: method names, attribute names, base classes ...
I would like to write this if noone has done this. But how can I access this information? Sorry, I quite new to python. my_object.__methods__ does not work in a python product. dir(my_object) does. But it has not much information.
I guess Dieter Maurers nich docfinder product, http://www.dieter.handshake.de/pyprojects/zope/DocFinder.html is what you are looking for. cheers, oliver
Have a look at the inspect module (new in 2.1) seb On Fri, 2002-01-11 at 13:36, zopestoller@thomas-guettler.de wrote:
No, I was looking for something that does this at runtime. Something like http://localhost:8080/my_object/introspection --> Which results in a HTML Page with information about my_object. With information I mean: method names, attribute names, base classes ...
I would like to write this if noone has done this. But how can I access this information? Sorry, I quite new to python. my_object.__methods__ does not work in a python product. dir(my_object) does. But it has not much information.
Does someone know how to get this?
Chris McDonough <chrism@zope.com> schrieb am 11.01.2002, 14:12:04:
Look for "HappyDoc" by Doug Hellmann...
zopestoller@thomas-guettler.de wrote:
Has someone written a script which renders a zope object to HTML?
I would like to know: which base classes this object has, which methods it has, which properties it has ...
I think it is quite easy if you know python good. I am a python newbie. __members__ doesn't seem to work on my zope object (inherited from folder).
Can someone help? guettli
_______________________________________________ Zope maillist - Zope@zope.org 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 )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"
_______________________________________________ Zope maillist - Zope@zope.org 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 )
zopestoller@thomas-guettler.de wrote:
No, I was looking for something that does this at runtime. Something like http://localhost:8080/my_object/introspection --> Which results in a HTML Page with information about my_object. With information I mean: method names, attribute names, base classes ...
Hmmm... err.. Dieter Maurer I think wrote something like this. I can't remember what he called it, though. :-(
I would like to write this if noone has done this. But how can I access this information? Sorry, I quite new to python. my_object.__methods__ does not work in a python product. dir(my_object) does. But it has not much information.
Does someone know how to get this?
What do you want to get? Have you looked at the source for HappyDoc? The book "Learning Python"?
At 08:12 AM 1/11/2002 -0500, Chris McDonough wrote:
Look for "HappyDoc" by Doug Hellmann...
I have written a docu tool once that used HappyDoc to generate dynamic Zope HTML docs. I guess it is time to release it. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development & Technical Project Management
On Fri, Jan 11, 2002 at 09:08:47AM -0600, Stephan Richter wrote:
At 08:12 AM 1/11/2002 -0500, Chris McDonough wrote:
Look for "HappyDoc" by Doug Hellmann...
I have written a docu tool once that used HappyDoc to generate dynamic Zope HTML docs. I guess it is time to release it.
docfinder does what I want. But it would be interessting to look at an alternative. -- Open Source Software Solutions Thomas Guettler <guettli@thomas-guettler.de> http://www.thomas-guettler.de
Thomas Guettler writes:
On Fri, Jan 11, 2002 at 09:08:47AM -0600, Stephan Richter wrote:
At 08:12 AM 1/11/2002 -0500, Chris McDonough wrote:
Look for "HappyDoc" by Doug Hellmann...
I have written a docu tool once that used HappyDoc to generate dynamic Zope HTML docs. I guess it is time to release it.
docfinder does what I want. But it would be interessting to look at an alternative. Pydoc? Its Python's documentation utility (part of Python since 2.1).
When I first looked at it to derive Zope documentation, some patches had been necessary (maybe no longer). You find them via <http://www.dieter.handshake.de/pyprojects/zope> Dieter
participants (7)
-
Chris McDonough -
Dieter Maurer -
Oliver Bleutgen -
seb bacon -
Stephan Richter -
Thomas Guettler -
zopestoller@thomas-guettler.de