[Building Sakai] issues with duplicating a course

Zhen Qian zqian2004 at gmail.com
Thu Mar 10 08:50:43 PST 2011


Yes. There is a setting inside BaseAssignmentService.java that looks for
configuration variable "import.importAsDraft". So if you set

import.importAsDraft=false

in sakai.properties file, imported/duplicated assignments won't be drafts.

Here is the related code section inside BaseAssignmentService.java:

// when importing, refer to property to determine draft status
                            if
("false".equalsIgnoreCase(m_serverConfigurationService.getString("import.importAsDraft")))
                            {

nAssignment.setDraft(oAssignment.getDraft());
                            }
                            else
                            {
                                nAssignment.setDraft(true);
                            }

Here is the related svn log for the change:

Revision *18199*<https://source.sakaiproject.org/viewsvn?view=revision&revision=18199>-
(
view<https://source.sakaiproject.org/viewsvn/assignment/trunk/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java?revision=18199&view=markup>)
(annotate<https://source.sakaiproject.org/viewsvn/assignment/trunk/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java?annotate=18199>)
- [select for diffs]<https://source.sakaiproject.org/viewsvn/assignment/trunk/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java?r1=18199&view=log>
Modified *Fri Nov 17 13:57:38 2006 UTC* (4 years, 3 months ago) by *
wagnermr at iupui.edu*
File length: 253400 byte(s)
Diff to previous
17479<https://source.sakaiproject.org/viewsvn/assignment/trunk/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java?r1=17479&r2=18199>

OPC-64
http://bugs.sakaiproject.org/jira/browse/OPC-64
Importing of Assignment items should have forced draft status optional
for an institution

Thanks,

- Zhen





On Thu, Mar 10, 2011 at 11:43 AM, Nicole Burris <nburris at ashworthcollege.edu
> wrote:

>  Zhen,
>
>
>
> Is there a way to change the default?
>
>
>
> Thanks,
>
> Nicole
>
>
>
>
>
> *From:* Zhen Qian [mailto:zqian2004 at gmail.com]
> *Sent:* Thursday, March 10, 2011 10:35 AM
> *To:* Nicole Burris
> *Cc:* sakai-dev at collab.sakaiproject.org
> *Subject:* Re: [Building Sakai] issues with duplicating a course
>
>
>
> Nicole:
>
> As for the Assignment, it is by design the copied assignment would be draft
> by default. This is to remind the instructors that they have to change the
> assignment with proper dates (not accidentally have it open to students), as
> well as other modifications to assignment text and attachments.
>
> Thanks,
>
> - Zhen
>
> On Thu, Mar 10, 2011 at 10:27 AM, Nicole Burris <
> nburris at ashworthcollege.edu> wrote:
>
> I am having an issue when I duplicate a course. The assignments are copying
> over as drafts, and the gradebook items are not copying over either. Is
> there a way to duplicate a course exactly “as is”, assignments, gradebook,
> and all?
>
>
>
> Thanks,
>
>
>
> *Nicole Burris*
>
> *Program Manager*
>
>
>
> *[image: Ashworth College]*
>
> 6625 The Corners Parkway, Ste. 500
>
> Norcross, GA 30092
>
> *Educating Minds. Changing Lives.*
>
>
>
> P: 770-729-8400, ext. 5344
>
> F: 770-417-3030
>
> E: nburris at ashworthcollege.edu
>
> W: www.ashworthcollege.edu
>
>
>
> Join Ashworth’s Forum community! <http://www.auforumspot.com/>
> Join Ashworth’s Blogging community! <http://www.aublogspot.com/>
> Join Ashworth’s MySpace community!<http://www.myspace.com/ashworthuniversity>
> Join Ashworth’s Facebook community!<http://www.facebook.com/home.php?#/pages/Norcross-GA/Ashworth-College-Fan-Page/6228842901>
> Join Ashworth’s Flickr community!<http://www.flickr.com/photos/ashworthcollege/>
> Join Ashworth’s YouTube community!<http://www.youtube.com/user/ashworthcollege>
>
>
>
>
> _______________________________________________
> 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"
>
>
>
> _______________________________________________
> 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"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110310/16246311/attachment.html 


More information about the sakai-dev mailing list