Re: [Zope-dev] Virtual dataskinned ZClass instance

2001-04-18 Thread Steve Alexander

Godefroid Chapelle wrote:

> 
> 
> When using context.getId(), I get the id of the specialist, not of the
> HumanClass instance...


use container.getId()

Also, try setting a proxy role on the SkinScript.

--
Steve Alexander


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



Re: [Zope-dev] Virtual dataskinned ZClass instance

2001-04-18 Thread Godefroid Chapelle



Steve Alexander a écrit :

> Godefroid Chapelle wrote:
>
> >
> > where getNames is a python method in a DataSkin Class Extender.
> > It is defined as :
> >
> >  import string
> >  list = string.split(context.id, '_')
> >  return list[1]
>
> use getId() perhaps?
>
> --
>
> Steve Alexander

When using context.getId(), I get the id of the specialist, not of the
HumanClass instance...

Actually, what I present is a "toy test" where I try to access the id as you
do in the skinscript exapmle you sent me...


If I change the skinscript to something simpler...

WITH 'test' COMPUTE prenom=RESULT


and the DTML to :







I get the same unauthorized error response but this time when accessing
'prenom'.

I suppose ther something wrong with the default ZClass constructor which is
used by the rack to make the instance... but is that correct ... no idea...

--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 30
1348 Louvain-la-Neuve
Belgium

Tel 010 457490
Mob 0477 363942

TVA 467 093 008
RC Niv 49849



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