[Zope] RE: What does "this()" return?

Hung Jung Lu hungjunglu@hotmail.com
Thu, 06 Jan 2000 14:59:08 PST


>From: Nemeth Miklos <nemeth@iqsoft.hu>
> > Is there any doc on "this()" or "id()"?
>I think you explored this teritory. YOU should create a how-to on the
>topic.

Okie-dokie. But then I have to join zope as a member, huh? :)
If you provide me with enough info on how to submit a
how-to, I will make one.

By the way, is it possible to set up some search features on the
how-to's? With over 100 how-to's, it is a little bit painful
to go through them.

> > Sometimes learning a new software is
> > not so much what you know to do, but what you know NOT TO DO.
> >
>That is why programmers do not like to learn new languages and tools.
>That is why UNIX is forever.

I guess there was a misunderstanding here. I am a programmer
and I like to learn new language and tools. I am just making
the comment that, as a programmer, it's often more important
to know the limitations of a language/tool, than to know its
capabilities.

For instance, in Python you can't write the incremental operator
i++. You write it, you run into a bug, and you waste your time.

It's like when I was learning portuguese... I already knew
spanish. The two languages are too similar, so instead of
learning what words I can use in portuguese, I was learning
what words I SHOULDN'T use, why I shouldn't use them, and
what alternatives there were. :)

> > Also, is there any documentation on calling DTML methods with arguments? 
>I
> > know you can do it with "myMethod(_.None,  _, arg1=val1, arg2=val2, 
>...)",
> > but I'd like to know what the role of _.None is. (I know _ is the
> > namespace...), that is, if I replace it with something like
> > "myMethod(coolDude, _, ...)" what sort of catastrophe might happen. :)
> >
>This is completely new to me! Where did you learned it!
>I thought I read or at least browsed all how-tos and Zope docs.

Ha! After reading Zope E-group for a few months, I ran into
a few messages giving out all kinds of undocumented features.
For instance, the &dmtl-myVar; directive, which is equivalent
to <dtml-var myVar>. I remember someone said that the _.None
argument represents the "target object" for DMTL methods.
Now, what is a target object, I don't know. :)

regards,

Hung Jung

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com