Re: [Zope-dev] ZPT trials and tribulations

2001-03-16 Thread Martijn Pieters

On Fri, Mar 16, 2001 at 04:59:16PM -, Phil Harris wrote:
> All,
> 
> I'm in the process of trying out the ZPT stuff(thanks to Duncan Booth for
> the win32 stuff).
> 
> Anyway up, It's all going according to plan but I have a few issues, maybe
> someone has a better idea than me what's wrong here.
> 
> 
> 
> 
> http://xml.zope.org/namespaces/tal"
>   xmlns:metal="http://xml.zope.org/namespaces/metal">
>   
> The title
>   
>   
> the title
> 
>   crap
>   crap
>   crap
> 
> 
> click here to refresh
> 
>   
> 
> 
> 
> 
> The problem is that I'm getting a traceback (I won't bore you with the
> details unless I have to) to the effect of 'ui' being unknown.
> 
> If I replace the 'div' in the code above with:
> 
> crap
> crap
> crap
> 
> then all works according to design, but with a lot more overhead.
> 
> btw, the userInfo method returns a dictionary of LDAP information, it works
> in all other contexts, so I don't think the problem is there.

As Ethan said, the release you are using doesn't yet support access to
defined variables in python.

Instead, try the following:

  
crap
crap
crap
  

It will be much more readable, and it removes a layer of interpretation
too.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
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] ZPT trials and tribulations

2001-03-16 Thread Evan Simpson

From: "Phil Harris" <[EMAIL PROTECTED]>
> The problem is that I'm getting a traceback (I won't bore you with the
> details unless I have to) to the effect of 'ui' being unknown.

Mmph.  That release has a problem with exposing TAL variables to Python
code.  There will be a *much* better one Real Soon Now.

Cheers,

Evan @ digicool


___
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 )



[Zope-dev] ZPT trials and tribulations

2001-03-16 Thread Phil Harris

All,

I'm in the process of trying out the ZPT stuff(thanks to Duncan Booth for
the win32 stuff).

Anyway up, It's all going according to plan but I have a few issues, maybe
someone has a better idea than me what's wrong here.




http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal">
  
The title
  
  
the title

  crap
  crap
  crap


click here to refresh

  




The problem is that I'm getting a traceback (I won't bore you with the
details unless I have to) to the effect of 'ui' being unknown.

If I replace the 'div' in the code above with:

crap
crap
crap

then all works according to design, but with a lot more overhead.

btw, the userInfo method returns a dictionary of LDAP information, it works
in all other contexts, so I don't think the problem is there.

Anyone got any ideas?

Phil
[EMAIL PROTECTED]




___
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 )