Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1318 alexandre_ 1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
4
 
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:
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
10
 
1422 alexandre_ 11
 
12
 
1318 alexandre_ 13
dojo.provide("dojo.data.old.provider.Delicious");
14
dojo.require("dojo.data.old.provider.FlatFile");
15
dojo.require("dojo.data.old.format.Json");
16
dojo.data.old.provider.Delicious = function () {
17
	dojo.data.old.provider.FlatFile.call(this);
18
	if (Delicious && Delicious.posts) {
19
		dojo.data.old.format.Json.loadDataProviderFromArrayOfJsonData(this, Delicious.posts);
20
	} else {
21
	}
22
	var u = this.registerAttribute("u");
23
	var d = this.registerAttribute("d");
24
	var t = this.registerAttribute("t");
25
	u.load("name", "Bookmark");
26
	d.load("name", "Description");
27
	t.load("name", "Tags");
28
	u.load("type", "String");
29
	d.load("type", "String");
30
	t.load("type", "String");
31
};
32
dojo.inherits(dojo.data.old.provider.Delicious, dojo.data.old.provider.FlatFile);
33