code clean
code clean
This commit is contained in:
parent
5c2ab81e16
commit
1847ea5f34
14 changed files with 54 additions and 22 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue