This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 3a11c4843fb97401115bd789b84086fe074ef9a3
tree 2d3cd30e6764c9bfb3a2cf8e208e6b02d55b0ec3
parent 1ef030a8a1425806badcfa57f0d2ad59734f6f69
tree 2d3cd30e6764c9bfb3a2cf8e208e6b02d55b0ec3
parent 1ef030a8a1425806badcfa57f0d2ad59734f6f69
sp.py /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
LICENSE | ||
| |
README | ||
| |
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.








