code clean

code clean
This commit is contained in:
Christophe Benz 2010-07-12 03:09:24 +02:00
commit 1847ea5f34
14 changed files with 54 additions and 22 deletions

View file

@ -19,10 +19,12 @@
from .cap import ICap
__all__ = ['ICapDating', 'Profile']
__all__ = ['ICapDating']
class OptimizationNotFound(Exception): pass
class OptimizationNotFound(Exception):
pass
class Optimization(object):
def start(self):
@ -31,6 +33,7 @@ class Optimization(object):
def stop(self):
raise NotImplementedError()
class StatusField(object):
FIELD_TEXT = 0x001 # the value is a long text
FIELD_HTML = 0x002 # the value is HTML formated
@ -41,6 +44,7 @@ class StatusField(object):
self.value = value
self.flags = flags
class ICapDating(ICap):
def get_status(self):
"""