def _shelve(self, obj, name='1.html'):
        fo = False
        path = os.path.expanduser(os.path.join('~', 'Desktop', name))
        # Cleaning existing file
        try:
            with open(path):
                os.remove(path)
                pass
        except IOError:
            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
Writes given object into a file on desktop. (For debug purposes only ;)
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/libraries/adlibre/dms/base_test.py/DMSTestCase._shelve