Hi Niphlod! 

work out what you said, thank you. I can now registers the USERS and login. 
can join us who the Registered User who did the operation. it all running 
app engine locally. But when I go up, I can only make the register of usr. 
Of this error in time to call the function that is to to @
auth.requires_login()


his msg:
- 2016-02-03 09:49:47.200 

suspended generator run_to_queue(query.py:954) raised NeedIndexError(no 
matching index found.
The suggested index for this query is:
- kind: auth_user
  properties:
  - name: first_name
  - name: last_name)

- W 2016-02-03 09:49:47.201 

suspended generator helper(context.py:890) raised NeedIndexError(no matching 
index found.
The suggested index for this query is:
- kind: auth_user
  properties:
  - name: first_name
  - name: last_name)

- E 2016-02-03 09:49:47.418 

 Unable to store in FILE: 
/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/applications/jogosweb/controllers/default.py

Traceback (most recent call last):
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/restricted.py",
 line 227, in restricted
    exec ccode in environment
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/applications/jogosweb/controllers/default.py",
 line 197, in <module>
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/globals.py", 
line 412, in <lambda>
    self._caller = lambda f: f()
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/tools.py", 
line 3774, in f
    return action(*a, **b)
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/applications/jogosweb/controllers/default.py",
 line 96, in Campeonatos
    frmCampeonatos = SQLFORM(db.Campeonatos)
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/sqlhtml.py", 
line 1261, in __init__
    inp = self.widgets.options.widget(field, default)
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/sqlhtml.py", 
line 313, in widget
    options = requires[0].options()
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/validators.py",
 line 586, in options
    self.build_set()
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/validators.py",
 line 572, in build_set
    records = self.dbset(table).select(*fields, **dd)
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/packages/dal/pydal/objects.py",
 line 2002, in select
    return adapter.select(self.query,fields,attributes)
  File 
"/base/data/home/apps/s~jogosweb-1188/1.390445080692225211/gluon/packages/dal/pydal/adapters/google_adapters.py",
 line 504, in select
    for t in fields] for item in items]
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py",
 line 1795, in next
    self._more_results) = self._fut.get_result()
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py",
 line 342, in get_result
    self.check_success()
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/context.py",
 line 890, in helper
    batch, i, ent = yield inq.getq()
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py",
 line 954, in run_to_queue
    batch = yield rpc
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py",
 line 472, in _on_rpc_completion
    result = rpc.get_result()
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
 line 613, in get_result
    return self.__get_result_hook(self)
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py",
 line 2922, in __query_result_hook
    yaml_index=yaml, xml_index=xml)
NeedIndexError: no matching index found.
The suggested index for this query is:
- kind: auth_user
  properties:
  - name: first_name
  - name: last_name


Em terça-feira, 26 de janeiro de 2016 15:50:34 UTC-3, Charles tenorio 
escreveu:
>
> good afternoon I need your help in the app engine can not use part of the 
> web2py login when I call a menu that has an @ in the controller 
> auth.requires_login (), it opens the login screen, you register a new user, 
> but this new user does not save the datastored
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to