Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1372 Rev 1422
1
/*
1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
3
	All Rights Reserved.
4
 
4
 
5
	Licensed under the Academic Free License version 2.1 or above OR the
5
	Licensed under the Academic Free License version 2.1 or above OR the
6
	modified BSD license. For more information on Dojo licensing, see:
6
	modified BSD license. For more information on Dojo licensing, see:
7
 
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
9
*/
-
 
10
 
-
 
11
 
10
 
12
 
11
dojo.provide("dojo.data.old.provider.Delicious");
13
dojo.provide("dojo.data.old.provider.Delicious");
12
dojo.require("dojo.data.old.provider.FlatFile");
14
dojo.require("dojo.data.old.provider.FlatFile");
13
dojo.require("dojo.data.old.format.Json");
15
dojo.require("dojo.data.old.format.Json");
14
dojo.data.old.provider.Delicious = function () {
16
dojo.data.old.provider.Delicious = function () {
15
	dojo.data.old.provider.FlatFile.call(this);
17
	dojo.data.old.provider.FlatFile.call(this);
16
	if (Delicious && Delicious.posts) {
18
	if (Delicious && Delicious.posts) {
17
		dojo.data.old.format.Json.loadDataProviderFromArrayOfJsonData(this, Delicious.posts);
19
		dojo.data.old.format.Json.loadDataProviderFromArrayOfJsonData(this, Delicious.posts);
18
	} else {
20
	} else {
19
	}
21
	}
20
	var u = this.registerAttribute("u");
22
	var u = this.registerAttribute("u");
21
	var d = this.registerAttribute("d");
23
	var d = this.registerAttribute("d");
22
	var t = this.registerAttribute("t");
24
	var t = this.registerAttribute("t");
23
	u.load("name", "Bookmark");
25
	u.load("name", "Bookmark");
24
	d.load("name", "Description");
26
	d.load("name", "Description");
25
	t.load("name", "Tags");
27
	t.load("name", "Tags");
26
	u.load("type", "String");
28
	u.load("type", "String");
27
	d.load("type", "String");
29
	d.load("type", "String");
28
	t.load("type", "String");
30
	t.load("type", "String");
29
};
31
};
30
dojo.inherits(dojo.data.old.provider.Delicious, dojo.data.old.provider.FlatFile);
32
dojo.inherits(dojo.data.old.provider.Delicious, dojo.data.old.provider.FlatFile);
31
 
33