Fix permissions, encoding and copyrights
This commit is contained in:
parent
2012ac3690
commit
f73f671cbe
19 changed files with 29 additions and 34 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright(C) 2012-2013 Florent Fourcot
|
||||
# Copyright(C) 2015 Christophe Lampin
|
||||
#
|
||||
# This file is part of weboob.
|
||||
#
|
||||
|
|
@ -22,11 +22,9 @@ from __future__ import print_function
|
|||
from decimal import Decimal
|
||||
|
||||
from weboob.capabilities.base import empty
|
||||
from weboob.capabilities.shop import CapShop, Order, Payment, Item
|
||||
from weboob.capabilities.shop import CapShop, Order, Item
|
||||
from weboob.tools.application.repl import ReplApplication, defaultcount
|
||||
from weboob.tools.application.formatters.iformatter import PrettyFormatter, IFormatter
|
||||
from weboob.tools.application.base import MoreResultsAvailable
|
||||
from weboob.core import CallErrors
|
||||
from weboob.tools.application.formatters.iformatter import IFormatter
|
||||
|
||||
__all__ = ['Shopoob']
|
||||
|
||||
|
|
@ -92,7 +90,7 @@ class PaymentsFormatter(IFormatter):
|
|||
|
||||
def flush(self):
|
||||
self.output(u'-----------+-----------------+----------')
|
||||
|
||||
|
||||
class Shopoob(ReplApplication):
|
||||
APPNAME = 'shopoob'
|
||||
VERSION = '1.1'
|
||||
|
|
@ -145,9 +143,7 @@ class Shopoob(ReplApplication):
|
|||
|
||||
for id, backend in l:
|
||||
names = (backend,) if backend is not None else None
|
||||
# XXX: should be generated by backend? -Flo
|
||||
# XXX: no, but you should do it in a specific formatter -romain
|
||||
# TODO: do it, and use exec_method here. Code is obsolete
|
||||
# TODO: Use specific formatter
|
||||
mysum = Item()
|
||||
mysum.label = u"Sum"
|
||||
mysum.url = u"Generated by shopoob"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue