Re: An issue for consideration

2008-05-23 Thread Brendan Taylor
On Fri, May 23, 2008 at 04:20:21PM +1000, Bluebie, Jenna wrote: > This should help. include Camping::ControllerSecurity in your controllers > module or your Camping (or whatever Camping.goes has turned it in to) > module, after requiring this: > >> module Camping >> module ControllerSecurity >>

Re: how to "encrypt" the password/login for the blog.rb example?

2008-02-24 Thread Brendan Taylor
On Sat, Feb 23, 2008 at 11:32:32PM -0400, Albert Ng wrote: > Mr Taylor, I have used your module for digest authorization and was > wondering if you could answer a couple of questions: > What does module_function do without calling a :symbol?

Re: how to "encrypt" the password/login for the blog.rb example?

2008-02-23 Thread Brendan Taylor
On Fri, Feb 22, 2008 at 07:39:59PM +0100, Manfred Stienstra wrote: > On Feb 22, 2008, at 7:28 PM, Albert Ng wrote: > > > looking at the blog.rb example, I see a very nice example of > > authentication, but the username/password is transmitted in clear > > text form > > > > My question then is,

Re: How many CRLFs between header and body?

2007-11-22 Thread Brendan Taylor
I guess I should have waited a bit longer to send that email, I think I've tracked it down. When one of the values in @headers contains an empty list we get a superfluous CRLF, ie: >> Z = "\r\n" >> headers = {"Content-Type"=>"text/plain;charset=utf-8", "Set-Cookie"=>[]} >> headers.map{|k,v|[*v].

How many CRLFs between header and body?

2007-11-22 Thread Brendan Taylor
Just ran into a problem[1]. It seems to have been introduced by changeset 224 [2], a fix for ticket 126 [3]. The root is the number of CRLFs Camping puts between the headers and the body of the response. This has changed at least 3 times; right now we're back to 1. (ie. every header ends in a CRLF

Re: Weird application/x-www-form-urlencoded bug

2007-10-24 Thread Brendan Taylor
On Tue, Oct 23, 2007 at 07:54:15PM +0200, Simon Rozet wrote: > Hello, > > I experienced a weird bug today, while implementing an AtomPub server. > I pasted all the story and bug details here : http://p.caboo.se/110125 > > It maybe be related to http://code.whytheluckystiff.net/camping/ticket/142

Re: PUT (and friends) bug?

2007-09-28 Thread Brendan Taylor
On Fri, Sep 28, 2007 at 03:22:23PM -0400, Nathaniel Talbott wrote: > As far as I can tell, sending an actual HTTP PUT request to a Camping > app will never parse the params out of the request body - or am I > going nuts? This code seems to say only POST's will parse the request > body: > > elsif

Re: RV permissions -- can't park in my lot!

2007-05-18 Thread Brendan Taylor
On Fri, May 18, 2007 at 11:09:31PM -0400, Joshua Schairbaum wrote: > nohup su -c "/usr/bin/ruby rv_harness.rb 3301 127.0.0.1 < /dev/null 2>&1 > > /dev/null" www-data < /dev/null 2>&1 >> /var/log/rv.log & > > Obviously, permissions are a weakpoint for me, so I'd appreciate any help `su -c` execute

Re: Module Madness

2007-05-08 Thread Brendan Taylor
On Tue, May 08, 2007 at 12:42:55PM -0400, Joshua Schairbaum wrote: > I was wrong. A symbol didn't work, it just didn't throw an error. > >From the code below, can anyone see why I wouldn't be able to > namespace a Global::Helpers module and include it in MyApp::Helpers > and have the methods avail

Re: How to create a drop-down list with Markaby?

2007-05-04 Thread Brendan Taylor
On Fri, May 04, 2007 at 04:26:40PM +0200, Thomas Weibel wrote: > One more thing: How would I preselect a certain entry like this? option 'Marvin', :value => "marvin", :selected => "selected" -- pgpdEP4l8mOlb.pgp Description: PGP signature _