[web2py] Re: How to know if you're getting a Set when you're expecting a dict?

2012-11-13 Thread Bill Thayer
Looks like I worked most of the bugs out of this. Hope it saves someone a lot of time. If you know of a more *obvious or elegant* solution please post it. Also, my slug field is returning a tuple now. Still works as a slug but I wish I didn't have the |slug|None| format. def insert_wiki_if_n

[web2py] Re: How to know if you're getting a Set when you're expecting a dict?

2012-11-12 Thread Bill Thayer
After finding some code in a class called RecordUpdater in gluon/dal.py i think I figured out how to get past my arguments as a set or a dictwellI was getting a keyerr for 'name' so I put it in a try-catch but now I'm getting a keyerror for 'id' In the code below I've only been working o