1 from django
.core
.management
.base
import BaseCommand
3 from mygpo
.core
.models
import Podcast
4 from mygpo
.db
.couchdb
.podcast
import podcast_for_url
7 class Command(BaseCommand
):
8 def handle(self
, *args
, **options
):
11 print 'Usage: ./manage.py group-podcasts <url1> <url2> <group-name> <name1> <name2>'
20 p1
= podcast_for_url(p1_url
)
21 p2
= podcast_for_url(p2_url
)
23 p1
.group_with(p2
, group_title
, myname
, othername
)