[IronPython] IronPython for asp.net and codefiles

Dody Gunawinata empirebuilder at gmail.com
Wed Mar 24 21:09:23 CET 2010


Is there any way to control the when IP for ASP.Net does the caching?

I have been using VirtualPathProvider to serve IP ascx/aspx code on demand
but I have to disable the caching  completely via public override
CacheDependency GetCacheDependency because I need to server different codes
depending on authentication.

On Sun, Mar 21, 2010 at 10:33 PM, Jimmy Schementi <
Jimmy.Schementi at microsoft.com> wrote:

> Pablo, what is the reason you are looking into obfuscation? Is it because
> you’re concerned that people could make requests for your *.aspx.py files
> and see the Python source? By default any request for a *.aspx.py file
> should fail because that file extensions is not in the MIME type map on IIS.
> That should be enough for any obfuscation you need.
>
>
>
> Note that C#/VB “obfuscation” through compiling to DLLs isn’t really
> obfuscation either; if you had access to the DLL you could get all the
> source code. However, IIS by default refuses access to the “bin” directory.
> So, the methods of hiding source code are essentially the same between
> static and dynamic languages; refuse access to the actual source files.
>
>
>
> Quick note on compiled modules: Microsoft.Web.Scripting.dll caches compiled
> Python modules, so on the first visit to an ASPX page that uses IronPython
> it compiles the code-behind .aspx.py file in memory, and subsequent visits
> reuses the compiled file. The Python file is only re-compiled if it’s
> changed between requests.
>
>
>
> ~js
>
>
>
> *From:* users-bounces at lists.ironpython.com [mailto:
> users-bounces at lists.ironpython.com] *On Behalf Of *Dody Gunawinata
> *Sent:* Sunday, March 21, 2010 1:49 AM
> *To:* Discussion of IronPython
> *Subject:* Re: [IronPython] IronPython for asp.net and codefiles
>
>
>
> If you want to hide your logic from the source, move as much of the
> functionality to a dll, whether it is a static or ironpython dll. I don't
> think IronPython for ASP.Net supports compilable asp.net.
>
> On Sat, Mar 6, 2010 at 4:52 PM, Pablo Dalmazzo <pablodalma93 at hotmail.com>
> wrote:
>
> Hi there,
>
> now I got to work the dlls and I did a small app. which turns my asp.net.py codefile into 2 pieces, a .py codefile which makes only functions calls
> to a dll with the actual logic code. But I was wondering why IronPython for
> asp.net was designed without having in mind to allow the .aspx files to be
> tied with dlls for the sourcecode, for allowing obfuscation just like it's
> possible to make in VB.NET or C#. Or may be it just wasnt easy at all to
> do that for IronPython? Is the technical explanation too complicated or may
> I know about it? Is there information about this somewhere?
>
> Greetins, Pablo
>
>
> ------------------------------
>
> Tu Hotmail guarda el borrador que estás escribiendo para que no pierdas tu
> mensaje. Conocé cómo<http://www.descubrewindowslive.com/hotmail/actualizacion-guardado.asp>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
>
> --
> nomadlife.org
>



-- 
nomadlife.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100324/59dedf83/attachment.html>


More information about the Ironpython-users mailing list