Here it is a little shorter def getName(obj): return ([k for k,v in globals().items() if v==obj]+ [None])[0]
Massimo On Dec 17, 9:33 am, DenesL <denes1...@yahoo.ca> wrote: > Thank you Jonathan, that's exactly it!. > I knew it had to involve globals somehow. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---