Re: [Zope] Method to return the properties of an object

2006-02-10 Thread Jonathan

Jonathan schrieb:
The idea of using an external method for dir/type is simply to allow a 
developer to quickly investigate attributes/methods of objects - if you 
are silly enough to actually incorporate this mechanism into 'production' 
code then you should shoot yourself.




And how did you protect your external methods? :-)


We develop on an internal server (no public/outside access), so security for 
developer utilities is not an issue.




Btw: Hint - as developer, start a 2nd ZEO client via
zopectl debug and use dir, type, help()
interactively on your object tree :-)


Good hint!


___
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] Method to return the properties of an object

2006-02-10 Thread Tino Wildenhain

Jonathan schrieb:
The idea of using an external method for dir/type is simply to allow a 
developer to quickly investigate attributes/methods of objects - if you 
are silly enough to actually incorporate this mechanism into 
'production' code then you should shoot yourself.




And how did you protect your external methods? :-)

Btw: Hint - as developer, start a 2nd ZEO client via
zopectl debug and use dir, type, help()
interactively on your object tree :-)

Regards
Tino
___
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] Method to return the properties of an object

2006-02-10 Thread Jonathan
The idea of using an external method for dir/type is simply to allow a 
developer to quickly investigate attributes/methods of objects - if you are 
silly enough to actually incorporate this mechanism into 'production' code 
then you should shoot yourself.



- Original Message - 
From: "Tino Wildenhain" <[EMAIL PROTECTED]>

To: "Jonathan" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, February 10, 2006 8:45 AM
Subject: Re: [Zope] Method to return the properties of an object



Jonathan schrieb:

How would you "shoot" yourself?


dont you think these methods arent accessible from
ZMI code by purpose? :-)

Btw, for Properties and their types there are already
API methods. So no need to put holes into your site security.

Regards
Tino



___
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] Method to return the properties of an object

2006-02-10 Thread Tino Wildenhain

Jonathan schrieb:

How would you "shoot" yourself?


dont you think these methods arent accessible from
ZMI code by purpose? :-)

Btw, for Properties and their types there are already
API methods. So no need to put holes into your site security.

Regards
Tino
___
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] Method to return the properties of an object

2006-02-10 Thread Jonathan

How would you "shoot" yourself?

- Original Message - 
From: "Tino Wildenhain" <[EMAIL PROTECTED]>

To: "Jonathan" <[EMAIL PROTECTED]>
Cc: "George" <[EMAIL PROTECTED]>; 
Sent: Friday, February 10, 2006 8:36 AM
Subject: Re: [Zope] Method to return the properties of an object



Jonathan schrieb:
You can create a small utility external method to call dir() and 
ype()  - very useful!




There are easier ways to shot yourself in the foot :-)




___
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] Method to return the properties of an object

2006-02-10 Thread Tino Wildenhain

Jonathan schrieb:

You can create a small utility external method to call dir() and type()  - very 
useful!



There are easier ways to shot yourself in the foot :-)

___
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] Method to return the properties of an object

2006-02-10 Thread bruno desthuilliers
George wrote:
> Is there a method to return the properties of an object?
> 

Not sure what you're talking about... Properties as defined by the
PropertySheet/PropertyManager API, or just attributes ?


-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.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] Method to return the properties of an object

2006-02-10 Thread Jonathan



You can create a small utility external method to call dir() and 
type()  - very useful!Jonathan 

  - Original Message - 
  From: 
  George 
  To: zope@zope.org 
  Sent: Friday, February 10, 2006 8:11 
  AM
  Subject: [Zope] Method to return the 
  properties of an object
  Is there a method to return the properties of an 
  object?Sorry if it's sth obvious!
  
  

  ___Zope maillist  
  -  Zope@zope.orghttp://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 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] Method to return the properties of an object

2006-02-10 Thread George
Is there a method to return the properties of an object?Sorry if it's sth obvious!
___
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 )