correct console application
This commit is contained in:
parent
f65697a884
commit
518358e284
1 changed files with 0 additions and 18 deletions
|
|
@ -56,21 +56,7 @@ class JobAdvertFormatter(IFormatter):
|
||||||
|
|
||||||
class JobAdvertListFormatter(PrettyFormatter):
|
class JobAdvertListFormatter(PrettyFormatter):
|
||||||
MANDATORY_FIELDS = ('id', 'title')
|
MANDATORY_FIELDS = ('id', 'title')
|
||||||
"""
|
|
||||||
def format_obj(self, obj, alias):
|
|
||||||
title = self.get_title(obj)
|
|
||||||
desc = self.get_description(obj)
|
|
||||||
|
|
||||||
if desc is None:
|
|
||||||
title = '%s%s%s' % (self.NC, title, self.BOLD)
|
|
||||||
|
|
||||||
result = u'%s* (%s)\n %s%s' % (self.BOLD, obj.fullid, title, self.NC)
|
|
||||||
|
|
||||||
if desc is not None:
|
|
||||||
result += u'\n\t%s' % desc
|
|
||||||
|
|
||||||
return result
|
|
||||||
"""
|
|
||||||
def get_title(self, obj):
|
def get_title(self, obj):
|
||||||
return '%s' % (obj.title)
|
return '%s' % (obj.title)
|
||||||
|
|
||||||
|
|
@ -101,10 +87,6 @@ class Handjoob(ReplApplication):
|
||||||
'info': 'job_advert',
|
'info': 'job_advert',
|
||||||
}
|
}
|
||||||
|
|
||||||
def main(self, argv):
|
|
||||||
self.load_config()
|
|
||||||
return ReplApplication.main(self, argv)
|
|
||||||
|
|
||||||
def do_search(self, pattern):
|
def do_search(self, pattern):
|
||||||
"""
|
"""
|
||||||
search PATTERN
|
search PATTERN
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue