示例#1
0
    def handle(self, *args, **options):
        domain = options["domain"]
        stream_name = options["stream_name"]
        encoding = sys.getfilesystemencoding()

        try:
            realm = get_realm(domain)
        except Realm.DoesNotExist:
            print("Unknown domain %s" % (domain,))
            exit(1)

        do_create_stream(realm, stream_name.decode(encoding))
示例#2
0
    def handle(self, *args, **options):
        # type: (*Any, **str) -> None
        string_id = options['realm']
        encoding = sys.getfilesystemencoding()
        stream_name = options['stream_name']

        realm = get_realm_by_string_id(force_text(string_id, encoding))
        if realm is None:
            print("Unknown string_id %s" % (string_id,))
            exit(1)
        else:
            do_create_stream(realm, force_text(stream_name, encoding))
    def handle(self, *args, **options):
        domain = options['domain']
        stream_name = options['stream_name']
        encoding = sys.getfilesystemencoding()

        try:
            realm = get_realm(domain)
        except Realm.DoesNotExist:
            print("Unknown domain %s" % (domain, ))
            exit(1)

        do_create_stream(realm, stream_name.decode(encoding))
示例#4
0
    def handle(self, *args, **options):
        # type: (*Any, **str) -> None
        string_id = options['realm']
        encoding = sys.getfilesystemencoding()
        stream_name = options['stream_name']

        realm = get_realm(force_text(string_id, encoding))
        if realm is None:
            print("Unknown string_id %s" % (string_id,))
            exit(1)
        else:
            do_create_stream(realm, force_text(stream_name, encoding))
示例#5
0
    def handle(self, *args, **options):
        # type: (*Any, **str) -> None
        domain = options['domain']
        encoding = sys.getfilesystemencoding()
        stream_name = options['stream_name']

        realm = get_realm(force_text(domain, encoding))
        if realm is None:
            print("Unknown domain %s" % (domain,))
            exit(1)
        else:
            do_create_stream(realm, force_text(stream_name, encoding))
示例#6
0
    def handle(self, *args, **options):
        # type: (*Any, **str) -> None
        domain = options['domain']
        stream_name = options['stream_name']
        encoding = sys.getfilesystemencoding()

        try:
            realm = get_realm(domain)
        except Realm.DoesNotExist:
            print("Unknown domain %s" % (domain,))
            exit(1)

        do_create_stream(realm, stream_name.decode(encoding))