[LON-CAPA-users] Panic - dropboxes not appearing?

Ray Batchelor lon-capa-users@mail.lon-capa.org
Thu, 6 Sep 2007 06:55:48 -0700


Yeah... but don't ignore Guy's comment about the xml structure.
You'll need to take care of that before anything will work properly, I
think. You'll want your <part />s  in the .problem, rather than in the
imported .library.



On 9/6/07, Robert_Brewington@er.monroe.edu
<Robert_Brewington@er.monroe.edu> wrote:
> Interesting thought. I assume that if the course level is set to files of
> .xls, then individual problems can use the parameter statement to override
> to something else. I have several problems that have students dropping off
> other file types as well.
>
> I will try this - it sounds too easy:)
>
> Thanks,
> brew
> -----lon-capa-users-admin@mail.lon-capa.org wrote: -----
>
> To: lon-capa-users@mail.lon-capa.org
> From: "Ray Batchelor" <batchelo@sfu.ca>
> Sent by: lon-capa-users-admin@mail.lon-capa.org
> Date: 09/05/2007 07:55PM
> Subject: Re: [LON-CAPA-users] Panic - dropboxes not appearing?
>
> Couldn't you set it in the course parameters instead putting it in the
> problem code?
> You may not like that as a permanent solution,  though... just a thought.
>
>
> On 9/5/07, Robert_Brewington@er.monroe.edu
> <Robert_Brewington@er.monroe.edu> wrote:
> > OK, I now see a brute force fix. I have to put the parameter in the main
> > problem, before any of the parts.
> >
> > Unfortunately, this will require me to search all the problems that use
> this
> > - there are perhaps 50 out of 500 or more? and change them all. OK, I can
> do
> > that - I live for drudge work:) but I wonder of there is some trick to
> make
> > it work by putting the parameter in the library? The code structure is
> >
> > <problem>
> >      ------ This one works correctly ----
> > <parameter name="uploadedfiletypes" id="13" default="xls"
> > type="string_fileext" description="Allowed File Extensions for Uploaded
> > Files" />
> >
> > <import> script library </import>
> >
> > ... set some script variables ...
> >
> > <import> problem_part_stuff library </import>
> >
> >
> > My design was hopefully to make single changes to the libraries, rather
> than
> > changing every problem of this structure:(
> >
> > I tried putting the parameter as the first line in the
> problem_part_stuff,
> > before any parts, but that didn't work.
> >
> > I also tried putting it in the problem_part_stuff <part> that did the
> > dropbox, thinking that it would certainly affect that part. Again with no
> > luck.
> >
> > I also tried putting it in the script library, before the <script>
> > statement. Again no luck.
> >
> > I ma beginning to think I can't put <parameter> statements in files that
> are
> > imported - does that sound correct?
> >
> > Thanks,
> > brew
> >
> > -----lon-capa-users-admin@mail.lon-capa.org wrote: -----
> >
> > To: lon-capa-users@mail.lon-capa.org
> > From: Guy Albertelli II <guy@albertelli.com>
> > Sent by: lon-capa-users-admin@mail.lon-capa.org
> > Date: 09/05/2007 04:43PM
> > Subject: Re: [LON-CAPA-users] Panic - dropboxes not appearing?
> >
> >
> > Hi Brew,
> >
> >
> > Quick guess:
> >
> > > <library>
> > > <part id="Spreadsheetdone">
> >
> > ...
> >
> > > <parameter name="uploadedfiletypes" id="13" default="xls,xlsm,xlsx"
> > > type="string_fileext" description="Allowed File Extensions for Uploaded
> > > Files" />
> >
> > ...
> >
> > > </part>
> > ...
> > > <part id="dropBox">
> > ...
> > > <essayresponse id="upload">
> > ...
> >
> >
> > Your parameter is affecting part Spreadsheetdone, not part dropBox.
> >
> > Thus no extensions set thus no file selector.
> >
> > For a quick fix PPRM -> set uploadfiltypes at part 0 to xls,xlsm,xlsx
> > for this problem.
> >
> >
> >
> > --
> > guy@albertelli.com   0-7-0-9-27,137
> > _______________________________________________
> > LON-CAPA-users mailing list
> > LON-CAPA-users@mail.lon-capa.org
> > http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
> >
> >
> >  _______________________________________________
> > LON-CAPA-users mailing list
> > LON-CAPA-users@mail.lon-capa.org
> > http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>
>
> --
> Raymond J. Batchelor
> Dept of Chemistry
> Simon Fraser University
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>
>
>
>
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>


-- 
Raymond J. Batchelor
Dept of Chemistry
Simon Fraser University