Honestly i dont know what to rectify and where because the error is not 
coming from my code. This is function I was trying to create a view for, 
its a simple function





*def sold_companies():    details=db(db.sold_company).select()    
orgCount=len(details)    return locals()*

I have attached the image to the Error snapshot:
[image: Screenshot (79).png]
<https://www.sesoa.co.bw/admin/default/ticket/admin/41.77.89.203.2021-12-17.11-50-47.952e9d4f-bc1f-4fd9-abf5-b266902c89ba#>

On Friday, December 17, 2021 at 1:56:35 PM UTC+2 mostwanted wrote:

> But that's just the thing, I wasn't trying pass any data, i just trying to 
> create a new view for a new function In my admin interface, as soon as I 
> clicked create the error popped up & the view failed to create.
>
> On Thursday, December 16, 2021 at 7:31:55 PM UTC+2 Jim S wrote:
>
>> Looks like you're passing some data through the request vars and the 
>> value is Null.  Would need to see more code to be able to help.
>>
>> -Jim
>>
>> On Wednesday, December 15, 2021 at 12:09:08 AM UTC-6 mostwanted wrote:
>>
>>> Hi guys, I'm updating one of my very early projects, I was trying to 
>>> create a view and I got an error:  Error ticket for "admin", I dont 
>>> know what's causing it, how do I fix this? Its a new error that I have 
>>> never encountered before, thats the traceback below. I developed it with  
>>> Version 2.14.6
>>>
>>> Traceback
>>> Traceback (most recent call last):
>>> File "/home/sesoa/web2py/gluon/restricted.py", line 227, in restricted
>>> exec ccode in environment
>>> File "/home/sesoa/web2py/applications/admin/controllers/default.py" 
>>> <https://www.sesoa.co.bw/admin/default/edit/admin/controllers/default.py>, 
>>> line 2000, in <module>
>>> File "/home/sesoa/web2py/gluon/globals.py", line 417, in <lambda>
>>> self._caller = lambda f: f()
>>> File "/home/sesoa/web2py/applications/admin/controllers/default.py" 
>>> <https://www.sesoa.co.bw/admin/default/edit/admin/controllers/default.py>, 
>>> line 1484, in create_file
>>> redirect(request.vars.sender + anchor)
>>> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
>>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/bf426f64-3e10-4cbd-ad6f-737d27e843e6n%40googlegroups.com.

Reply via email to