Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jason
authored and
jason
committed
Jul 13, 2012
1 parent
432719b
commit ae0f4d5
Showing
13 changed files
with
12,818 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.db import models | ||
|
||
# Create your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
var svenjs = svenjs || {}; | ||
|
||
//TODO: use a more robust pattern for object creation | ||
svenjs.Sven = function(url){ | ||
|
||
this.url = url; | ||
return this; | ||
|
||
}; | ||
|
||
/* query function */ | ||
svenjs.Sven.prototype.query = function(successCallback){ | ||
|
||
//var url = this.url + "/sketch/query/" + this.database + "/" + collection + "/" + command + "/"; | ||
var url = this.url + "/anta/api/get-documents/corpus/test/?indent"; | ||
console.log("query", url); | ||
|
||
$.ajax({ | ||
type: 'GET', | ||
url: url, | ||
success: successCallback, | ||
dataType: 'json' | ||
}); | ||
|
||
|
||
}; | ||
|
Oops, something went wrong.