Hi Robin,

> Not sure why datastore api calls are made twice for each request. Need to
> > investigate further. If anyone has any further information on this pls do
> > share it in this thread.
>
> How are you counting Datastore api calls?  Could it be a sessions
> table making the extra request?
>

You are right. I didnt notice the sessions making calls to db. I disabled it
& ran the test again. Now its perfect. 100 http calls & 100 db api calls.

>
> > *SyntaxError: user is tampering with form*
> >
> Double check that you are submitting the correct record id in the form
> variables.

This is what I have in traceback. Looks like for security reasons, modifying
data thro' GET method is disabled


Traceback (most recent call last):
  File "/home/cric2/www/web2py/gluon/restricted.py", line 62, in restricted
    exec ccode in environment
  File "/home/cric2/www/web2py/applications/init/controllers/player.py",
line 26, in <module>
  File "/home/cric2/www/web2py/gluon/globals.py", line 55, in <lambda>
    self._caller=lambda f: f()
  File "/home/cric2/www/web2py/applications/init/controllers/player.py",
line 17, in edit
    player_form.accepts(request.vars, formname="default")
  File "/home/cric2/www/web2py/gluon/sqlhtml.py", line 313, in accepts
    raise SyntaxError, "user is tampering with form"
SyntaxError: user is tampering with form



Thanks,
Sudhakar.M

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to