Lately i am experiencing this error:
*<type 'exceptions.TypeError'> decorator() takes exactly 1 argument (0 
given)* but i do not understand what it stems from, here is the controller 
below:
def Company_Update():
    details=db(db.company).select(db.company.ALL)
    details2=db(db.company).select(db.company.ALL)
    for dtls in details2:
        detail=crud.update(db.company, dtls.id)
    return locals()


The view code is below:
{{extend 'layout.html'}}
<hr class="style-head"/>
<div class="todo">
<h1>
    UPDATE YOUR COMPANY DETAILS
</h1>
</div>
<hr class="style-head"/>
<div class="outerContainer">
<div class="bodyContainer"> 
{{=detail}}
    {{pass}}
</div>
</div>

It has just recently started giving this exception () but initially it was 
executing well when i clicked on its link!
What could be wrong with my code? have i added or subtracted something i 
wasn't supposed to???
Please help me. thank you.


-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to