new method 'get_status'

This commit is contained in:
Romain Bignon 2010-07-03 21:21:45 +02:00
commit 1f09368a99

View file

@ -56,10 +56,26 @@ 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
def __init__(self, key, label, value, flags=0):
self.key = key
self.label = label
self.value = value
self.flags = flags
class ICapDating(ICap):
def get_profile(self, _id):
raise NotImplementedError()
def get_status(self):
"""
Get a list of fields
"""
raise NotImplementedError()
OPTIM_PROFILE_WALKER = None
OPTIM_VISIBILITY = None