Hi, I've just released 0.9.12. There are no changes to the code since beta 2, but Mike has done some more work on the Users' Guide. ...
982
Mike Orr
iron@...
Apr 3, 2002 5:10 pm
... The documentation changes are some updates to chapters 1 & 2 (introduction, getting started). I also put dummy text in the Developers39; Guide and...
983
Tavis Rudd
tavis@...
Apr 5, 2002 7:27 pm
Hi, Edmund's been having problems getting the pdf version of the Users' Guide to print. Has anyone else experienced this? Tavis ...
984
Mike Orr
iron@...
Apr 6, 2002 4:55 am
... The .awake() method in Template is prob'ly overriding yours. This is the problem I've been complaining about with the current #extends rule that the first...
985
Edmund Lian
elian@...
Apr 6, 2002 4:59 am
I have a logic mix-in that defines an awake method, but when the Cheetah template that uses the mix-in is run, it's pretty obvious that my attempt to override...
986
Edmund Lian
elian@...
Apr 6, 2002 5:18 am
... Yup, you hit the nail on the head. ... I actually do this, but just not in the code I posted since it wasn't relevant. The mix-in I have doesn't actually...
987
Mike Orr
iron@...
Apr 6, 2002 2:49 pm
... I think the Python 2.2 way to do this is to call super(MyClass, self).awake(transaction) in every .awake() except the very top superclass, and it will get...
988
Mike Orr
iron@...
Apr 6, 2002 2:59 pm
... Actually, Edmund, can you try it on your running copy of Cheetah? It's Compiler.py line 700. Then reverse your #extends line to list the Template class...
989
Edmund Lian
elian@...
Apr 6, 2002 4:54 pm
... Yes, it's a lot uglier to do this in Python < 2.2. Makes me want to switch right away... ... Are you sure this is right? AFAIK, there are no implied...
990
Mike Orr
iron@...
Apr 6, 2002 5:19 pm
... I don't know what you mean by "implied semantics". As that page says, if you have a class class MyClass(Mixin, Base): ... it will look first in MyClass,...
The following template and its output show that the behavior of lines with directives-followed-by-comments is weird. I think that if a line contains only a...
993
Edmund Lian
elian@...
Apr 7, 2002 8:27 pm
... http://www.python.org/doc/current/tut/node11.html#SECTION0011510000000000000000 ... I've been educating myself over the weekend about this issue. It's not...
994
Mike Orr
iron@...
Apr 7, 2002 9:50 pm
... Is that a problem? Cheetah's responsibility is to initialize the template class, which it expects in a certain location. It's the programmer39;s...
995
Mike Orr
iron@...
Apr 7, 2002 9:55 pm
... The place where it would make the biggest difference (not that I necessarily think it would be better), would be to split out this "a template is a...
996
Edmund Lian
elian@...
Apr 7, 2002 10:43 pm
... It sure looks like this... After all, the Cheetah servlet's class def is of the form: class ClassName(SiteTemplate, MixInClass): Which will mean that any...
997
Mike Orr
iron@...
Apr 8, 2002 12:22 am
- With an #extends listing multiple superclasses, the one that's a subclass of Template must now be last instead of first; e.g., '#extends MyMixIn,...
998
Tavis Rudd
tavis@...
Apr 8, 2002 12:45 am
Hi, I've being following this inheritance discussion out of the corner of my eye as I work on other stuff ... Edmund's problem seems to be one more reason why ...
999
Edmund Lian
elian@...
Apr 8, 2002 1:40 am
... eye ... why ... Python ... doing ... I was all for keeping multiple inheritance, or at least separate template and logic inheritance hierarchies....
1000
Edmund Lian
elian@...
Apr 8, 2002 2:15 am
... #extends ... like ... I haven't checked out your CVS mods yet, does this mean that you've also modified the compiler so that the last base class's __init__...
1001
Edmund Lian
elian@...
Apr 8, 2002 2:28 am
I just sync'd my local copy of Cheetah with the SF repository, but Cheetah is broken now. The compiler no longer produces anything. I've appended the error...
1002
Mike Orr
iron@...
Apr 8, 2002 3:49 am
... That's exactly what I did. ... -- -Mike (Iron) Orr, iron@... (if mail problems: mso@...) http://iron.cx/ English * Esperanto * Russkiy *...
1003
Mike Orr
iron@...
Apr 8, 2002 4:02 am
... The errors must be related to one of these files: U src/DummyTransaction.py U src/Filters.py U src/SettingsManager.py U src/_properties.py because my tests...
1004
Mike Orr
iron@...
Apr 8, 2002 4:40 am
... Weird. The culprit was DummyTransaction.py: # @@MO: Backed out this change because it made the tests fail # for me and Edmund. # #try: # from cStringIO...
1005
Mike Orr
iron@...
Apr 8, 2002 4:43 am
... Note that these two files also had their cStringIO/StringIO import strategy changed at the same time, but they didn't contribute to the problem. -- -Mike...
FYI, I experimented with delegation to try to get around not being able to override the awake method in a Cheetah servlet. The inheritance structure I used...
1008
Edmund Lian
elian@...
Apr 9, 2002 3:54 am
The UG says that "The #import and #from directives are used to import Python modules or stuff from inside module.s The syntax is identical to the import syntax...
1009
Mike Orr
iron@...
Apr 9, 2002 2:17 pm
... It doesn't look do-able with the current implementation of Cheetah. #from math import * $atan produces: # At the top of the file. from math import * # In...
1010
Edmund Lian
elian@...
Apr 9, 2002 5:15 pm
... I understand what you mean. IOW, without doing an import, the compiler doesn't have any means of determining where to--in effect--bind the variable name...