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
I have an error: System.MissingMemberException: 'NoneType' object has no attribute 'Value' using these script
import clrclr.AddReference('cms')clr.AddReference('businesslogic')
from umbraco.presentation.nodeFactory import Nodefrom umbraco import libraryfrom umbraco.cms.businesslogic import media.............
imageId = childNode.GetProperty("img").Valuefile = media.Media(int(imageId))url = file.getProperty("UmbracoFile").Value
Is UmbracoFile the alias? Umbraco should default the first character to lowercase, resulting in umbracoFile
Thank you the error was the alias first character.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 4.5.2 IronPython - Media error
I have an error: System.MissingMemberException: 'NoneType' object has no attribute 'Value' using these script
import clr
clr.AddReference('cms')
clr.AddReference('businesslogic')
from umbraco.presentation.nodeFactory import Node
from umbraco import library
from umbraco.cms.businesslogic import media
.............
imageId = childNode.GetProperty("img").Value
file = media.Media(int(imageId))
url = file.getProperty("UmbracoFile").Value
Is UmbracoFile the alias? Umbraco should default the first character to lowercase, resulting in umbracoFile
Thank you the error was the alias first character.
is working on a reply...