I think I figured this one out so I am posting the solution. 

On the manages wiki_pages page from the manage pages memu item, I would 
click on a media button and get the error below.

Turns out that in the course of testing my application I had uploaded files 
without a title and web2py does not like media files without a title. Had 
to go in to appadmin and delete the media files without a title and it 
seems to be working now.

The confusing thing is that the error message was wanting to split the 
title at '.' which you might expect for a filename but why a title?

Using
web2py™(2, 4, 1, 'alpha.2', datetime.datetime(2013, 1, 25, 15, 35, 52))
PythonPython 2.7.3: C:\Python27\python.exe (prefix: C:\Python27)


Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.

Traceback (most recent call last):
  File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\restricted.py", line 
212, in restricted
    exec ccode in environment
  File 
"C:/web2py-1045bab06391/web2py-1045bab06391/applications/TAMOTO/controllers/default.py"
 <http://127.0.0.1:8000/admin/default/edit/TAMOTO/controllers/default.py>, line 
147, in <module>
  File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\globals.py", line 193, 
in <lambda>
    self._caller = lambda f: f()
  File 
"C:/web2py-1045bab06391/web2py-1045bab06391/applications/TAMOTO/controllers/default.py"
 <http://127.0.0.1:8000/admin/default/edit/TAMOTO/controllers/default.py>, line 
10, in index
    return auth.wiki()
  File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\tools.py", line 3344, 
in wiki
    wiki = self._wiki()
  File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\tools.py", line 5047, 
in __call__
    return self.editmedia(request.args(1) or 'index')
  File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\tools.py", line 5222, 
in editmedia
    user_signature=False)
  File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\sqlhtml.py", line 
2286, in grid
    value = field.represent(value, row)
  File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\tools.py", line 5199, 
in <lambda>
    (id, IS_SLUG.urlify(row.title.split('.')[0]),
AttributeError: 'NoneType' object has no attribute 'split'




-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to