Re: [web2py] after_update

2014-11-25 Thread Alex Glaros
answering my own question, I mistakenly reversed table names. Here is correct, working version: # Update objectDisplayName in db.SuperObject whenever db.Suggestion.suggestionTitle is updated def update_SuggestionDisplayName(set, ufields): table = 'Suggestion' if ('suggestionTitle' in

Re: [web2py] after_update

2014-11-24 Thread Roberto Perdomo
I dont ser the displayName field in you SuperObject table. Try change this: ThisSuperObject.update_record(displayName=displayName) For this: ThisSuperObject.update_record(ObjectDisplayName=displayName) El nov. 24, 2014 3:17 AM, Alex Glaros alexgla...@gmail.com escribió: anyone see what the

Re: [web2py] after_update

2014-11-24 Thread Alex Glaros
improved but now get this error: Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. Traceback (most recent call last): File gluon/restricted.py, line 224, in restricted File C:/alex/web2py/web2py/web2py/applications/ES1/controllers/default.py

[web2py] after_update

2014-11-23 Thread Alex Glaros
anyone see what the error is with this after_update function? # Update displayName in db.SuperObject whenever Suggestion.suggestionTitle is updated in db.Suggestion def update_SuggestionDisplayName(set, ufields): table = 'Suggestion' if ('suggestionTitle' in ufields) else None if table:

[web2py] after_update related question

2014-06-06 Thread Keerti Agrawal
I am writing a callback function after update on scheduler_task. then i am printing set which we are getting in that callback function. set values are printed when scheduler_task.status change to 'ASSIGNED' and 'RUNNING'. but when scheduler_task.status changes to 'TIMEOUT' or 'COMPLETE' set is

[web2py] after_update callback question

2014-04-01 Thread mcamel
Hello, I'm trying to get a solid way of triggering an action, after an update, based on the data before the update. One approach is building an SQLFORM, inject the old values as hidden fields, validate it and do the update and triggers manually, but then you are limited to use this FORM (it