This file contains hidden or 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
from scrapy.http import TextResponse | |
from scrapy.selector import HtmlXPathSelector | |
XPATH_TO_TEST = "//img/@src" | |
FILE_TO_TEST_AGAINST = "pathtest.html" | |
f = open(FILE_TO_TEST_AGAINST, 'r') | |
test_html = f.read() | |
response = TextResponse('http://www.example.com', status=200, headers=[], body=test_html) |
This file contains hidden or 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
diff --git a/static/js/lib/Backbone.ModelBinder.js b/static/js/lib/Backbone.ModelBinder.js | |
index b321c37..53881b1 100644 | |
--- a/static/js/lib/Backbone.ModelBinder.js | |
+++ b/static/js/lib/Backbone.ModelBinder.js | |
@@ -25,6 +25,10 @@ | |
this._model = model; | |
this._rootEl = rootEl; | |
+ this._attributeBindings = {}; | |
+ this._options = { // TODO: set this properly |
This file contains hidden or 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
class XHMOMixin(object): | |
""" | |
Use to supply a Tastypie resource with support for X-HTTP-Method-Override | |
headers, e.g.: | |
`class HomeResource(XHMOMixin, ModelResource):` | |
""" | |
def method_check(self, request, allowed=None): | |
""" |
NewerOlder