Thanks to all the responses I was able to get preppy to work with ironpython and silverlight. One question I have is that currently to get this working in silverlight I have to copy the string and traceback module to the app folder. Is there any way for the Chiron app to automatically extract the modules that I need or can I specify them somewhere else instead of having to move them to the app folder?
Thanks, Vineet -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Sunday, April 06, 2008 7:00 PM To: Discussion of IronPython Subject: Re: [IronPython] Trying to use the library preppy from reportlib in ironpython and silverlight Vineet Jain (gmail) wrote: > The following code is in preppy to give syntax errors in the templates: > > import traceback > tb = traceback.format_tb(tb) > tb = string.join(tb, "\n") > # how to get the line in the script for the error? > raise ValueError, "bad script code for %s\n%s\n\n%s\n%s\n%s" % ( > compilemode, ddblock, t, v, tb) > > ironpython does not have the module traceback. Is there some other way to do > this? > The traceback module works fine with IronPython. You have to make sure it (and preferably the whole Python standard library) is on your path. Michael Foord http://www.ironpythoninaction.com > Thanks, > > Vineet > > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com