<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Look alive. Here comes a buzzard. &#187; SharePoint</title>
	<atom:link href="http://blog.glenc.net/category/office-system/sharepoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.glenc.net</link>
	<description>Treading water in a sea of man-made confusion.</description>
	<lastBuildDate>Wed, 01 Sep 2010 02:34:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Copying a web part page including web parts</title>
		<link>http://blog.glenc.net/2009/10/15/copying-a-web-part-page-including-web-parts/</link>
		<comments>http://blog.glenc.net/2009/10/15/copying-a-web-part-page-including-web-parts/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 17:09:31 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[Office System]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/?p=129</guid>
		<description><![CDATA[Out of the box, there is no way to copy a web part page and have it retain all of its web parts &#8211; including List View web parts.  I tried the following methods:

Download .aspx from Pages doc lib, rename and re-upload.  All list view web parts are stripped during this process.
Use the Send To [...]]]></description>
			<content:encoded><![CDATA[<p>Out of the box, there is no way to copy a web part page and have it retain all of its web parts &#8211; including List View web parts.  I tried the following methods:</p>
<ul>
<li>Download .aspx from Pages doc lib, rename and re-upload.  All list view web parts are stripped during this process.</li>
<li>Use the Send To option to make a copy of the .aspx in another folder or doc lib.  Same result as above &#8211; all web parts are stripped.</li>
<li>Use the Content Structure view to copy the page.  Same result, web parts are stripped.</li>
</ul>
<p>Finally I found a solution &#8211; although it&#8217;s a bit of a hack in my opinion: SharePoint Designer workflow.  The SPD workflow action &#8220;Copy List Item&#8221; will make a copy of a page and retain all web parts including list view web parts.  Here&#8217;s how you can accomplish this:</p>
<ol>
<li>Open SPD, open your site, and create a new Workflow.  Call it &#8220;Copy Page&#8221; or something like that.</li>
<li>Target your Pages library (or wherever your web part pages live) for the workflow and specify that it should be started manually.</li>
<li>Add a single action:  Copy List Item.  When adding the list item, you can select &#8220;Current Item&#8221; for the page to copy, and then specify the target list as the same Pages library.</li>
</ol>
<p>Now you&#8217;ll be able to start the Copy Page workflow on any page in your pages library.  When it creates a copy it simply appends the date and time to the file name so you won&#8217;t wind up over-writing the existing page.</p>
<p>With a little more work it should be possible to create an Initiation Variable for your workflow and rename the page as a part of the workflow.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2009/10/15/copying-a-web-part-page-including-web-parts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Looking forward to SharePoint 2010</title>
		<link>http://blog.glenc.net/2009/08/14/looking-forward-to-sharepoint-2010/</link>
		<comments>http://blog.glenc.net/2009/08/14/looking-forward-to-sharepoint-2010/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 22:42:04 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[Office System]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/?p=122</guid>
		<description><![CDATA[One of my biggest complaints about SharePoint 2007 is that as a developer, it is virtually impossible to employ professional development techniques when building SharePoint solutions.  I&#8217;m talking about source control, continuous integration, test driven development, etc.  Obviously you can use these techniques when it comes to custom web parts, event receivers, and other &#8220;code [...]]]></description>
			<content:encoded><![CDATA[<p>One of my biggest complaints about SharePoint 2007 is that as a developer, it is virtually impossible to employ professional development techniques when building SharePoint solutions.  I&#8217;m talking about source control, continuous integration, test driven development, etc.  Obviously you can use these techniques when it comes to custom web parts, event receivers, and other &#8220;code only&#8221; solutions, but when you&#8217;re talking about larger projects that include content types, SharePoint Designer workflows, custom lists, in addition to custom code, it simply isn&#8217;t practical to try and cram everything into source control.  It&#8217;s just too much effort.</p>
<p>From what I&#8217;ve seen so far, many of these issues will be resolved with SharePoint 2010 and Visual Studio 2010.  I&#8217;m looking forward to digging into a real project so I can find out where the &#8220;gotchas&#8221; are (and I&#8217;m sure there will be plenty), but so far I&#8217;m optimistic.  I am hopeful that as a developer, I will be able to bring professional development techniques to all areas of a SharePoint project.</p>
<p>In my opinion this is critical if Microsoft wants to make SharePoint a true application development platform.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2009/08/14/looking-forward-to-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SOLVED: Console Configuration File Error: File Not Found: The system cannot find the file specified. (Exception from HRESULT: 0&#215;80070002)</title>
		<link>http://blog.glenc.net/2009/08/04/solvedconsole-configuration-file-error/</link>
		<comments>http://blog.glenc.net/2009/08/04/solvedconsole-configuration-file-error/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 20:52:40 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/?p=118</guid>
		<description><![CDATA[I&#8217;ve been wrestling with this error off and on for a while now.  It shows up in the event log of a production MOSS server I help manage.  Here is the error message:
Event Type: Error
Event Source: Office SharePoint Server
Event Category: Publishing
Event ID: 5165
Date: 8/4/2009
Time: 12:57:51 PM
User: N/A
Computer: SERVER
Description:
Console Configuration File Error: File Not Found: The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been wrestling with this error off and on for a while now.  It shows up in the event log of a production MOSS server I help manage.  Here is the error message:</p>
<blockquote><p>Event Type:<span> </span>Error<br />
Event Source:<span> </span>Office SharePoint Server<br />
Event Category:<span> </span>Publishing<br />
Event ID:<span> </span>5165<br />
Date:<span> </span>8/4/2009<br />
Time:<span> </span>12:57:51 PM<br />
User:<span> </span>N/A<br />
Computer:<span> </span>SERVER<br />
Description:<br />
Console Configuration File Error: File Not Found: The system cannot find the file specified. (Exception from HRESULT: 0&#215;80070002)<br />
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.</p></blockquote>
<p><a href="http://www.google.com/search?client=safari&amp;rls=en-us&amp;q=Console+Configuration+File+Error:+File+Not+Found:+The+system+cannot+find+the+file+specified.+(Exception+from+HRESULT:+0x80070002)&amp;ie=UTF-8&amp;oe=UTF-8" target="_blank">Googling</a> for this error provides some information, but nothing definitive.  After turning up the logging level for the Publishing category, I was finally able to find enough information to locate the root cause.</p>
<p>This problem occurs when you are using a Master Page referencing SharePoint Publishing controls in a site collection that does not have the Publishing Infrastructure feature activated.  In my case, I was using a Master Page with the Publishing Console control on the page.  This Publishing Console was looking for some files in the Master Page gallery (_catalogs/masterpage/EditingMenu/CustomEditingMenu.xml etc) which don&#8217;t exist if the Publishing Infrastructure is not activated.  After I activated the Publishing Infrastructure, the errors went away.</p>
<p>However, ultimately the real solution was to remove the publishing features from the Master Page since I wasn&#8217;t using them anyway.</p>
<p>This problem came about when we re-used the master page from our main intranet on users&#8217; My Sites.  Since the My Site doesn&#8217;t use the publishing features, every time someone hit a my site, these errors would show up in the event log.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2009/08/04/solvedconsole-configuration-file-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RPoint &#8211; Why Ruby?  What about XML?</title>
		<link>http://blog.glenc.net/2008/08/11/rpoint-why-ruby-what-about-xml/</link>
		<comments>http://blog.glenc.net/2008/08/11/rpoint-why-ruby-what-about-xml/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 04:49:54 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[RPoint]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/?p=94</guid>
		<description><![CDATA[I wanted to do a quick post on why I chose Ruby for RPoint.  I talked about this a little in the first post but just looking at the examples I&#8217;ve given so far, one could make the argument that rather than creating these scripts in ruby, you could just create a simple XML [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to do a quick post on why I chose Ruby for RPoint.  I talked about this a little in the first post but just looking at the examples I&#8217;ve given so far, one could make the argument that rather than creating these scripts in ruby, you could just create a simple XML document that defines your structure, templates, etc.</p>
<p>This is very true &#8211; and in fact I have written tools like this in the past.  But here&#8217;s the problem I&#8217;ve encountered with XML.  You end up trying to build a programming language out of XML.  That&#8217;s basically where CAML has ended up.  And I don&#8217;t know a single person who actually <em>enjoys</em> looking at, much less creating, CAML.</p>
<p>Here&#8217;s what I like about the ruby approach.  It let&#8217;s you write something like this:</p>
<pre name="code" class="ruby">site_names = ["Site One", "Site Two", "Site Three"]
at "http://localhost" do
  site_names.each do |name|
    create_web name, TeamSite
  end
end
</pre>
<p>Just the simple addition of an array of site names is something that would be hard to do in XML.  What if you wanted to pull your information from a database?  Or a file system?  Or an Excel spreadsheet?  For any of those you would have to write more logic into your XML mini-language &#8211; constructs like looping, conditionals, some mechanism to handle plug-ins for additional logic, etc.  By leveraging an actual programming language, we get all of that for free.</p>
<p>Want to create 50 test sites?  Here you go.</p>
<pre name="code" class="ruby">at "http://localhost" do
  50.times do |i|
    create_web "Site #{i}", BlankSite
  end
end
</pre>
<p>&#8217;nuff said.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2008/08/11/rpoint-why-ruby-what-about-xml/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>RPoint &#8211; Hopes and Dreams</title>
		<link>http://blog.glenc.net/2008/08/11/rpoint-vision/</link>
		<comments>http://blog.glenc.net/2008/08/11/rpoint-vision/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 02:47:56 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[RPoint]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/?p=87</guid>
		<description><![CDATA[Yesterday I posted about RPoint for the first time and I showed you a simple script to create a site structure.  All of that code is working today.  I wanted to keep the example simple and show you something that was actually functional.
Today I want to dream a little.  Here are a [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I posted about RPoint for the first time and I showed you a simple script to create a site structure.  All of that code is working today.  I wanted to keep the example simple and show you something that was actually functional.</p>
<p>Today I want to dream a little.  Here are a few scripts I want RPoint to be able to support.</p>
<h2>Creating a List Template</h2>
<p>This script would create a list template.</p>
<pre name="code" class="ruby">class Milestones
  include ListTemplateMixin

  name "Milestones"
  description "A Simple Milestone List"

  column "Milestone", Text, :is_title => true, :required => true
  column "Description", RichText
  column "Date", Date, :required => true, :default => :today

  view "All Milestones" do
    show_columns "Milestone", "Date"
  end

  view "Overdue Milestones" do
    show_columns "Milestone", "Date"
    where :date => less_than(:today)
    order_by :date => :descending
  end
end
</pre>
<p>Once you had defined your template, you could use it in a few different ways.  First, you could use it in a site creation script:</p>
<pre name="code" class="ruby">at "http://localhost" do
  create_list "My Milestones", Milestones
end
</pre>
<p>Second, and possibly cooler, you could generate a list definition:</p>
<pre name="code" class="bash">>ir generate.rb list_definition --source MilestoneTemplate.rb</pre>
<h2>Migrations</h2>
<p>Migrations in Rails is a great pre-defined structure for handling your database schema and changes to it over time.  It may not be anything too ground-breaking on its own, but it enforces a discipline when it comes to managing your database.  You are encouraged to think about situations where you want to change your database but data already exists.  You can write scripts to migrate existing data to your new structure and it&#8217;s all managed within source control as an ordered list of steps to execute.</p>
<p>I want to be able to do something similar with RPoint.</p>
<pre name="code" class="ruby"># first migration - create my site collection
class CreateSiteMigration
  at :webapp => "http://localhost" do
    create_site "My Site", TeamSite
  end
end

# second migration - add a list and add a lookup to that list on an existing list
class AddIssuesMigration
  at "http://localhost/sites/mysite" do
    create_list "Issues", Issues
    update_list "Tasks" do
      add_column "Related Issue", Lookup("Issues", :field => :title)
    end
  end
end
</pre>
<p>Okay &#8211; that&#8217;s enough dreaming for now.  Just incase anyone missed the intro THIS CODE DOES NOT WORK.  It is completely imaginary.  I am <em>hoping</em> that something along these lines will become reality.  And I hope that you will agree that this would be a much nicer way to create SharePoint solutions than slogging through hundreds of lines of XML.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2008/08/11/rpoint-vision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RPoint &#8211; a DSL for SharePoint</title>
		<link>http://blog.glenc.net/2008/08/10/rpoint-a-dsl-for-sharepoint/</link>
		<comments>http://blog.glenc.net/2008/08/10/rpoint-a-dsl-for-sharepoint/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 19:14:01 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[RPoint]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/?p=72</guid>
		<description><![CDATA[A few days back I talked about how the release of IronRuby would be great for SharePoint scripting.  In my opinion, what makes Ruby such a powerful language is that it is great for creating domain specific languages (DSLs).  I&#8217;m going to keep this post short so I won&#8217;t go into what DSLs [...]]]></description>
			<content:encoded><![CDATA[<p>A few days back I <a href="http://blog.glenc.net/2008/07/25/ironruby-a-sharepoint-developers-best-friend/">talked about</a> how the release of <a href="http://rubyforge.org/projects/ironruby">IronRuby</a> would be great for SharePoint scripting.  In my opinion, what makes Ruby such a powerful language is that it is great for creating domain specific languages (DSLs).  I&#8217;m going to keep this post short so I won&#8217;t go into what DSLs are or examples of them.  If you want to find out more info, look at some other ruby libraries such as <a href="http://rspec.info">rspec</a>, <a href="http://rake.rubyforge.org/">rake</a>, and <a href="http://datamapper.org/">datamapper</a>.</p>
<p>I think that SharePoint is in dire need of better tools to facilitate solution development, deployment, and maintenance.  It is simply too difficult to build a site in one environment and then deploy it in production.  Sure you can do backup and restore, but what about when you want to make some upgrades?</p>
<p>Anyway, this weekend I started working on an IronRuby-based DSL for SharePoint scripting.  I&#8217;m calling it RPoint for now (until I think of something sexier!).  Now, this is very very very early in development and I am sure things aren&#8217;t set up today as nicely as they should be long term, but I&#8217;ve been really excited by the progress and the possibilities.</p>
<p>RPoint will allow you to write code like this to create SharePoint sites:</p>
<pre name="code" class="ruby"># create a new subweb beneath an existing site
at "http://localhost" do
  create_web "New Web", TeamSite
end

# create a new site collection and website structure
at :webapp =&gt; "http://localhost" do
  create_site "New Site Collection", BlankSite, "domain\\user" do
    inside root_web do

      # create our site structure
      create_web "Child Web", TeamSite
      create_web "Another Child", BlankSite do
        create_web "Private Site", TeamSite, :inherit_permissions => false
      end

      # create a few lists
      create_list "Documents", DocumentLibrary
      create_list "Announcements", Announcements

    end
  end
end</pre>
<p>I think that&#8217;s pretty cool.  Beyond simply creating sites, RPoint will allow you to create lists, views and probably upload resources like images and documents.</p>
<p>My goals for RPoint are to be able to do the following:</p>
<ul>
<li>Easily write scripts to create site structures and lists</li>
<li>Rails-like &#8220;Migrations&#8221; for applying changes to existing sites</li>
<li>Custom site template and list definitions in ruby as opposed to XML</li>
<li>Ability to run template/list definitions against a live site or generate schema.xml/onet.xml files for production deployment</li>
<li>Support web-services automation as well as object model automation (this will be tough)
</ul>
<p>SharePoint is a huge product.  The code-base is enormous and the aspirations for RPoint are lofty.  I would greatly appreciate any assistance.  The more hands there are to help, the sooner we will have a tool to make SharePoint development a little easier.</p>
<p>To get RPoint in its current form, you can <a href="http://github.com/glenc/rpoint/tree/master">download it from GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2008/08/10/rpoint-a-dsl-for-sharepoint/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IronRuby &#8211; a SharePoint Developer&#8217;s Best Friend</title>
		<link>http://blog.glenc.net/2008/07/25/ironruby-a-sharepoint-developers-best-friend/</link>
		<comments>http://blog.glenc.net/2008/07/25/ironruby-a-sharepoint-developers-best-friend/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 18:33:37 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/?p=71</guid>
		<description><![CDATA[I wrote a while back about SharePoint scripting with IronPython.  Well today&#8217;s announcement of the first binary release of IronRuby got me pretty darn excited.  I really like Python, but I LOVE Ruby.  I&#8217;ve been waiting for IronRuby to catch up to IronPython for quite a while and it looks like they&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a while back about SharePoint scripting with IronPython.  Well <a href="http://www.iunknown.com/2008/07/ironruby-at-oscon.html" target="_blank">today&#8217;s announcement</a> of the first binary release of IronRuby got me pretty darn excited.  I really like Python, but I <em>LOVE</em> Ruby.  I&#8217;ve been waiting for IronRuby to catch up to IronPython for quite a while and it looks like they&#8217;re getting close.</p>
<p>Here&#8217;s a quick guide to getting up and running with IronRuby and SharePoint.</p>
<p><strong>Installation:</strong></p>
<ol>
<li>First, <a href="http://rubyforge.org/projects/ironruby" target="_blank">download the IronRuby release from Rubyforge</a>.</li>
<li>Next, copy the ironruby folder you extract to your Program Files (put it wherever you like &#8211; that&#8217;s where I put mine).</li>
<li>Update your system&#8217;s PATH environment variable to contain the path to the ironruby\bin folder.  So if you placed it in your Program Files, you would add this to your PATH: c:\program files\ironruby\bin</li>
</ol>
<p><strong>Creating a Script:</strong></p>
<p>Next you&#8217;ll want to create a new text file called print_sites.rb.  I recommend the <a href="http://e-texteditor.com/" target="_blank">e text editor</a> by the way &#8211; great tool.  Add the following lines to your file:</p>
<pre name="code" class="ruby">require 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL'
require 'Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL'

Uri = System::Uri
SPSite = Microsoft::SharePoint::SPSite
SPWebApplication = Microsoft::SharePoint::Administration::SPWebApplication
</pre>
<p>Okay &#8211; what does that do?  Well the first two lines are like adding a reference to a standard Visual Studio project.  They tell IronRuby that we need to reference (require) the System and Microsoft.SharePoint assemblies.  The next three lines are for convenience.  They set up aliases to the System.Uri class and two SharePoint classes.  In our ruby code, now we can just use Uri, SPSite, etc instead of having to type out the fully qualified path.</p>
<p>Next, let&#8217;s add some ruby code to enumerate all sites in a web application.</p>
<pre name="code" class="ruby">
webapp = SPWebApplication.Lookup(Uri.new("http://localhost"))
webapp.Sites.each do |site|
  puts site.Url
end
</pre>
<p><em>(hmm, looks like I don&#8217;t actually need the SPSite alias after all)</em></p>
<p>Now, save your file.  You can execute it like this:</p>
<pre name="code" class="bash">> ir print_sites.rb
</pre>
<p>If everything is set up right, you should see the URL for each site collection be printed to the screen.</p>
<p>There you go.  Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2008/07/25/ironruby-a-sharepoint-developers-best-friend/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>sp.py &#8211; SharePoint Scripting with Python</title>
		<link>http://blog.glenc.net/2008/05/18/sppy-sharepoint-scripting-with-python/</link>
		<comments>http://blog.glenc.net/2008/05/18/sppy-sharepoint-scripting-with-python/#comments</comments>
		<pubDate>Mon, 19 May 2008 06:23:32 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[Office System]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/?p=70</guid>
		<description><![CDATA[I wrote a small introduction to SharePoint scripting with Python a while back and this weekend I didn&#8217;t have anything better to do (well actually I did, but I&#8217;m an addict &#8211; what can I say) so I decided to expand on it.  I&#8217;ve started putting together a small Python library for working with SharePoint [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a small <a href="http://blog.glenc.net/2007/08/12/sharepoint-meet-python/" target="_blank">introduction</a> to SharePoint scripting with Python a while back and this weekend I didn&#8217;t have anything better to do (well actually I did, but I&#8217;m an addict &#8211; what can I say) so I decided to expand on it.  I&#8217;ve started putting together a small Python library for working with SharePoint using <a href="http://www.codeplex.com/IronPython" target="_blank">IronPython</a>.  It&#8217;s called &#8211; amazingly &#8211; <a href="http://github.com/glenc/sp.py/tree/master/README" target="_blank">sp.py</a>.</p>
<p>So far the library if pretty small &#8211; although it does include a nice little module for workign with stsadm commands.  I&#8217;ll be adding to it as necessary.  I&#8217;ve decided that although adding <a href="http://stsadm.blogspot.com/" target="_blank">custom stsadm extensions</a> is nice and does fit into the &#8220;way to do things in SharePoint&#8221;, it&#8217;s just too much overhead when you want to do something simple.  So at this point when things come up that need automation, I&#8217;ll be adding new sp.py scripts.</p>
<p>In addition to the sp.py library I&#8217;ve added three scripts:</p>
<ul>
<li style="text-align: left;"><a href="http://github.com/glenc/sp.py/tree/master/src/applytheme.py" target="_blank">applytheme.py</a> &#8211; apply a theme to all webs in a web application</li>
<li><a href="http://github.com/glenc/sp.py/tree/master/src/backupsites.py" target="_blank">backupsites.py</a> &#8211; backup all site collections in a web application</li>
<li><a href="http://github.com/glenc/sp.py/tree/master/src/setprofileprop.py" target="_blank">setprofileprop.py</a> &#8211; set a property on all user profiles based on a dynamic pattern</li>
</ul>
<p>So where can you get this awesomeness?  Well, actually you can get it on <a href="http://github.com/glenc/sp.py/" target="_blank">github</a>.  Github???  You mean that totally web 2.0 site for hosting Git repositories?  Yeah &#8211; that&#8217;s the place.  If you&#8217;re wondering why I&#8217;m using git for source control, well I guess Subversion just wasn&#8217;t &#8220;edge&#8221; enough anymore.  Git&#8217;s actually pretty cool &#8211; and if you need to use Windows you can <a href="http://git.or.cz/#download" target="_blank">download a Windows version here</a>.</p>
<p>At some point I&#8217;ll figure out how to post it as a zip or something instead of a tarball.  But until that point, you can grab the <a href="http://github.com/glenc/sp.py/tarball/master">tarball here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2008/05/18/sppy-sharepoint-scripting-with-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing the SharePoint Knowledge Base</title>
		<link>http://blog.glenc.net/2008/02/26/introducing-the-sharepoint-knowledge-base/</link>
		<comments>http://blog.glenc.net/2008/02/26/introducing-the-sharepoint-knowledge-base/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 07:55:08 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[Office System]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/2008/02/26/introducing-the-sharepoint-knowledge-base/</guid>
		<description><![CDATA[I&#8217;ve had this project in the works for a while now and it&#8217;s time to open it up to the world.  The SharePoint Knowledge Base is a simple wiki site I created to capture some best practices, how-tos, tips and tricks, etc.  While I think that blogs are great tools to communicate this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had this project in the works for a while now and it&#8217;s time to open it up to the world.  The <a href="http://sharepointkb.org" target="_blank">SharePoint Knowledge Base</a> is a simple wiki site I created to capture some best practices, how-tos, tips and tricks, etc.  While I think that blogs are great tools to communicate this sort of information, I&#8217;m not satisfied with the experience of searching for a specific issue or problem.  Often times I find myself sifting through numerous blog posts &#8211; sometimes with conflicting information &#8211; left wondering which author knows his or her stuff.</p>
<p>The intent of the <a href="http://sharepointkb.org" target="_blank">SharePoint Knowledge Base</a> is to provide a wikipedia-like site dedicated to capturing community-driven expert content around SharePoint.</p>
<p>Today, there is not a lot of content.  That&#8217;s where you come in.  We all come across things every day that the rest of the community can benefit from.  Why not take a minute and jot down your notes here in the <a href="http://sharepointkb.org" target="_blank">SharePoint KB</a>?  Not only for your own future reference, but for the benefit of others as well.</p>
<p>There is no registration required to create or edit content.  Until we start to have problems this site will remain completely open for anyone to edit.</p>
<p>So please, if you have something to contribute I would encourage you to <a href="http://sharepointkb.org" target="_blank">post it here</a>.  We can all benefit from a better way to store and update SharePoint-related information.  There&#8217;s so much of it out there but it&#8217;s so hard to sift through.  I hope that together we can start to chip away at this problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2008/02/26/introducing-the-sharepoint-knowledge-base/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SharePoint 3.0 Built-In Fields</title>
		<link>http://blog.glenc.net/2008/01/23/sharepoint-30-built-in-fields/</link>
		<comments>http://blog.glenc.net/2008/01/23/sharepoint-30-built-in-fields/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 00:46:27 +0000</pubDate>
		<dc:creator>glenc</dc:creator>
				<category><![CDATA[Office System]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.glenc.net/2008/01/23/sharepoint-30-built-in-fields/</guid>
		<description><![CDATA[I just came across this amazing resource of field types and their XML schema.
 http://www.johnholliday.net/download/fieldswss.htm
]]></description>
			<content:encoded><![CDATA[<p>I just came across this amazing resource of field types and their XML schema.</p>
<p> <a href="http://www.johnholliday.net/download/fieldswss.htm">http://www.johnholliday.net/download/fieldswss.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.glenc.net/2008/01/23/sharepoint-30-built-in-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
