<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">On Tuesday 21 April 2009 14:16:36 Tomeu Vizoso wrote:<br>
&gt; On Tue, Apr 21, 2009 at 19:02, Carol Farlow Lerche &lt;cafl@msbit.com&gt; wrote:<br>
&gt; &gt; It's entirely unclear what this project has morphed to.  Tomeu, what use<br>
&gt; &gt; is uploading arbitrary journal entries to Moodle?<br>
&gt;<br>
&gt; Because the chances that the needed filter to convert that file to a<br>
&gt; printable format is in the server are bigger than being in every<br>
&gt; machine, for some deployments.<br>
&gt;<br>
&gt; &gt; I thought creating pdf<br>
&gt; &gt; output in sugar and enabling uploading of the pdf to Moodle was the point<br>
&gt; &gt; of this project.  That is useful in two ways.  First, it is a path to<br>
&gt; &gt; assignment turn-in or printing either through Moodle or by other<br>
&gt; &gt; transports to a system configured to print pdfs.  It also allows a<br>
&gt; &gt; student to review the printer-ready output to decide if it is worth<br>
&gt; &gt; getting hard copy.<br>
&gt;<br>
&gt; Sure, I though I had made clear than printing to PDF in Sugar has<br>
&gt; important use cases.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Tomeu<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>My idea for dealing with the headache of filters is assuming only pdf/ps is printable, and having the Journal display a "Print" button if and only if the mimetype is pdf or ps. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>This way we can then make the decision of sending it to moodle via xml-rpc, a local cups queue, or a remote cups server using lpr. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Activities that can't output to pdf/ps will be provided with gtkprint facilities and a pdf journal entry will be generated after they draw their output. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Vamsi has already hacked pdf output into Write, so that's one big activity we will have covered. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>For the security issues, activities will only generate a journal pdf entry, which would be displayed using show_object_in_journal or somesuch (just like Chat currently handles opnening URLs). The user will then have the ability to immediately review the printable output and/or send it to the preferred queue. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>This architecture follows some basic principles: <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>1) Paper/Ink is expensive, we need a way to easily and reliably review what's going to be printed. Requiring people to load up Browse, navigate inside Moodle, and download a PDF file for review, is not exactly user-friendly. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>2) We don't need to specify a set of "required" filters...yet, we can easily expand this to "well, HTML, JPG and PNG are probably going to be supported by every CUPS out there, so admit those as well", but I think 1) is priority here. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>3) Following up on 2), the journal mechanism is orthogonal to what we end up sending to Moodle. Ben and Tomeu have sort of agreed on sending the raw journal entries to Moodle, so we can use all the CUPS filters on the server, this conflicts with 1) in my view, but it has its advantages. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>&gt; &gt; On Tue, Apr 21, 2009 at 9:36 AM, Tomeu Vizoso &lt;tomeu@sugarlabs.org&gt; wrote:<br>
&gt; &gt;&gt; On Tue, Apr 21, 2009 at 18:29, Benjamin M. Schwartz<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &lt;bmschwar@fas.harvard.edu&gt; wrote:<br>
&gt; &gt;&gt; &gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt; &gt;&gt; &gt; Hash: SHA1<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Tomeu Vizoso wrote:<br>
&gt; &gt;&gt; &gt;&gt; Printing is not limited to uploading files to moodle, we provide both<br>
&gt; &gt;&gt; &gt;&gt; local and server printing and users will use whatever works in their<br>
&gt; &gt;&gt; &gt;&gt; environment.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; I think this is too much for one Summer of Code project.  That's why I<br>
&gt; &gt;&gt; &gt; have been recommending that we forget about local printing for now.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I would actually be happy if we just implemented sending journal<br>
&gt; &gt;&gt; entries to the print queue and the moodle module. Print to pdf has<br>
&gt; &gt;&gt; several important use cases and I would like to see it implemented for<br>
&gt; &gt;&gt; 0.86 for at least Write and Browse, but I don't think it needs to be<br>
&gt; &gt;&gt; part of this GSoC.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt; Anyway, on a purely technical level I think we have reached agreement.<br>
&gt; &gt;&gt; &gt;  (I<br>
&gt; &gt;&gt; &gt; do wonder whether the Moodle print queue should also support acting as<br>
&gt; &gt;&gt; &gt; a standard print server, so that standard desktops can print into the<br>
&gt; &gt;&gt; &gt; Moodle<br>
&gt; &gt;&gt; &gt; approval queue, but that's a detail.)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Yeah, I would prefer if we use simple file upload at first because it<br>
&gt; &gt;&gt; works already.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; There's lots of fun stuff to do in this area, but what gives most<br>
&gt; &gt;&gt; value to the user is quite straightforward. We should aim to leave the<br>
&gt; &gt;&gt; complicated stuff for the end, as extras, and focus on delivering what<br>
&gt; &gt;&gt; matters most first<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Regards,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Tomeu<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt; - --Ben<br>
&gt; &gt;&gt; &gt; -----BEGIN PGP SIGNATURE-----<br>
&gt; &gt;&gt; &gt; Version: GnuPG v2.0.10 (GNU/Linux)<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; iEYEARECAAYFAknt9FQACgkQUJT6e6HFtqTjmwCfdM831aiEMbpRiJNQLX8Bf2FY<br>
&gt; &gt;&gt; &gt; OH8AniCGOPuqgY/GlR+V2io6+/NyiTnl<br>
&gt; &gt;&gt; &gt; =KI8s<br>
&gt; &gt;&gt; &gt; -----END PGP SIGNATURE-----<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; Sugar-devel mailing list<br>
&gt; &gt;&gt; Sugar-devel@lists.sugarlabs.org<br>
&gt; &gt;&gt; http://lists.sugarlabs.org/listinfo/sugar-devel<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; "It is difficult to get a man to understand something, when his salary<br>
&gt; &gt; depends upon his not understanding it." -- Upton Sinclair<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Sugar-devel mailing list<br>
&gt; Sugar-devel@lists.sugarlabs.org<br>
&gt; http://lists.sugarlabs.org/listinfo/sugar-devel<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
  Andrés</p></body></html>