def _set_settings(self, data):
        # data should always be a Python dictionary.
        try:
            import pickle
        except __HOLE__:
            import cPickle as pickle
        from helpdesk.lib import b64encode
        self.settings_pickled = b64encode(pickle.dumps(data))
dataset/ETHPy150Open rossp/django-helpdesk/helpdesk/models.py/UserSettings._set_settings