You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
334 B
15 lines
334 B
![]()
12 years ago
|
#! /usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
#
|
||
|
# Copyright (C) 2011 Sebastian Pipping <sebastian@pipping.org>
|
||
|
# Licensed under GPL v3 or later
|
||
|
|
||
|
from decimal import Decimal
|
||
|
|
||
|
class Item:
|
||
|
def __init__(self, d):
|
||
|
self.deposit = Decimal(d['deposit'])
|
||
|
self.id = int(d['id'])
|
||
|
self.name = d['name']
|
||
|
self.price = Decimal(d['price'])
|