RE: [Zope] Instatiate object instances :-)

2001-01-26 Thread Dieter Maurer

Tom Jenkins writes:
 > Right, the getPhysicalPath method definately works... although I've only
 > used the unrestrictedTraverse in python classes.  I haven't delved too
 > deeply in how to use the tuple returned by getPhysicalPath in DTML.
"unrestrictedTraverse" is not available in DTML, only
its restricted variant.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Instatiate object instances :-)

2001-01-25 Thread Tom Jenkins


> -Original Message-
> From: Aleksander Salwa [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 4:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Zope] Instatiate object instances :-)
> 
> 
> Paths can be treated as "pointers", so methods
> getPhysicalPath/(un)restrictedTraverse may be what you need.
> 

Right, the getPhysicalPath method definately works... although I've only
used the unrestrictedTraverse in python classes.  I haven't delved too
deeply in how to use the tuple returned by getPhysicalPath in DTML.


Tom Jenkins   |Its
devIS - Development InfoStructure |all you
703.525.6485   [EMAIL PROTECTED] |need it
http://www.devis.com  |to be
 

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Instatiate object instances :-)

2001-01-25 Thread Aleksander Salwa

Paths can be treated as "pointers", so methods
getPhysicalPath/(un)restrictedTraverse may be what you need.

[EMAIL PROTECTED], [EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Instatiate object instances :-)

2001-01-25 Thread Timothy Wilson

On Thu, 25 Jan 2001, Mario Valente wrote:

>   The subject of this message is also another hypothesis: each object in
>  Zope has a reference (the "Object Instance at #hiusd9743" messages...). Is
>  it possible to instantiate object instances :-) ? This would be, of
> course, pointers.

This would seem to be just a perfect job for Zope's ZCatalog. There's a
chapter in the new Zope book 
(http://www.zope.org/Members/michel/ZB/) devoted to the ZCatalog plus a
number of How-Tos.

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] || http://linux.com/


___
Zope maillist  -  [EMAIL PROTECTED]
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 )