Re: [Zope-dev] RFC: How-To on subclassing Shared.DC.Scripts.Script.Script

2001-06-25 Thread Lalo Martins

On Mon, Jun 25, 2001 at 06:36:30PM -0500, Stephan Richter wrote:
> 
> But when I started reading it, I wanted to learn more of how I could 
> implement a new scripting language into Zope, such as a ZOQL (as mentioned 
> on the SmartObjects mailing list: 
> http://imail.iuveno-net.de/pipermail/smartobjects/), Tcl, XQuery or XPath. 
> Even though your usage of the Script-class is unique and obviously useful, 
> I think you should make a note, that will not describe how to implement 
> another scripting language. But other than that, I learned something new.

Thank you :-)

I don't think I could teach something as generic as this; the
process would be completely different for each language, and
depend on your interpreter. For starters, PythonScript and
ZopePageTemplates are completely different.

The classes to add new scripting languages would be similar up
to the point I described in my How-To, I'm afraid. Up from
there, it's you and your interpreter.

[]s,
   |alo
   +
--
Esvazie sua mente, pequeno gafanhoto.
   Nós temos muito o que aprender... mas primeiro...
   Primeiro você terá que desaprender o que acha que já sabe.
--
http://www.laranja.org/mailto:[EMAIL PROTECTED]
 pgp key: http://www.laranja.org/pessoal/pgp

Brazil of Darkness (RPG)  ---   http://www.BroDar.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] RFC: How-To on subclassing Shared.DC.Scripts.Script.Script

2001-06-25 Thread Stephan Richter


>It is at http://www.zope.org/Members/lalo/scriptclass-dev now;
>this is a ZWikiPage, so you can comment right there. The "real"
>address will be http://www.zope.org/Members/lalo/scriptclass
>when it's ready.

Mmmh, after reading the how-to (quickly), I do understand for what you are 
using Script for.

But when I started reading it, I wanted to learn more of how I could 
implement a new scripting language into Zope, such as a ZOQL (as mentioned 
on the SmartObjects mailing list: 
http://imail.iuveno-net.de/pipermail/smartobjects/), Tcl, XQuery or XPath. 
Even though your usage of the Script-class is unique and obviously useful, 
I think you should make a note, that will not describe how to implement 
another scripting language. But other than that, I learned something new.

Thanks for the tutorial.

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development & Technical Project Management


___
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] RFC: How-To on subclassing Shared.DC.Scripts.Script.Script

2001-06-25 Thread Lalo Martins

I'm thinking here that subclassing Script is the way to go for
any object that needs finer control on how it is called - and
I'll say that of any class that doesn't just do

  index_html = HTMLFile(foo, globals())

So, I wrote a How-To. It's definitely not ready for prime-time,
as I haven't actually used it to implement a class, but I think
it's correct. I'd appreciate if people took a look at it and
commented both on correctness and clarity/usefulness.

It is at http://www.zope.org/Members/lalo/scriptclass-dev now;
this is a ZWikiPage, so you can comment right there. The "real"
address will be http://www.zope.org/Members/lalo/scriptclass
when it's ready.

[]s,
   |alo
   +
--
http://www.laranja.org/mailto:[EMAIL PROTECTED]
 pgp key: http://www.laranja.org/pessoal/pgp

Brazil of Darkness (RPG)  ---   http://www.BroDar.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 )