[Zope-dev] Re: [Zope-CMF] Re: RestrictedPython, TALES Expressions and CMF

2005-10-16 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dieter Maurer wrote:
> Tres Seaver wrote at 2005-10-11 08:58 -0400:
> 
>>...
>>'call_with_ns' should be invoked only for objects with either a
>>'__render_with_namespace__' attribute (PythonScripts fit here) or those
>>with 'isDocTemp' true.  Its only real purpose is to set up the namespace
>>before calling a DTMLMethod;  I don't even understand why PythonScripts
>>have such a method.
> 
> 
> Probably, because they can bind the DTML namespace...

I knew that they *could* bind it;  it just don't understand why anyone
would *want* that feature, given the availability of the other,
non-ambiguous bindings.

I would argue that it is a misfeature, especially given the bug which it
surfaces in 'render' / 'call_with_ns'.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDUppZ+gerLs4ltQ4RAhTCAJ4hxAKWvo9BCdDEjqMynsZAu+pHCACfSvoP
nXcFWDzofq01ofVW8BpR4UI=
=nIvs
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-16 Thread Dieter Maurer
Chris Withers wrote at 2005-10-11 07:50 +0100:
> ...
>I dunno, it's very handy to be able to rely on something RDB-like being 
>installed when you want to tests things like ZSQL methods...

But, for "ZSQL" method tests you do not need a real DA;
a DA fake is sufficient
(you test "ZSQL" methods and not SQL command execution).


-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: [Zope-CMF] Re: RestrictedPython, TALES Expressions and CMF

2005-10-16 Thread Dieter Maurer
Tres Seaver wrote at 2005-10-11 08:58 -0400:
> ...
>'call_with_ns' should be invoked only for objects with either a
>'__render_with_namespace__' attribute (PythonScripts fit here) or those
>with 'isDocTemp' true.  Its only real purpose is to set up the namespace
>before calling a DTMLMethod;  I don't even understand why PythonScripts
>have such a method.

Probably, because they can bind the DTML namespace...

-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )