[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUe-dev] Recent additions to XML-tree of <datasource>-tag
From: |
Johannes Vetter |
Subject: |
[GNUe-dev] Recent additions to XML-tree of <datasource>-tag |
Date: |
Thu, 13 Jan 2005 16:14:33 +0100 |
Hi,
I've added the "sortorder" and "sortfield" tags to the XML-Tree of
GDataSource today. Following is an example:
<sortorder>
<sortfield name="foo" descending="True" />
<sortfield name="bar" />
...
</sortorder>
NOTE: default (if omitted) for 'descending' attribute is 'False'
This addition makes the use of 'order_by' obsolete, although it's still
supported but a depreciation warning will be printed to stdout.
What does this mean to Application Server:
------------------------------------------
Of course appserver is now able to use this feature too.
Using the functions "request ()" or "find ()" you an specifiy an order
like [('foo', True), ('bar', False)] (same order as the example shown
above).
But you don't need to change all your apps right now, since appserver
treats all 'old' sequences with a 'descending=False' default. So the
sort-order "['foo', 'bar']" maps consequently to [('foo', False),
('bar', False)].
Note: It makes no difference wether to use Tuples or Sequences, so
[('foo', True), ('bar', False)]
is the same as
[['foo', True], ['bar', False]]
Thanks,
Johannes
--
BYTEWISE Software GmbH Tel +43 (5577) 89877-0
i.A. Johannes Vetter Fax +43 (5577) 89877-66
A-6890 Lustenau, Enga 2 http://www.bytewise.at
-------------------------------------------------------
Wir bieten die Installation von Debian GNU/Linux auf
Servern für kleinere Netzwerke zum Pauschalpreis an.
Mehr dazu unter http://www.bytewise.at/texte/pl-debian
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
- [GNUe-dev] Recent additions to XML-tree of <datasource>-tag,
Johannes Vetter <=