def event_create(
        self, name, season, start_time, event_group_id="0.0.0", account=None, **kwargs
    ):
        """ Create an event. This needs to be **proposed**.

            :param list name: Internationalized names, e.g. ``[['de', 'Foo'],
                ['en', 'bar']]``
            :param list season: Internationalized season, e.g. ``[['de',
                'Foo'], ['en', 'bar']]``
            :param str event_group_id: Event group ID to create the event for
                (defaults to *relative* id ``0.0.0``)
            :param datetime start_time: Time of the start of the event
            :param str account: (optional) the account to allow access
                to (defaults to ``default_account``)
        """
        assert isinstance(season, list)
        assert isinstance(
            start_time, datetime
        ), "start_time needs to be a `datetime.datetime`"
        if not account:
            if "default_account" in self.config:
                account = self.config["default_account"]
        if not account:
            raise ValueError("You need to provide an account")
        account = Account(account)
        if event_group_id[0] == "1":
            # Test if object exists
            EventGroup(event_group_id)
        else:
            # Test if object is proposed
            test_proposal_in_buffer(
                kwargs.get("append_to", self.propbuffer),
                "event_group_create",
                event_group_id,
            )
        op = operations.Event_create(
            **{
                "fee": {"amount": 0, "asset_id": "1.3.0"},
                "name": name,
                "season": season,
                "start_time": formatTime(start_time),
                "event_group_id": event_group_id,
                "prefix": self.prefix,
            }
        )
        return self.finalizeOp(op, account["name"], "active", **kwargs)
def event_create ( self , name , season , start_time , event_group_id = "0.0.0" , account = None , ** kwargs ) : assert isinstance ( season , list ) assert isinstance ( start_time , datetime ) , "start_time needs to be a `datetime.datetime`" if not account : if "default_account" in self . config : account = self . config [ "default_account" ] if not account : raise ValueError ( "You need to provide an account" ) account = Account ( account ) if event_group_id [ 0 ] == "1" : EventGroup ( event_group_id ) else : test_proposal_in_buffer ( kwargs . get ( "append_to" , self . propbuffer ) , "event_group_create" , event_group_id , ) op = operations . Event_create ( ** { "fee" : { "amount" : 0 , "asset_id" : "1.3.0" } , "name" : name , "season" : season , "start_time" : formatTime ( start_time ) , "event_group_id" : event_group_id , "prefix" : self . prefix , } ) return self . finalizeOp ( op , account [ "name" ] , "active" , ** kwargs )
Create an event. This needs to be **proposed**.

            :param list name: Internationalized names, e.g. ``[['de', 'Foo'],
                ['en', 'bar']]``
            :param list season: Internationalized season, e.g. ``[['de',
                'Foo'], ['en', 'bar']]``
            :param str event_group_id: Event group ID to create the event for
                (defaults to *relative* id ``0.0.0``)
            :param datetime start_time: Time of the start of the event
            :param str account: (optional) the account to allow access
                to (defaults to ``default_account``)