Files
web2py/gluon
omniavx ff10eab373 Update dal.py
I was running my application and got this error

{
<type 'exceptions.ImportError'> cannot import name Set

Version
web2py™	Version 2.10.4-stable+timestamp.2015.04.26.15.11.54
Python	Python 2.7.3: /usr/bin/python (prefix: /usr)
Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/restricted.py", line 227, in restricted
    exec ccode in environment
  File "/home/www-data/web2py/applications/omniavx_cxn/controllers/valuecache.py", line 6897, in <module>
  File "/home/www-data/web2py/gluon/globals.py", line 393, in <lambda>
    self._caller = lambda f: f()
  File "/home/www-data/web2py/applications/omniavx_cxn/controllers/valuecache.py", line 6584, in browse_bacct_callback
    from plugin_PowerGrid.CallBack import CallBack
  File "/home/www-data/web2py/gluon/custom_import.py", line 95, in custom_importer
    return base_importer(pname, globals, locals, fromlist, level)
  File "/home/www-data/web2py/gluon/custom_import.py", line 134, in __call__
    result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
  File "applications/omniavx_cxn/modules/plugin_PowerGrid/CallBack.py", line 41, in <module>
    from gluon.dal import Table ,Query, Set, Rows, Row
ImportError: cannot import name Set
}

same code produced no error in earlier version of web2py



line 15 of web2py/gluon/dal.py is 
{
from pydal.objects import Row, Rows, Table, Query, Expression
}

replacing that with 
{
from pydal.objects import Row, Rows, Table, Query, Set, Expression

}

solves the problem
2015-05-20 00:11:46 -05:00
..
2015-05-07 22:26:42 -05:00
2015-05-08 21:51:56 +02:00
2015-03-12 09:35:28 -05:00
2015-05-13 09:35:22 +08:00
2014-01-27 22:56:58 +01:00
2014-01-27 22:56:58 +01:00
2015-05-20 00:11:46 -05:00
2014-01-29 23:01:52 +01:00
2015-03-19 00:04:24 +01:00
2015-05-08 21:51:56 +02:00
2014-01-29 23:01:52 +01:00
2015-03-16 18:03:37 -05:00
2015-03-06 22:06:37 -05:00
2015-04-01 21:35:52 +02:00
2015-03-06 22:08:50 -05:00
2015-03-06 22:11:31 -05:00
2015-03-06 22:12:56 -05:00
2015-03-06 22:14:10 -05:00
2014-03-12 22:03:42 +01:00
2015-03-06 22:15:42 -05:00
2015-03-06 22:19:09 -05:00
2015-03-06 22:20:22 -05:00
2015-03-06 22:22:00 -05:00
2015-03-06 22:24:02 -05:00
2014-12-15 22:24:04 +01:00
2015-05-06 08:56:56 -05:00
2014-08-14 16:27:46 -05:00
2015-01-17 00:07:10 -06:00
2015-03-31 14:05:34 -04:00
2015-03-31 14:01:25 -04:00