Hey guy,

It depends on a fresh out of the box (chat) installation:
http://web2py.com/appliances/default/show/34

we got some errors while some user is trying to accept an invitation
from one other to one room.

The error message after the path (http://localhost/chat/default/accept/
1) is attached, can someone help us please??

thanks :-)

--------------------------------------------

Traceback (most recent call last):
  File "gluon/restricted.py", line 188, in restricted
  File "/Users/monbro/Downloads/web2py/web2py.app/Contents/Resources/
applications/chat/views/default/index.html", line 78, in <module>
  File "gluon/sql.py", line 742, in __getattr__
KeyError: 'name'

Frames

    *

      File /Users/monbro/Downloads/web2py/web2py.app/Contents/
Resources/gluon/restricted.py in restricted at line 188 code arguments
variables
      Function argument list

      (code='response.write(\'<!DOCTYPE html PUBLIC "-//W3C//D...n </
div>\\n </body>\\n</html>\\n\', escape=False)', environment={'A':
<class 'gluon.html.A'>, 'Auth': <class 'gluon.tools.Auth'>, 'B':
<class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>,
'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>,
'CENTER': <class 'gluon.html.CENTER'>, 'CLEANUP': <class
'gluon.validators.CLEANUP'>, 'CODE': <class 'gluon.html.CODE'>,
'CRYPT': <class 'gluon.validators.CRYPT'>, ...}, layer='/Users/monbro/
Downloads/web2py/web2py.app/Conten...ources/applications/chat/views/
default/index.html')
      Code listing
      Variables
    *

      File /Users/monbro/Downloads/web2py/web2py.app/Contents/
Resources/applications/chat/views/default/index.html in <module> at
line 78 code arguments variables
      Function argument list

      ()
      Code listing

          response.write('</a></li>\n    ', escape=False)
          pass
      response.write('\n        <li>\n            <form action="',
escape=False)
      response.write(URL(request.application,'default','newroom'))
      response.write('" method="post">\n            <input type="text"
size="15" name="name" value="Create New Room" id="name"
\n                onfocus="if(this.value==\'Create New Room
\')this.value=\'\';"\n                onblur="if(this.value==
\'\')this.value=\'Create New Room\';">\n            <input
type="submit" value="Go">\n            </form></li>\n    </ul>\n
<h3>Other Rooms</h3>\n    <ul class="simple">\n    ', escape=False)
      for room in otherrooms:
          response.write('\n        <li><a href="', escape=False)
 
response.write(URL(request.application,'chat','room',args=room.id))
          response.write('">', escape=False)
      response.write(room.name)

          response.write('</a></li>\n    ', escape=False)
          pass
      response.write('\n    </ul>\n</div>\n<div id="panel">\n
<h3>Welcome</h3>\n    <p>The rooms you&apos;ve created are listed to
the right, you can also\n        create new rooms over there. Knock
yourself out.</p>\n    <h3>Invitations</h3>\n    <ul>\n      ',
escape=False)
      for inv in invites:
          response.write('\n      <li><a href="', escape=False)
 
response.write(URL(request.application,'default','accept',args=inv.id))
          response.write('">\n          ', escape=False)
          response.write(inv.sender.username)
          response.write(' @ ', escape=False)
          response.write(inv.posted_on)

      Variables
      File /Users/monbro/Downloads/web2py/web2py.app/Contents/
Resources/gluon/sql.py in __getattr__ at line 742 code arguments
variables

      Function argument list
      (self=<Row {'status': 'allowed', 'room': 2,
'update_re...lete_record': <function <lambda> at 0x1660beb0>}>,
key='name')

Reply via email to