~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to lib/yui/datasource/README

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DataSource Release Notes
 
2
 
 
3
**** version 2.6.0 ****
 
4
 
 
5
* GA release.
 
6
* The DataSource class has been refactored into a DataSourceBase base class and
 
7
the subclasses LocalDataSource, FunctionDataSource, XHRDataSource, and
 
8
ScriptNodeDataSource. While backward compatibility of the YAHOO.util.DataSource
 
9
constructor has been maintained, implementers should be aware that calling
 
10
new YAHOO.util.DataSource() now actually returns one of these
 
11
subclasses. Implementers can alternatively call a subclass constructor directly.
 
12
The DataSource constructor returns one of the subclasses based on the oLiveData
 
13
passed to it, or the dataType config value. This class-based architecture no
 
14
longer meaningfully supports swapping data types on the fly.
 
15
* Empty responses of TYPE_FLAT no longer return empty string results.
 
16
* Parsing of totalRecords is no longer supported as a top-leval schema value.
 
17
Implementers should access this value of using a metaField.
 
18
* XML parsing has been updated for support of CDATA sections and long text values
 
19
split into multiple nodes.
 
20
* Now passing oCallback object to doBeforeCallback() and doBeforeParseData() methods.
 
21
* YAHOO.util.Date now supports strftime formatting.
 
22
 
 
23
**** version 2.5.2 ****
 
24
 
 
25
* No changes.
 
26
 
 
27
**** version 2.5.1 ****
 
28
 
 
29
* Replaced custom function parsing with parsed/walked value locators for
 
30
    responseSchema.resultsList, .fields, etc
 
31
* Added metaFields to responseSchema to capture arbitrary response data
 
32
 
 
33
**** version 2.5.0 ****
 
34
 
 
35
* doBeforeCallback() - The second argument is now oFullResponse rather than oRawResponse.
 
36
* handleResponse() -
 
37
      o oCallback is now an object literal pointing to success and failure
 
38
      handlers and can contain scope and argument values.
 
39
      o The oCaller argument is now deprecated.
 
40
      o When callback function is passed oRequest and oParsedResponse values,
 
41
      the oParsedResponse object now consistently returns the following values:
 
42
            + tId (Number)
 
43
            + results (Array)
 
44
            + error (Boolean)
 
45
            + totalResults (Number) (when available)
 
46
* makeConnection() -
 
47
      o oCallback is now an object literal pointing to success and failure
 
48
      handlers and can contain scope and argument values.
 
49
      o The oCaller argument is now deprecated.
 
50
* parseArrayData() - The second argument is now oFullResponse rather than oRawResponse.
 
51
* parseHTMLTableData() - The second argument is now oFullResponse rather than oRawResponse.
 
52
* parseJsonData() - The second argument is now oFullResponse rather than oRawResponse.
 
53
* parseTextData() - The second argument is now oFullResponse rather than oRawResponse.
 
54
* parseXMLData() - The second argument is now oFullResponse rather than oRawResponse.
 
55
* sendRequest() -
 
56
      o oCallback is now an object literal pointing to success and failure
 
57
      handlers and can contain scope and argument values.
 
58
      o The oCaller argument is now deprecated.
 
59
* setInterval() -
 
60
      o oCallback is now an object literal pointing to success and failure
 
61
      handlers and can contain scope and argument values.
 
62
      o The oCaller argument is now deprecated.
 
63
* cacheRequestEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
 
64
* dataErrorEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
 
65
* getCachedResponseEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
 
66
* requestEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
 
67
* responseCacheEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
 
68
* responseEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
 
69
* responseParseEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
 
70
 
 
71
 
 
72
 
 
73
**** version 2.4.0 ****
 
74
 
 
75
* Support for YUI JSON Utility.
 
76
 
 
77
* Implemented setInterval(), clearInterval(), and clearAllIntervals() for polling.
 
78
 
 
79
* Text data parsing algorithm now tolerates newlines within and at the end of data.
 
80
 
 
81
 
 
82
 
 
83
**** version 2.3.1 ****
 
84
 
 
85
* No changes.
 
86
 
 
87
 
 
88
 
 
89
**** version 2.3.0 ****
 
90
 
 
91
* DataSource requests over XHR no longer automatically insert a "?" in the URIs
 
92
between the host and the query. Implementers should explicitly include the
 
93
question mark if it is required by your server. Please refer to the DataTable XHR
 
94
examples for implementation details.
 
95
 
 
96
* DataSource provides the following static type conversion methods:
 
97
DataSource.parseDate(), DataSource.parseNumber(), and DataSource.parseString().
 
98
These are executed in the scope of the DataSource instance.
 
99
 
 
100
* DataSource now supports the following values for the property xhrConnMode:
 
101
    "queueRequests"
 
102
    "allowAll"
 
103
    "cancelStaleRequests"
 
104
    "ignoreStaleResponses"
 
105
 
 
106
* Added property connMethodPost to support POST requests.
 
107
 
 
108
* The parsed response object passed to the callback function now has the
 
109
following properties:
 
110
    tId {Number} Unique transaction ID
 
111
    results {Array} Array of parsed data results
 
112
    error {Boolean} True if there was an error
 
113
 
 
114
 
 
115
 
 
116
**** version 2.2.2 ***
 
117
 
 
118
* No changes.
 
119
 
 
120
 
 
121
 
 
122
**** version 2.2.1 ***
 
123
 
 
124
* Fixed parseTextData() to longer reverse-order data or truncate first record.
 
125
* Fixed bug where data values of 0 (zero) were being converted to empty string.
 
126
* Fixed erroneous undefined values created by parseDataArray().
 
127
* Callback functions now receive an additional argument in the form of a boolean
 
128
to indicate data error.
 
129
* Support for nested JSON data.
 
130
* Support for responseShema.fields.converter to take string response and custom
 
131
convert data type.
 
132
* Added static converter methods YAHOO.util.DataSource.convertNumber and
 
133
YAHOO.util.DataSource.convertDate.
 
134
* Improved type checking with YAHOO.lang.
 
135
 
 
136
 
 
137
 
 
138
**** version 2.2.0 ***
 
139
 
 
140
* Beta release.