Re: [Zope-dev] dir()

2003-11-06 Thread J Cameron Cooper

I started to program for Zope and have found out, that
some commands in Python have been excluded. I miss
command dir(). Whether there is any opportunity to
replace it?
Or how I can find out methods/properties of object?
 

You can get a Python console to the live Zope system using 'zctl.py 
debug', which uses ZEO. It's neat. Search zope.org.

Also, DocFinderEverywhere might help you.

 --jcc

--
Code generators follow the 80/20 rule. They solve most of the problems, but not all of the 
problems. There are always features and edge cases that will need hand-coding. Even if code 
generation could build 100 percent of the application, there will still be an endless supply of 
boring meetings about feature design.
(http://www.devx.com/java/editorial/15511)


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


Re: [Zope-dev] dir()

2003-11-05 Thread Andreas Jung
PyScripts run in a restriced env. You can't use dir() inside.

-aj

--On Mittwoch, 5. November 2003 12:57 Uhr +0100 Dmitrij Repp 
[EMAIL PROTECTED] wrote:

I started to program for Zope and have found out, that
some commands in Python have been excluded. I miss
command dir(). Whether there is any opportunity to
replace it?
Or how I can find out methods/properties of object?
__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )




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


Re: [Zope-dev] dir()

2003-11-05 Thread Tres Seaver
On Wed, 2003-11-05 at 06:57, Dmitrij Repp wrote:
 I started to program for Zope and have found out, that
 some commands in Python have been excluded. I miss
 command dir(). Whether there is any opportunity to
 replace it?
 Or how I can find out methods/properties of object?

Note that you *can* use the full power of Python with Zope, including
the debugger;  you just can't use everything inside untrusted code
(Python Scripts, DTML, PageTemplates).  Zope 2.x implicitly trusts code
loaded from the filesystem, and implicitly distrusts code loaded from
the ZODB.

Check out:

http://zope.org/Members/mcdonc/HowTos/UsingTheZopeDebugger

or search zope.org for 'debugger' for pointers to third-party apps which
integrate their debuggers with Zope.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com



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


Re: [Zope-dev] dir()

2003-11-05 Thread Stefan H. Holek
DocFinderEverywhere may be useful to you.

http://www.zope.org/Members/shh/DocFinderEverywhere

Stefan

--On Mittwoch, 05. November 2003 12:57 +0100 Dmitrij Repp 
[EMAIL PROTECTED] wrote:

I started to program for Zope and have found out, that
some commands in Python have been excluded. I miss
command dir(). Whether there is any opportunity to
replace it?
Or how I can find out methods/properties of object?


--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.   /Pete McBreen/
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )