durusmail: quixote-users: htmltext in PTL
htmltext in PTL
2004-12-10
2004-12-10
2004-12-10
2004-12-11
2004-12-11
htmltext in PTL
Mike Orr
2004-12-10
doc/PTL.html says, "Both htmltext and htmlescape are available from the
global namespace in PTL modules."  However, this is not the case.

=== x.ptl
#print htmltext
def foo [html] ():
    print htmltext

=== xrunner.py
from quixote import enable_ptl
enable_ptl()
import x
print `x.foo()`

Produces:
      NameError: global name 'htmltext' is not defined

Uncommenting the other "print htmltext" does the same thing.  Adding
"from quixote.html import htmltext" produces reasonable output:

$ python /tmp/xrunner.py



Is this a bug or a misdocumentation?

Updated my demo for Quixote 2.0a3.  Actually, no changes were required.
http://sluggo.kicks-ass.org/cgi-bin/superdemo1-2.cgi/

--
-Mike Orr (aka. Sluggo), mso@oz.net  (iron@sense-sea-MegaSub-1-465.oz.net)
   http://sluggo.kicks-ass.org/                  Cxu vi parolas Esperante?

reply