(self, map, group=syntax.OrGroup, mirror=False)
:param map: a dictionary mapping names of fields to copy to the
            names of the destination fields.
        :param group: the type of group to create in place of the original
            token. You can specify ``group=None`` to put the copied node
            "inline" next to the original node instead of in a new group.
        :param two_way: if True, the plugin copies both ways, so if the user
            specifies a query in the 'toname' field, it will be copied to
            the 'fromname' field.
:param map: a dictionary mapping names of fields to copy to the
            names of the destination fields.
        :param group: the type of group to create in place of the original
            token. You can specify ``group=None`` to put the copied node
            "inline" next to the original node instead of in a new group.
        :param two_way: if True, the plugin copies both ways, so if the user
            specifies a query in the 'toname' field, it will be copied to
            the 'fromname' field.
: param map : a dictionary mapping names of fields to copy to the names of the destination fields . : param group : the type of group to create in place of the original token . You can specify group = None to put the copied node inline next to the original node instead of in a new group . : param two_way : if True the plugin copies both ways so if the user specifies a query in the toname field it will be copied to the fromname field .
def __init__(self, map, group=syntax.OrGroup, mirror=False):
        """
        :param map: a dictionary mapping names of fields to copy to the
            names of the destination fields.
        :param group: the type of group to create in place of the original
            token. You can specify ``group=None`` to put the copied node
            "inline" next to the original node instead of in a new group.
        :param two_way: if True, the plugin copies both ways, so if the user
            specifies a query in the 'toname' field, it will be copied to
            the 'fromname' field.
        """

        self.map = map
        self.group = group
        if mirror:
            # Add in reversed mappings
            map.update(dict((v, k) for k, v in iteritems(map)))
def __init__ ( self , map , group = syntax . OrGroup , mirror = False ) : self . map = map self . group = group if mirror : # Add in reversed mappings map . update ( dict ( ( v , k ) for k , v in iteritems ( map ) ) )