It is a bug. fixing it now in
views/plugin_wiki/attachments.html
row.filename[row.file.rfind('.')
shouls be
row.filename[row.filename.rfind('.')
On Apr 30, 12:57 am, nic <[email protected]> wrote:
> I am using 1.95.1 and have just created a new simple app and added the
> plugin_wiki, which I have done before in 1.94.xx.
>
> When I try to Attach a file from a plugin_wiki page I get the
> following error:
>
> Traceback (most recent call last):
> File "/home/www-data/web2py/gluon/restricted.py", line 181, in
> restricted
> exec ccode in environment
> File "/home/www-data/web2py/applications/test/views/plugin_wiki/
> attachments.html", line 67, in <module>
> File "/home/www-data/web2py/gluon/dal.py", line 3532, in __getattr__
> return self[key]
> File "/home/www-data/web2py/gluon/dal.py", line 3523, in __getitem__
> return dict.__getitem__(self, key)
> KeyError: 'file'
>
> Have tried several times and downloaded the latest plugin_wiki file.
> Any help gratefully accepted.
>
> Best Regards,
> Nic.