Niphlod,

I am using latest web2py and pydal from master branches. Any idea where is 
the fix? Could you please direct me to the commit?

W dniu środa, 3 sierpnia 2016 12:51:56 UTC-7 użytkownik Niphlod napisał:
>
> should be already fixed on master, anyway if you're in a hurry, set 
> entity_quoring=False on the DAL line to make it work again (long story 
> short, DAL now quotes everything by default and not every cog in the wheel 
> was expecting that)
>
> On Monday, August 1, 2016 at 1:51:54 PM UTC+2, Kostas M wrote:
>>
>> I have the same problem with the CSV, HTML, TSV export buttons. The 
>> Ticket for the CSV is pasted below. The problem at least with the csv 
>> export button seems to be with the REGEX_TABLE_DOT_FIELD. Normally, this 
>> constant is defined in regex.py as:
>>
>> REGEX_TABLE_DOT_FIELD = re.compile('^(\w+)\.([^.]+)$')
>>
>> and previous web2py versions used it.
>>
>> However, now it takes the REGEX_TABLE_DOT_FIELD definition from the 
>> base.py:
>>
>> obj.REGEX_TABLE_DOT_FIELD = re.compile(
>>     r'^' + quot % regex_ent + r'\.' + quot % regex_ent + r'$')
>>
>>
>> which is a totally different regex and it doesn't match with the table 
>> field names...
>>
>>
>> Ticket ID 
>>
>> 127.0.0.1.2016-08-01.14-36-35.a05a56c8-5b22-42c3-a3e3-385322b5f0fe
>> <type 'exceptions.AttributeError'> Version 
>> web2py™ Version 2.14.5-stable+timestamp.2016.04.14.03.26.16 
>> Python Python 2.7.6: /home/kmouts/Envs/prolims2_venv/bin/python2.7 
>> (prefix: /home/kmouts/Envs/prolims2_venv) Traceback 
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>> 16.
>> 17.
>> 18.
>> 19.
>> 20.
>> 21.
>> 22.
>>
>> Traceback (most recent call last):
>>   File "/home/kmouts/PycharmProjects/prolims2/web2py/gluon/restricted.py", 
>> line 227, in restricted
>>     exec ccode in environment
>>   File 
>> "/home/kmouts/PycharmProjects/prolims2/web2py/applications/prolims2/controllers/muser.py"
>>  <http://127.0.0.1:8000/admin/default/edit/prolims2/controllers/muser.py>, 
>> line 187, in <module>
>>   File "/home/kmouts/PycharmProjects/prolims2/web2py/gluon/globals.py", line 
>> 417, in <lambda>
>>     self._caller = lambda f: f()
>>   File "/home/kmouts/PycharmProjects/prolims2/web2py/gluon/tools.py", line 
>> 4258, in f
>>     return action(*a, **b)
>>   File 
>> "/home/kmouts/PycharmProjects/prolims2/web2py/applications/prolims2/controllers/muser.py"
>>  <http://127.0.0.1:8000/admin/default/edit/prolims2/controllers/muser.py>, 
>> line 49, in my_analyses
>>     exportclasses=dict(csv_with_hidden_cols=False, 
>> tsv_with_hidden_cols=False)
>>   File "/home/kmouts/PycharmProjects/prolims2/web2py/gluon/sqlhtml.py", line 
>> 3102, in smartgrid
>>     user_signature=user_signature, **kwargs)
>>   File "/home/kmouts/PycharmProjects/prolims2/web2py/gluon/sqlhtml.py", line 
>> 2473, in grid
>>     raise HTTP(200, oExp.export(), **response.headers)
>>   File "/home/kmouts/PycharmProjects/prolims2/web2py/gluon/sqlhtml.py", line 
>> 3514, in export
>>     self.rows.export_to_csv_file(s, represent=True)
>>   File 
>> "/home/kmouts/Envs/prolims2_venv/local/lib/python2.7/site-packages/pydal/objects.py",
>>  line 2446, in export_to_csv_file
>>     row.append(record._extra[col])
>>   File 
>> "/home/kmouts/Envs/prolims2_venv/local/lib/python2.7/site-packages/pydal/objects.py",
>>  line 91, in __getattr__
>>     raise AttributeError
>> AttributeError
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to