def _shelve(self, obj, name='1.html'):
        """Writes given object into a file on desktop. (For debug purposes only ;) """
        fo = False
        path = os.path.expanduser(os.path.join('~', 'Desktop', name))
        # Cleaning existing file
        try:
            with open(path):
                os.remove(path)
                pass
        except __HOLE__:
            pass
        # Dumping object into file
        try:
            fo = open(path, 'w')
        except Exception, e:
            print e
            pass
        if fo:
            fo.writelines(obj)
            print 'file %s written' % name
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/libraries/adlibre/dms/base_test.py/DMSTestCase._shelve