Example #1
0
def create(device, asin, kind, timestamp, begin, end, position, state, text = None):
	timestamp = _parse_timestamp(timestamp, device.lto)
	begin = int(begin)
	end = int(end)
	position = int(position) if position else begin
	state = _bin(state)
	db.create(device.serial, asin, kind, timestamp, begin, end, position, state, text)
Example #2
0
def create(device,
           asin,
           kind,
           timestamp,
           begin,
           end,
           position,
           state,
           text=None):
    timestamp = _parse_timestamp(timestamp, device.lto)
    begin = int(begin)
    end = int(end)
    position = int(position) if position else begin
    state = _bin(state)
    db.create(device.serial, asin, kind, timestamp, begin, end, position,
              state, text)
Example #3
0
def modify(device, asin, kind, timestamp, begin, end, text = None):
	timestamp = _parse_timestamp(timestamp, device.lto)
	begin = int(begin)
	end = int(end)
	db.modify(device.serial, asin, kind, timestamp, begin, end, text)
Example #4
0
def delete(device, asin, kind, timestamp, begin, end):
	timestamp = _parse_timestamp(timestamp, device.lto)
	begin = int(begin)
	end = int(end)
	db.delete(device.serial, asin, kind, timestamp, begin, end)
Example #5
0
def set_last_read(device, asin, timestamp, begin, position, state):
	timestamp = _parse_timestamp(timestamp, device.lto)
	begin = int(begin)
	position = int(position) if position else begin
	state = _bin(state)
	db.set_last_read(device.serial, asin, timestamp, begin, position, state)
Example #6
0
def modify(device, asin, kind, timestamp, begin, end, text=None):
    timestamp = _parse_timestamp(timestamp, device.lto)
    begin = int(begin)
    end = int(end)
    db.modify(device.serial, asin, kind, timestamp, begin, end, text)
Example #7
0
def delete(device, asin, kind, timestamp, begin, end):
    timestamp = _parse_timestamp(timestamp, device.lto)
    begin = int(begin)
    end = int(end)
    db.delete(device.serial, asin, kind, timestamp, begin, end)
Example #8
0
def set_last_read(device, asin, timestamp, begin, position, state):
    timestamp = _parse_timestamp(timestamp, device.lto)
    begin = int(begin)
    position = int(position) if position else begin
    state = _bin(state)
    db.set_last_read(device.serial, asin, timestamp, begin, position, state)