implemented function heads for new features

This commit is contained in:
Ronald Schaten 2013-04-03 23:47:05 +02:00
parent b30ba9a9a8
commit d1520b3827

View File

@ -243,6 +243,14 @@ def fetch_all_feeds(session):
fetch_single_feed(session, feed)
print
def delete_feed(session, feed_id):
print 'deleting feed %d...' % feed_id
# TODO implement delete
def reset_feed(session, feed_id):
print 'resetting feed %d...' % feed_id
# TODO implement reset
if __name__ == '__main__':
streamWriter = codecs.lookup('utf-8')[-1]
sys.stdout = streamWriter(sys.stdout)
@ -290,9 +298,9 @@ if __name__ == '__main__':
if args.list:
list_all_feeds(session)
if args.delete:
print 'TODO: delete feed <%d>' % args.delete
delete_feed(session, args.delete)
if args.reset:
print 'TODO: reset feed <%d>' % args.reset
reset_feed(session, args.reset)
if not (args.fetch or args.single or args.daily or args.list or args.delete or args.reset):
parser.print_help()