Re: [racket-dev] replacement for #:namespace arg in dispatch/servlet

2011-01-03 Thread Robby Findler
I'm not sure how much this helps, but you can at least postpone the
problem by using this config file (a modified version of the one in
the handin server quick start docs):

((active-dirs (test))
 (use-https #f))

This way, the web server won't be started. I think students should
still be able to hand things in, but they won't be able to check on
the status of things.

Robby

On Sun, Jan 2, 2011 at 3:32 PM, John Clements cleme...@brinckerhoff.org wrote:
 I'm trying to use the 'handin-server' code, which depends on a now-defunct 
 #:namespace argument to dispatch/servlet. Your change eliminating this 
 argument  (commit c7995e247e8300) was in response to Shriram's PR about port 
 number assignments, but that doesn't help me to figure out why that argument 
 would have disappeared.  I'm guessing that it's going to be something simple 
 like using parameterize on current-namespace instead of specifying it as an 
 optional argument, but since the handin server code isn't mine, I wouldn't be 
 confident that my change was a sane one.

 So: is there a simple mechanism that replaces this optional argument?

 John Clements


 _
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] replacement for #:namespace arg in dispatch/servlet

2011-01-03 Thread Jay McCarthy
The option was removed because it didn't do anything.

#:namespace in other places in the Web Server is used to allow
dynamically loaded code to share module instantiations with the Web
Server (and therefore with each other.)

dispatch/servlet does not dynamic load any code. It runs a servlet
that is passed as a closure argument. That closure has whatever
namespace the author of the servlet wants it to and it would be
misleading to have this argument that really only effects dynamic
loading of code within the servlet itself.

The handin server should just work if you delete the argument, because
as I said, it isn't doing anything.

Jay

2011/1/2 John Clements cleme...@brinckerhoff.org:
 I'm trying to use the 'handin-server' code, which depends on a now-defunct 
 #:namespace argument to dispatch/servlet. Your change eliminating this 
 argument  (commit c7995e247e8300) was in response to Shriram's PR about port 
 number assignments, but that doesn't help me to figure out why that argument 
 would have disappeared.  I'm guessing that it's going to be something simple 
 like using parameterize on current-namespace instead of specifying it as an 
 optional argument, but since the handin server code isn't mine, I wouldn't be 
 confident that my change was a sane one.

 So: is there a simple mechanism that replaces this optional argument?

 John Clements





-- 
Jay McCarthy j...@cs.byu.edu
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

The glory of God is Intelligence - DC 93
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] replacement for #:namespace arg in dispatch/servlet

2011-01-03 Thread Robby Findler
Thanks Jay. I've removed the use of the argument and verified that the
handin-server still seems to work. I'll push the change when I get to
school.

Robby

On Monday, January 3, 2011, Jay McCarthy jay.mccar...@gmail.com wrote:
 The option was removed because it didn't do anything.

 #:namespace in other places in the Web Server is used to allow
 dynamically loaded code to share module instantiations with the Web
 Server (and therefore with each other.)

 dispatch/servlet does not dynamic load any code. It runs a servlet
 that is passed as a closure argument. That closure has whatever
 namespace the author of the servlet wants it to and it would be
 misleading to have this argument that really only effects dynamic
 loading of code within the servlet itself.

 The handin server should just work if you delete the argument, because
 as I said, it isn't doing anything.

 Jay

 2011/1/2 John Clements cleme...@brinckerhoff.org:
 I'm trying to use the 'handin-server' code, which depends on a now-defunct 
 #:namespace argument to dispatch/servlet. Your change eliminating this 
 argument  (commit c7995e247e8300) was in response to Shriram's PR about port 
 number assignments, but that doesn't help me to figure out why that argument 
 would have disappeared.  I'm guessing that it's going to be something simple 
 like using parameterize on current-namespace instead of specifying it as an 
 optional argument, but since the handin server code isn't mine, I wouldn't 
 be confident that my change was a sane one.

 So: is there a simple mechanism that replaces this optional argument?

 John Clements





 --
 Jay McCarthy j...@cs.byu.edu
 Assistant Professor / Brigham Young University
 http://faculty.cs.byu.edu/~jay

 The glory of God is Intelligence - DC 93
 _
   For list-related administrative tasks:
   http://lists.racket-lang.org/listinfo/dev
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

[racket-dev] replacement for #:namespace arg in dispatch/servlet

2011-01-02 Thread John Clements
I'm trying to use the 'handin-server' code, which depends on a now-defunct 
#:namespace argument to dispatch/servlet. Your change eliminating this argument 
 (commit c7995e247e8300) was in response to Shriram's PR about port number 
assignments, but that doesn't help me to figure out why that argument would 
have disappeared.  I'm guessing that it's going to be something simple like 
using parameterize on current-namespace instead of specifying it as an optional 
argument, but since the handin server code isn't mine, I wouldn't be confident 
that my change was a sane one. 

So: is there a simple mechanism that replaces this optional argument?

John Clements



smime.p7s
Description: S/MIME cryptographic signature
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev