From 1f09368a99a0af5ab1f3324253e580f9f09249bf Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 3 Jul 2010 21:21:45 +0200 Subject: [PATCH] new method 'get_status' --- weboob/capabilities/dating.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/weboob/capabilities/dating.py b/weboob/capabilities/dating.py index 9de157fa..c8bc7f50 100644 --- a/weboob/capabilities/dating.py +++ b/weboob/capabilities/dating.py @@ -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