This problem occured on the latest stable release to, but I'll describe it 
on trunk
1. pull the latest trunk from hg
2. run web2py
3. using any editor, including the built in interface, edit default.py on 
the welcome app to contain 
def index():
   return auth.wiki()
4. go to localhost, and go on with registration
5. in the good case, you are redirected to the page creation (it happened 
to me, that the usergroup is not created, but lets ignore this for a sec) 
save the page as it is.
6, after editing you are redirected to:
http://localhost:8000/welcome/default/index/index
and gets a ticket that goes:

Traceback (most recent call last):
  File "/home/guruyaya/tmp/web2py/gluon/restricted.py", line 209, in restricted
    exec ccode in environment
  File "/home/guruyaya/tmp/web2py/applications/welcome/controllers/default.py" 
<http://localhost:8000/admin/default/edit/welcome/controllers/default.py>, line 
74, in <module>
  File "/home/guruyaya/tmp/web2py/gluon/globals.py", line 186, in <lambda>
    self._caller = lambda f: f()
  File "/home/guruyaya/tmp/web2py/applications/welcome/controllers/default.py" 
<http://localhost:8000/admin/default/edit/welcome/controllers/default.py>, line 
20, in index
    return auth.wiki()
  File "/home/guruyaya/tmp/web2py/gluon/tools.py", line 3198, in wiki
    return self._wiki.read(slug)['content'] if slug else self._wiki()
  File "/home/guruyaya/tmp/web2py/gluon/tools.py", line 4647, in __call__
    return self.read(zero)
  File "/home/guruyaya/tmp/web2py/gluon/tools.py", line 4695, in read
    return dict(content=XML(self.fix_hostname(page.html)))
  File "/home/guruyaya/tmp/web2py/gluon/tools.py", line 4678, in fix_hostname
    return body.replace('://HOSTNAME','://%s' % self.host)
AttributeError: 'NoneType' object has no attribute 'replace'

I'll start looking into it, but don't expect much. I had a long day.


-- 



Reply via email to