[web2py] type 'exceptions.KeyError' 'appadmin' on trying ot load data admin

2013-02-15 Thread Andrew Buchan


Here's the exception I get:


Traceback (most recent call last):
  File C:\Program Files\Hub Pages\web2py\gluon\restricted.py, line 212, in 
restricted
exec ccode in environment
  File C:/Program Files/Hub 
Pages/web2py/applications/HubFormsTidy/views/appadmin.html 
http://localhost/admin/default/edit/HubFormsTidy/views/appadmin.html, line 
86, in module
{{elif request.function=='update':}}
KeyError: 'appadmin'



-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] type 'exceptions.KeyError' 'id'

2012-11-07 Thread Mike Anson

Greetings...

I have a bash script that uses cURL to send a json packet of data in order 
to save it in sqlite DB.

#!/bin/bash
message=$1
uid=$2
url=https://somehost;
curl -v -k -X POST -H Content-Type: application/json --data 
{\message\: \This will prbbly be my lst post.\, \uid\: 
\m...@email.com\} $url

** message and uid are hardcoded at this point but will take the values 
dynamically once I see it working.

Here is my table defined:

db.define_table('messages',
Field https://apps00.cs.lldns.net:8000/examples/global/vars/Field('uid', 
'string'),
Field 
https://apps00.cs.lldns.net:8000/examples/global/vars/Field('message', 
'text'),
Field 
https://apps00.cs.lldns.net:8000/examples/global/vars/Field('status', 
'string', default='unsent'),
Field 
https://apps00.cs.lldns.net:8000/examples/global/vars/Field('added', 
'datetime', default=request 
https://apps00.cs.lldns.net:8000/examples/global/vars/request.now),
Field 
https://apps00.cs.lldns.net:8000/examples/global/vars/Field('modified', 
'datetime', default=request 
https://apps00.cs.lldns.net:8000/examples/global/vars/request.now))

*I've tried many variations of the cURL command and ran in to various errors. 
The above cURL command gives the error: *type 'exceptions.KeyError' 'id'

Any help would be greatly appreciated.

-- 





[web2py] type 'exceptions.KeyError' 'id' on 1.99.3 with SQLFORM.grid and links

2011-12-01 Thread David Watson
I am running web2py version 1.99.3

I have the following code in my default controller. The view shows the
item. When i run
  links = [lambda row:
A('Edit',_href=URL(default,sweeps,args=[row.id])),
 lambda row:
A('Delete',_href=URL(default,promos,args=[row.id]))]
grid2 = SQLFORM.grid(db.auth_user, links=links)
return dict(item=grid2)

but it blows up with a keyerror on id. I thought my lambda links were
correct, but maybe something has changed or I've gotten it wrong?

Thanks,
David

type 'exceptions.KeyError' 'id'

Traceback (most recent call last):
  File /home/watson/latte/web2py/gluon/restricted.py, line 204, in
restricted
exec ccode in environment
  File /home/watson/latte/web2py/applications/latte/controllers/
default.py, line 139, in module
  File /home/watson/latte/web2py/gluon/globals.py, line 162, in
lambda
self._caller = lambda f: f()
  File /home/watson/latte/web2py/applications/latte/controllers/
default.py, line 45, in apps
(db.portal_keyword.user_id==auth.user_id), links=links,
fields=fields, paginate=10, ui=jquery-ui)
  File /home/watson/latte/web2py/gluon/sqlhtml.py, line 1810, in
grid
if link(row):
  File /home/watson/latte/web2py/applications/latte/controllers/
default.py, line 41, in lambda
links = [lambda row:
A('Edit',_href=URL(default,index,args=[row.id])),
  File /home/watson/latte/web2py/gluon/dal.py, line 3948, in
__getattr__
return self[key]
  File /home/watson/latte/web2py/gluon/dal.py, line 3939, in
__getitem__
return dict.__getitem__(self, key)
KeyError: 'id'


[web2py] type 'exceptions.KeyError'('active') when running plugin_wiki

2011-03-09 Thread mat --
Hi

I downloaded latest version of Web2py and plugin_wiki.

I setup Janrain. I can login.

I created a new app and uploaded plugin_wiki as a plugin.

I can create a first page and save it using plugin_wiki features.

But second time I click the Page tab i get the following error:

Version
 web2py™ Version 1.93.2 (2011-03-06 10:18:04)  Python Python 2.6.6:
/usr/bin/python
Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Traceback (most recent call last):
  File /home/linux/Dev/web2py/gluon/restricted.py, line 188, in restricted
exec ccode in environment
  File /home/linux/Dev/web2py/applications/Docs/views/plugin_wiki/index.html,
line 113, in module
  File /home/linux/Dev/web2py/gluon/dal.py, line 3347, in __getattr__
return self[key]
  File /home/linux/Dev/web2py/gluon/dal.py, line 3338, in __getitem__
return dict.__getitem__(self, key)
KeyError: 'active'

Error snapshot [image: help] Detailed traceback description

type 'exceptions.KeyError'('active')


Anyone knows what is the issue here?

Thanks!

Mat