Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
does anybody know how I can access the HttpContext in a Python macro? I need it so I can use mappath to add references.
I got an example of a macro here: http://pastebin.com/XqfeU6ED as you can see I hardcoded the file path but I would like to use mappath for this.
from System.Web import HttpContext doesn't work.
Kind regards,
Seems I could just load the dlls with:
import clr clr.AddReference('cms') clr.AddReference('businesslogic')
Thought it didn't work before because it showed errors but it seems it was showing a cached marco.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Python macro: HttpContext
Hello,
does anybody know how I can access the HttpContext in a Python macro? I need it so I can use mappath to add references.
I got an example of a macro here: http://pastebin.com/XqfeU6ED as you can see I hardcoded the file path but I would like to use mappath for this.
from System.Web import HttpContext doesn't work.
Kind regards,
Seems I could just load the dlls with:
import clr
clr.AddReference('cms')
clr.AddReference('businesslogic')
Thought it didn't work before because it showed errors but it seems it was showing a cached marco.
is working on a reply...