./start_env.sh example.com
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
'use strict'; | |
require('rootpath')(); | |
var config = require('config'); | |
var app = require('lib/app'); | |
var http = require('http'); | |
var server = http.Server(app); | |
require('realtime')(server); |
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
'use strict'; | |
require('rootpath')(); | |
var config = require('config'); | |
var app = require('lib/app'); | |
var http = require('http'); | |
var server = http.Server(app); | |
require('realtime')(server); |
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
def build(self): | |
rows = [] | |
def force_number(val): | |
try: | |
return float(val) | |
except: | |
return 0 | |
users = WaterUser.objects.values( |
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
DATABASES = { | |
'default': { | |
'ENGINE': 'django.contrib.gis.db.backends.postgis', | |
'NAME': 'dinvio', | |
'USER': 'dinvio', | |
'PASSWORD': '', | |
}, | |
} |
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
{ | |
"waybill": null, | |
"updated_at": "2014-11-09T02:23:23.146221", | |
"turnover": "0.00", | |
"tariff": null, | |
"status": "new", | |
"sender_phone": "79198558244", | |
"sender": { | |
"name": "\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c", | |
"id": 1 |
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
@property | |
def service(self): | |
return self.company.code |
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
for package in my_packages: | |
if (package.heigth > greater_package.heigth and | |
package.width > greater_package.width and | |
package.length > greater_package.length): | |
return package.bin |
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
mapped_items = [{ | |
'p_sum': i.get('price', None), | |
'p_dimensions': i.get('dimensions', []), | |
'p_weight': i.get('weight'), | |
'p_quantity': i.get('quantity'), | |
'p_valuable': i.get('valuable', False), | |
} for i in items] |
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
0b0fda55c87274f069f93683dc61e51d2bba8801 | |
Author: Alex Kir <[email protected]> | |
Date: Mon Nov 17 11:29:50 2014 +0200 | |
Modules update | |
* Swapped json to simplejson to get decimal encoding/decoding | |
* Updated requirements with suds-jurko instead of suds | |
* Updated requirements with simplejson | |
2 files changed, 3 insertions(+), 3 deletions(-) |
OlderNewer