github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

glenc / sp.py

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A Python library for working with the SharePoint object model — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updated utils.py to include a list_exists method 
glenc (author)
Fri May 23 17:36:28 -0700 2008
commit  b8f64e2fa4d04c702996d9ac13a9b92de0c89b62
tree    6b0a387232cffdb640853351a068c1caaab2e0d9
parent  3a11c4843fb97401115bd789b84086fe074ef9a3
sp.py /
name age
history
message
file .gitignore Loading commit data...
file LICENSE
file README
directory src/
README
This library provides the ability to automate various
SharePoint activities through easy to read and modify Python
scripts.

The core library is located in the sp module.  The scripts
module contains a number of scripts for performing specific
activities such as backing up sites.

USAGE

  # Working with the sp module.
  
  import sp
  from sp import *
  
  # enumerate all sites and print out the url
  sp.enum_sites("http://myserver", lambda s: print s.Url)
  
  # apply a master page to all webs
  def apply_theme(web):
    web.MasterUrl = "http://myserver/custom.master"
    web.Update()
  
  sp.enum_all_webs("http://myserver", apply_theme)
  
  
  # Calling scripts in the scripts module
  
  > cd sp.py
  > ipy backupsites.py --url http://myserver --destination c:\backups --overwrite
  >
  > ipy setprofileprop.py --url http://myserver --property Picture --value http://myserver/pics/{Alias}.jpg
  >

REQUIREMENTS

This library is designed to work with Iron Python 1.1.1.  You
can download Iron Python from http://www.codeplex.com/IronPython.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server