Re: [Zope-dev] dtml-in batching badly

2001-06-18 Thread LEE, Kwan Soo

No it's not a bug(in code) but a feature.
May You call it a bug (in usability), though.

What causes it is that the orphan value defaults to 3 when not explicitely set.

See the online help for in tag.

LEE Kwan Soo
¢—ƒzùšŠYb²Öh¥àÞ¿:)zŠà†Ûiÿùb²Û3¢—¨®æj)fjåŠËbú?Ί^uëÍ¡Êè²Êh²Û(¬tÌ-éܡا¥jם–+-²m§ÿåŠËlΊ^¢¸?™¨¥™©ÿ–+-Šwèÿ:)y©ç¢éÜzm§ÿåŠËlΊ^¢¸?™¨¥™©ÿ–+-Šwèÿ:)


[Zope-dev] What's 'section' in blocks[0] in block dtml tag?

2001-01-01 Thread LEE Kwan Soo

Hi. I'm playing/struggling to make a custom block dtml tag.
Let me call it, dtml-quote tag.
dtml-quote tag is similar to dtml-comment tag except it will emit
html_quoted, not rendered version of what lies 
between dtml-quote ... /dtml-quote.
(I feel it will be usefull when I show  write some dtml examples on my
korean zope site).

After seeing around some python sources,
I finally got that tname is the name of the tag, args is args, and section
is something, in the following code.

def __init__(self, blocks):
tname, args, section = blocks[0]

and section seems to have 6 attributes/methods:
'__name__', '_v_blocks', '_v_cooked', '_vars', 'blocks', 'globals', 'raw'

But that mistic raw is null string, '' and blocks is no help for me.

How can I retrieve the raw source string enclosed in a block tag pair?

LEE Kwan Soo.

ps. My English is evem more cryptic this morning. Sorry I've sat up alnight play 
Kingdom Under Fire.

___
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] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread LEE Kwan Soo

Oh, well, I'd bet this is a silly question. But I can not resist nor find answer by 
myself.

Q: Why don't you BTree-fy all the subclasses of ObjectManager? 
Is there a reason that anyone but can a newbie see?

LEE Kwan Soo.

ps. I only hope to be able to make clear statement in English, but i am already too 
sleepy now. sorry.

- Original Message - 
From: "Shane Hathaway" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 28, 2000 10:26 PM
Subject: [Zope-dev] New version of BTreeFolder


 Hi gang,
 
 This version just fixes a bug with the folder contents tab on Windows. 
 For some reason, on Windows 95 (and perhaps other platforms) the Python
 interpreter behaves differently enough that if you use a class
 attribute from a different module and put it in your own class, you may
 in fact be modifying its global context.  It's probably a bug in
 Python.  As a workaround, this version of BTreeFolders doesn't have the
 "details" tab anymore.
 
 http://www.zope.org/Members/hathawsh/BTreeFolder/BTreeFolder-0.1.1.tar.gz
 
 BTW has anyone done any semi-formal speed tests?  It's rumored that a
 custom getattr in Python can cause a bit of a slowdown.  We could write
 a custom getattr in C to solve the problem.  But we don't want to do
 any premature optimization.
 
 Shane
 
 ___
 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 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 )