Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error ticket for "helloFacebook"
- Ticket ID
- 127.0.0.1.2013-03-08.09-04-36.4da567fb-f3d8-461b-a1ad-936c1048c1a4
- <type 'exceptions.SyntaxError'> No fields to update
- Version
- web2py™ (2, 4, 2, 'stable', datetime.datetime(2013, 3, 4, 3, 26, 21))
- Python Python 2.7.3: myproject/venv/bin/python (prefix: myproject/venv)
- -----------------------------------------------------------------------------------
- Traceback
- ---
- Traceback (most recent call last):
- File "myproject/gluon/restricted.py", line 212, in restricted
- exec ccode in environment
- File "myproject/applications/helloFacebook/controllers/default.py", line 278, in <module>
- File "myproject/gluon/globals.py", line 193, in <lambda>
- self._caller = lambda f: f()
- File "myproject/applications/helloFacebook/controllers/default.py", line 255, in user
- return dict(form=auth())
- File "myproject/gluon/tools.py", line 1242, in __call__
- return getattr(self, args[0])()
- File "myproject/gluon/tools.py", line 2100, in login
- self.settings.update_fields)
- File "myproject/gluon/tools.py", line 1740, in get_or_create_user
- user.update_record(**update_keys)
- File "myproject/gluon/dal.py", line 9883, in __call__
- table._db(table._id==id,ignore_common_filters=True).update(**newfields)
- File "myproject/gluon/dal.py", line 9792, in update
- raise SyntaxError("No fields to update")
- SyntaxError: No fields to update
- -----------------------------------------------------------------------------------
- default.py file contains:
- 240
- 241 def user():
- 242 """
- 243 exposes:
- 244 http://..../[app]/default/user/login
- 245 http://..../[app]/default/user/logout
- 246 http://..../[app]/default/user/register
- 247 http://..../[app]/default/user/profile
- 248 http://..../[app]/default/user/retrieve_password
- 249 http://..../[app]/default/user/change_password
- 250 use @auth.requires_login()
- 251 @auth.requires_membership('group name')
- 252 @auth.requires_permission('read','table name',record_id)
- 253 to decorate functions that need access control
- 254 """
- 255 return dict(form=auth())
- 256
- 257
- 258 def download():
- 259 """
- 260 allows downloading of uploaded files
- 261 http://..../[app]/default/download/[filename]
- 262 """
- 263 return response.download(request,db)
- 264
- 265
- 266 def call():
- 267 """
- 268 exposes services. for example:
- 269 http://..../[app]/default/call/jsonrpc
- 270 decorate with @services.jsonrpc the functions to expose
- 271 supports xml, json, xmlrpc, jsonrpc, amfrpc, rss, csv
- 272 """
- 273 session.forget()
- 274 return service()
- --------------------------------------------------------------------------------------------
- Context:
- locals
- db :
- <DAL uri="sqlite://heroku.test.sqlite">
- fields :
- []
- self :
- <Set (auth_user.id = 2)>
- table :
- <Table auth_user (id,first_name,last_name,username,password,registration_key)>
- tablename :
- 'auth_user'
- update_fields :
- {}
- request
- ajax :
- False
- application :
- helloFacebook
- args :
- login
- body :
- <cStringIO.StringO object at 0x2b87880>
- cid :
- None
- client :
- 127.0.0.1
- controller :
- default
- cookies :
- session_id_admin :
- 127.0.0.1-9c6fcd7e-bb48-4d9b-a133-5d7e1746676d
- comment :
- domain :
- expires :
- httponly :
- max-age :
- path :
- secure :
- version :
- session_id_hellofacebook :
- 127.0.0.1-56ab77ae-168b-4c3d-98e0-846f004c84cf
- comment :
- domain :
- expires :
- httponly :
- max-age :
- path :
- secure :
- version :
- session_id_linkard :
- 127.0.0.1-e84e19b4-9e53-475b-9de1-b4f343830ebd
- comment :
- domain :
- expires :
- httponly :
- max-age :
- path :
- secure :
- version :
- session_id_welcome :
- 127.0.0.1-d3df6cc4-3691-4ad5-ae8f-ec1b1311859a
- comment :
- domain :
- expires :
- httponly :
- max-age :
- path :
- secure :
- version :
- env :
- app_folders :
- set(['myproject/applications/helloFacebook/'])
- applications_parent :
- myproject
- db_sessions :
- set([])
- debugging :
- False
- gluon_parent :
- myproject
- gunicorn_socket :
- <socket._socketobject object at 0x2b6f8a0>
- http_accept :
- text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- http_accept_encoding :
- gzip, deflate
- http_accept_language :
- en-US,en;q=0.5
- http_connection :
- keep-alive
- http_cookie :
- session_id_welcome=127.0.0.1-d3df6cc4-3691-4ad5-ae8f-ec1b1311859a; session_id_admin=127.0.0.1-9c6fcd7e-bb48-4d9b-a133-5d7e1746676d; session_id_hellofacebook=127.0.0.1-56ab77ae-168b-4c3d-98e0-846f004c84cf
- http_host :
- 127.0.0.1:5000
- http_user_agent :
- Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
- is_jython :
- False
- is_pypy :
- False
- local_hosts :
- cotita
- ::1
- 127.0.1.1
- ::ffff:127.0.0.1
- 127.0.0.1
- path_info :
- /helloFacebook/default/user/login
- query_string :
- _next=/helloFacebook/default/my_wishes
- raw_uri :
- /helloFacebook/default/user/login?_next=/helloFacebook/default/my_wishes
- remote_addr :
- 127.0.0.1
- remote_port :
- 36122
- request_method :
- GET
- request_uri :
- /helloFacebook/default/user/login?_next=/helloFacebook/default/my_wishes
- script_name :
- server_name :
- 127.0.0.1
- server_port :
- 5000
- server_protocol :
- HTTP/1.1
- server_software :
- gunicorn/0.17.2
- web2py_crontype :
- soft
- web2py_path :
- myproject
- web2py_version :
- 2
- 4
- 2
- stable
- datetime.datetime(2013, 3, 4, 3, 26, 21)
- wsgi_errors :
- <open file '<stderr>', mode 'w' at 0x7f7bd48ff270>
- wsgi_file_wrapper :
- <class gunicorn.http.wsgi.FileWrapper at 0x28eba78>
- wsgi_input :
- <gunicorn.http.body.Body object at 0x2b84dd0>
- wsgi_multiprocess :
- False
- wsgi_multithread :
- False
- wsgi_run_once :
- False
- wsgi_url_scheme :
- http
- wsgi_version :
- 1
- 0
- extension :
- html
- folder :
- myproject/applications/helloFacebook/
- function :
- user
- get_vars :
- global_settings :
- app_folders :
- set(['myproject/applications/helloFacebook/'])
- applications_parent :
- myproject
- db_sessions :
- set([])
- debugging :
- False
- gluon_parent :
- myproject
- is_jython :
- False
- is_pypy :
- False
- local_hosts :
- cotita
- ::1
- 127.0.1.1
- ::ffff:127.0.0.1
- 127.0.0.1
- web2py_crontype :
- soft
- web2py_version :
- 2
- 4
- 2
- stable
- datetime.datetime(2013, 3, 4, 3, 26, 21)
- is_https :
- False
- is_local :
- True
- is_restful :
- False
- now :
- datetime.datetime(2013, 3, 8, 9, 4, 36, 316308)
- post_vars :
- raw_args :
- login
- raw_extension :
- None
- url :
- /helloFacebook/default/user/login
- utcnow :
- datetime.datetime(2013, 3, 8, 8, 4, 36, 316318)
- uuid :
- helloFacebook/127.0.0.1.2013-03-08.09-04-36.4da567fb-f3d8-461b-a1ad-936c1048c1a4
- vars :
- wsgi :
- environ :
- HTTP_ACCEPT :
- text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- HTTP_ACCEPT_ENCODING :
- gzip, deflate
- HTTP_ACCEPT_LANGUAGE :
- en-US,en;q=0.5
- HTTP_CONNECTION :
- keep-alive
- HTTP_COOKIE :
- session_id_welcome=127.0.0.1-d3df6cc4-3691-4ad5-ae8f-ec1b1311859a; session_id_admin=127.0.0.1-9c6fcd7e-bb48-4d9b-a133-5d7e1746676d; session_id_hellofacebook=127.0.0.1-56ab77ae-168b-4c3d-98e0-846f004c84cf
- HTTP_HOST :
- 127.0.0.1:5000
- HTTP_USER_AGENT :
- Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
- PATH_INFO :
- /helloFacebook/default/user/login
- QUERY_STRING :
- _next=/helloFacebook/default/my_wishes
- RAW_URI :
- /helloFacebook/default/user/login?_next=/helloFacebook/default/my_wishes
- REMOTE_ADDR :
- 127.0.0.1
- REMOTE_PORT :
- 36122
- REQUEST_METHOD :
- GET
- REQUEST_URI :
- /helloFacebook/default/user/login?_next=/helloFacebook/default/my_wishes
- SCRIPT_NAME :
- SERVER_NAME :
- 127.0.0.1
- SERVER_PORT :
- 5000
- SERVER_PROTOCOL :
- HTTP/1.1
- SERVER_SOFTWARE :
- gunicorn/0.17.2
- gunicorn.socket :
- <socket._socketobject object at 0x2b6f8a0>
- wsgi.errors :
- <open file '<stderr>', mode 'w' at 0x7f7bd48ff270>
- wsgi.file_wrapper :
- <class gunicorn.http.wsgi.FileWrapper at 0x28eba78>
- wsgi.input :
- <cStringIO.StringO object at 0x2b87880>
- wsgi.multiprocess :
- False
- wsgi.multithread :
- False
- wsgi.run_once :
- False
- wsgi.url_scheme :
- http
- wsgi.version :
- 1
- response
- body :
- <cStringIO.StringO object at 0x2b87500>
- cookies :
- session_id_hellofacebook :
- 127.0.0.1-56ab77ae-168b-4c3d-98e0-846f004c84cf
- comment :
- domain :
- expires :
- httponly :
- max-age :
- path :
- /
- secure :
- version :
- delimiters :
- {{
- }}
- files :
- flash :
- generic_patterns :
- headers :
- X-Powered-By :
- web2py
- menu :
- Make a Wish
- False
- /helloFacebook/default/my_friends
- Wish List
- False
- /helloFacebook/default/my_wishes
- Matches
- False
- /helloFacebook/default/my_matches
- How To
- False
- /helloFacebook/default/howto
- Videos and Books
- False
- /helloFacebook/default/educational
- Products
- False
- /helloFacebook/default/products
- Settings
- False
- /helloFacebook/default/settings
- meta :
- models_to_run :
- ^\w+\.py$
- ^default/\w+\.py$
- ^default/user/\w+\.py$
- postprocessing :
- session_cookie_expires :
- None
- session_data_name :
- session_data_hellofacebook
- session_file :
- <open file 'myproject/applications/helloFacebook/sessions/127.0.0.1-56ab77ae-168b-4c3d-98e0-846f004c84cf', mode 'rb+' at 0x28d9540>
- session_filename :
- myproject/applications/helloFacebook/sessions/127.0.0.1-56ab77ae-168b-4c3d-98e0-846f004c84cf
- session_id :
- 127.0.0.1-56ab77ae-168b-4c3d-98e0-846f004c84cf
- session_id_name :
- session_id_hellofacebook
- session_locked :
- True
- session_new :
- False
- session_storage_type :
- file
- status :
- 200
- subtitle :
- title :
- helloFacebook
- view :
- default/user.html
- --------------------------------------------------------------------------------------------
- Exception instance attributes
- __getslice__ <method-wrapper '__getslice__' of exceptions.SyntaxError object>
- text None
- __str__ <method-wrapper '__str__' of exceptions.SyntaxError object>
- __getattribute__ <method-wrapper '__getattribute__' of exceptions.SyntaxError object>
- __dict__ {}
- __sizeof__ <built-in method __sizeof__ of exceptions.SyntaxError object>
- __init__ <method-wrapper '__init__' of exceptions.SyntaxError object>
- __setattr__ <method-wrapper '__setattr__' of exceptions.SyntaxError object>
- __reduce_ex__ <built-in method __reduce_ex__ of exceptions.SyntaxError object>
- __new__ <built-in method __new__ of type object>
- __format__ <built-in method __format__ of exceptions.SyntaxError object>
- __class__ <type 'exceptions.SyntaxError'>
- filename None
- lineno None
- msg 'No fields to update'
- __doc__ 'Invalid syntax.'
- __getitem__ <method-wrapper '__getitem__' of exceptions.SyntaxError object>
- __setstate__ <built-in method __setstate__ of exceptions.SyntaxError object>
- __reduce__ <built-in method __reduce__ of exceptions.SyntaxError object>
- print_file_and_line None
- args ('No fields to update',)
- __subclasshook__ <built-in method __subclasshook__ of type object>
- offset None
- __unicode__ <built-in method __unicode__ of exceptions.SyntaxError object>
- __delattr__ <method-wrapper '__delattr__' of exceptions.SyntaxError object>
- __repr__ <method-wrapper '__repr__' of exceptions.SyntaxError object>
- __hash__ <method-wrapper '__hash__' of exceptions.SyntaxError object>
- --------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement