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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

