Lately i am experiencing this erro
r:
<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.