Oct 1, 2009

Using the SharePoint Object Model with IronPython

Same with IronPython, download IronPython and go!
# import CLR
import clr

# add a reference to the SharePoint assembly

# import all types from the Microsoft.SharePoint namespace
from Microsoft.SharePoint import *

# instantiate SPSite at http://localhost/mysite
site = SPSite("http://localhost/mysite")

# open the web
web = site.OpenWeb()

# set the title of the web - just trivial example
web.Title = "Greetings from IronPython"

# persist changes to content DB

# clean up

# the end



Making J£$US Proud :-) said...

Hi Christian
Is this the same with Sharepoint 2010? Can you access it using IronPython. I get an error at SPSite('http://nameofsite')
Thank you

Christian said...

SharePoint 2010 does ony support .NET 3.5 means you have to install IronPython for .NET 2.0 :-( Use the x64 python console.

maymay said...

Which means that but if the wished for end product is certainly to getting a becoming for stabilize together with deal with an individual's louis vuitton outlet uk shall be very different compared with with the ones who want to operate on your spirituality. Notwithstanding for what precisely an individual's end goal is certainly, it can be a extremely good grasp for starters a pretty simple inhalation reflection, seeing that this will be the basis meant for just about any reflection. Which means that louis vuitton replica uk by just studying any inhalation reflection for a time for starters. You could carry out the simple reflection exerciseFind a good restful spot for their undertake an individual's reflection. Obtain a relaxing stance after which you can require a little while to settle prior to regarding. Shut down an individual's louis vuitton replica uk together with receive a full detox flow of air that will let go of anxiety and stress in the mind and body. These days pursue to respire greatly together with imagine you happen to be sucking in a good purple a blowing wind for restoration weather the fact that comes into an individual's gut together with fills every part to your body system, making it feel like come alive utilizing favorable electrical power. These days exhale the atmosphere together with visualize it all as the shadowy significant fog up for drained electrical power together with rigidity exiting your entire body, causing you to be truly feel a great deal more laid-back. Pursue to breathe in any restoration weather together with allow it to sadly stuff an individual's chanel replica together with get you to truly feel laid-back together with totally free of chanel replica. When ever thinkings input mind, basically profit an individual's center towards your inhalation together with keep going when using the reflection activity.

John Slondok said...

You have some really great posts and I feel I would be a good asset. Thank you Sir Deck Drain

manhole cover murah said...

You're Awesome. Enjoyed every bit of your article post. Really looking forward to read more.

electronic signature software said...

A special thanks for this informative post. I definitely learned new stuff here I wasn't aware of !

perusahaan pengolahan air bersih said...

Thanks for a great page. Lots of really important information here. Keep up the great work and I will come back for sure.

Hug Day said...

happy hug day Images
hug day 2016 Wishes cards greetings
Hug day Gift Ideas For Him/Her
hug day sms for bf

Anonymous said...

Wonderful webiste, I love reading your post. I will bookmark it and I am looking forward to reading new articles virgin coconut oil manufacture indonesia.

Paulo said...

Be that as it may, here's the trap: I didn't approach any ONE individual for the entire sum. I took seven unique advances to get $25,000 and paid them back as indicated by need. Payday Loans Chicago

Paulo said...

The cell phone changed the majority of the scrutinizing. Presently, moms could get and see whether their kids made it to their goal with no accidents. Spouses could tell their wives when they were running late. aaa1autotitleloans.com/chicago

Meiqing Xu said...

pandora uk
true religion jeans
michael kors handbags
adidas nmd
true religion jeans
ugg australia
birkenstock shoes
michael kors canada
pandora bracelet
ray ban sunglasses

dong dong23 said...

new balance 990
cheap mlb jerseys
pandora charms outlet
adidas ultra boost uncaged
nike shoes
adidas outlet
true religion jeans outlet
coach outlet store online clearances
christian louboutin sale
ferragamo outlet

raybanoutlet001 said...

cheap basketball shoes
ugg outlet
nike store
ray ban sunglasses outlet
ugg boots
ray ban sunglasses outlet
oakley sunglasses
ralph lauren uk
cheap ugg boots
ray ban sunglasses outlet

Home Improvement NYC said...

Ajrin Construction Inc. is a licensed New York general construction firm working as General Contractors in NYC, truly devoted to our services and remain firm until our Clients’ purposes are served to satisfaction. We feel much concerned of the value of your property, safety and security more than our profit or anything else.
Home Improvement NYC

Globeservations said...

Great article, thanks for sharing! Here is a collection of happy birthday greetings, funny birthday wishes for husband and happy birthday wishes for friend. I hope this helps you find the perfect birthday greetings.

اميرة زماني said...

ارقام شراء الاثاث المستعمل بالرياض

تخزين عفش
حفين شراء اثاث مستعمل بالرياض

khairy said...

شركة سكاي لنقل العفش
نقل عفش بمكة
نقل عفش بالرياض
نقل عفش بالمدينة المنورة
نقل عفش بجدة
نقل عفش بالطائف
نقل عفش بالدمام
نقل عفش بالقطيف
نقل عفش بالجبيل