when using: <!--#in obj sort='name'--> How can one filter the 'name' list prior to sorting? For example, to lower(case) the values, but I am looking for a more general solution.
At 01:47 PM 12/8/98, Kent Polk wrote:
when using: <!--#in obj sort='name'-->
How can one filter the 'name' list prior to sorting? For example, to lower(case) the values, but I am looking for a more general solution.
Have you considered using ComputedAttribute?
Hi Phillip (Phillip J. Eby), in <3.0.5.32.19981208150759.01270780@telecommunity.com> on Dec 08 you wrote:
At 01:47 PM 12/8/98, Kent Polk wrote:
when using: <!--#in obj sort='name'-->
How can one filter the 'name' list prior to sorting? For example, to lower(case) the values, but I am looking for a more general solution.
Have you considered using ComputedAttribute?
Yes, but I was under the impression that they were only available in Tabula. As soon as we figure out how, they are going to be available in TinyTables due to their usefulness. I have done this as an External Method, but I couldn't figure out how to provide a general solution using External Methods. How do you tell your filter what to operate on without being specific? As usual, I'm lost here and probably sitting on the compass... Kent
Kent Polk wrote:
when using: <!--#in obj sort='name'-->
How can one filter the 'name' list prior to sorting? For example, to lower(case) the values, but I am looking for a more general solution.
The argument given to sort could be a method name: <!--#in obj sort=nameLower--> def nameLower(self): return lower(name) or a computed attribute, as Phillip suggested. Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (540) 371-6909 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (3)
-
Jim Fulton -
kent@eaenki.nde.swri.edu -
Phillip J. Eby