def __init__(self, smartplug, name):
        self.smartplug = smartplug
        self._name = name
GET/POST the flag view while not logged in: redirect to log in.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/dlink.py/SmartPlugSwitch.__init__--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/FlagViewTests.testFlagAnon