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
# -*- coding: utf-8 -*- | |
# 1. create virtual environment: virtualenv venv | |
# 2. install scrapy: ./venv/bin/pip install scrapy | |
# 3. run spider: ./venv/bin/scrapy runspider spider.py -o saras_delfi.json | |
import scrapy | |
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
def batch_list_instance_query(self, **kwargs): | |
return EmployeeRoleEstablishment.objects.filter(kwargs) | |
def batch_list_instance_query(self, establishment): | |
return EmployeeRoleEstablishment.objects.filter( | |
establishment=establishment | |
) |
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
info: INFO: request.POST: {} | |
info: INFO: ==========Start syncing ProductCategory(1) via Establishment(4), push all mode is False========== | |
info: INFO: Fields configurations: {1: {'fields': ('subcategories',), 'subcategories': {1: {'fields': ('products',), 'products': {1: {'fields': None}}}}}} | |
info: INFO: ==========Finish syncing========== | |
error: ERROR: Encountered Error: 3b65f62 - /Users/linas/code/revel/Python-Backends/revelV2/core/syncer/syncer.py:111:get_sync_kwargs:u'Values of sync_on field "%s" mustn\'t be empty. Please reconfigure syncer.' % field | |
error: ERROR: Internal Server ERROR: /resources/OrderAllInOne/ | |
Traceback (most recent call last): | |
File "/Users/linas/code/revel/Python-Backends/revelV2/coreApi/api/base.py", line 372, in wrapper | |
response = callback(request, *args, **kwargs) | |
File "/Users/linas/code/revel/Python-Backends/revelV2/env/lib/python2.7/site-packages/tastypie/resources.py", line 433, in dispatch_list |