gLib.py is probably a module, not a model. I would put it there. Why it fails I cannot say, I do not know what it does.
On Monday, 27 August 2012 11:22:31 UTC-5, aabelyakov wrote: > > After placing gLib.py module into directory "models" web2py (versions 2.0 > and 1.99.7 on Windows and Ubuntu) fails: > > Traceback (most recent call last): > File "/home/aabelyakov/MyPython/web2py/gluon/main.py", line 528, in > wsgibase > session._try_store_on_disk(request, response) > File "/home/aabelyakov/MyPython/web2py/gluon/globals.py", line 594, in > _try_store_on_disk > cPickle.dump(dict(self), response.session_file) > File "/usr/lib/python2.7/copy_reg.py", line 70, in _reduce_ex > raise TypeError, "can't pickle %s objects" % base.__name__ > TypeError: can't pickle file objects > > In what could be the reason? > --