[Building Sakai] sites created from templates always unpublished in 2.7/2.8

John Bush john.bush at rsmart.com
Thu May 12 16:45:12 PDT 2011


Thanks, earle, this worked.  You tracked it down faster than I did.  I only
like to go into SiteAction with Kevlar or at least a life jacket.

I wonder if this is something that should go into core.  It seems like a
better way to handle it.  I'll log a jira and submit a patch.

On Thu, May 12, 2011 at 1:18 PM, Earle Nietzel <earle.nietzel at gmail.com>wrote:

> It appears it always set a new site published status at:
>
> site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
>
> 5163                                 // new site is set to be unpublished
> 5164                                 site.setPublished(false);
>
> Add something like:
>
> site.setPublished(templateSite.isPublished());
>
> That way it just picks it from your template.
>
> Earle
>
>
> On Thu, May 12, 2011 at 3:55 PM, John Bush <john.bush at rsmart.com> wrote:
>
>> When I create a site from a template it is always unpublished.  Is this
>> the intended behavior?  It seems to me it ought to inherit the publish
>> status from the template site instead, or ask, which is how is used to work
>> in 2.6.
>>
>> --
>> John Bush
>> 602-490-0470
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>
>


-- 
John Bush
602-490-0470
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110512/8babdce8/attachment.html 


More information about the sakai-dev mailing list