Google Groups Home
Help | Sign in
Message from discussion [altdotnet] Code Camp Server Help
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Ben Scheirman  
View profile
 More options May 6, 1:37 pm
From: "Ben Scheirman" <subdigi...@gmail.com>
Date: Tue, 6 May 2008 12:37:57 -0500
Local: Tues, May 6 2008 1:37 pm
Subject: Re: [ccs-discuss] Re: [altdotnet] Code Camp Server Help

after looking at it again, there is a way that this is persisted, but I'm
not 100% positive that it's being done yet.

Basically we've made a change to a persistent object's collection
(conference.Attendees).  The session that lives for our entire request gets
flushed when the request is served, so the attendee might get saved.

Again I have to confirm this, but it's a possibility.

On Tue, May 6, 2008 at 12:35 PM, Ben Scheirman <subdigi...@gmail.com> wrote:
> I thought it was, but I just have to look into it.

> I should mention that I've been looking to eliminate ConferenceService
> altogether, because it seemed to just mimic what the repository was doing.
> It still has some unique functionality that I don't see a better home for,
> so it stays for now.

> Feel free to submit a patch. :)

> On Tue, May 6, 2008 at 12:22 PM, Simone Chiaretta <
> simone.chiare...@gmail.com> wrote:

> > I had the same problem a few days ago... I don't think the db
> > persistence is already implemented for this feature
> > Simo

> > On Tue, May 6, 2008 at 7:04 PM, Ben Scheirman <subdigi...@gmail.com>
> > wrote:

> > > this discussion is probably better had over at the codecampserver
> > > list, which I have copied in this email.

> > > On Tue, May 6, 2008 at 11:18 AM, Tim Barcz <timba...@gmail.com> wrote:

> > > >  I'm looking at something in code camp server and need your help.

> > > > I can't see how an attendee ever get's registered for a conference.

> > > > If you look at the code in *ConferenceService *you'll see

> > > >         public Person RegisterAttendee(string firstName, string
> > > > > lastName, string emailAddress, string website, string comment, Conference
> > > > > conference, string cleartextPassword)
> > > > >         {
> > > > >             var passwordSalt = _cryptoUtil.CreateSalt();
> > > > >             var encryptedPassword =
> > > > > _cryptoUtil.HashPassword(cleartextPassword, passwordSalt);

> > > > >             var person = new Person(firstName, lastName,
> > > > > emailAddress)
> > > > >                              {
> > > > >                                  Website = website,
> > > > >                                  Comment = comment,
> > > > >                                  PasswordSalt = passwordSalt,
> > > > >                                  Password = encryptedPassword
> > > > >                              };

> > > > >             conference.AddAttendee(person);

> > > > >             return person;
> > > > >         }

> > > > This is called from the *ConferenceController

> > > > *

> > > > >         public ActionResult Register(string conferenceKey, string
> > > > > firstName, string lastName, string email, string website,
> > > > >                              string comment, string password)
> > > > >         {
> > > > >             try
> > > > >             {
> > > > >                 //register the attendee
> > > > >                 var conference =
> > > > > _conferenceService.GetConference(conferenceKey);
> > > > >                 var person =
> > > > > _conferenceService.RegisterAttendee(firstName, lastName, email, website,
> > > > > comment,

> > > > > conference, password);

> > > > >                 //sign them in
> > > > >                 ViewData.Add(person).Add(new Schedule(conference,
> > > > > _clock, null, null));
> > > > >                 return RenderView("registerconfirm");
> > > > >             }
> > > > >             catch (Exception exc)
> > > > >             {
> > > > >                 TempData[TempDataKeys.Error] = "An error occurred
> > > > > while registering your account.";
> > > > >                 Log.Error(this, "An error occcurred while
> > > > > registering a user", exc);
> > > > >                 return RenderView("pleaseregister");
> > > > >             }
> > > > >         }

> > > > *I don't see how the registration would ever be persisted to the
> > > > database via the ConferenceRepository*.  I don't have 2008 so I
> > > > can't run this, I'm just looking at all these files in Notepad.  I've walked
> > > > it several times and can't figure out how the database would ever be hit
> > > > with the attendee (person) information.

> > > > Any thoughts?

> > > > __._,_.___

> > > >  Your email settings: Individual Email|Traditional
> > > > Change settings via the Web<http://groups.yahoo.com/group/altdotnet/join;_ylc=X3oDMTJnOGdkbGVkBF9...>(Yahoo! ID required)
> > > > Change settings via email: Switch delivery to Daily Digest<altdotnet-dig...@yahoogroups.com?subject=Email+Delivery:+Digest>| Switch
> > > > to Fully Featured<altdotnet-fullfeatu...@yahoogroups.com?subject=Change+Delivery+Format:+Fully+Featured>
> > > >  Visit Your Group
> > > > <http://groups.yahoo.com/group/altdotnet;_ylc=X3oDMTJldXZmYzg1BF9TAzk3...>| Yahoo!
> > > > Groups Terms of Use <http://docs.yahoo.com/info/terms/> | Unsubscribe
> > > > <altdotnet-unsubscr...@yahoogroups.com?subject=Unsubscribe>

> > > > __,_._,___

> > --
> > Simone Chiaretta
> > codeclimber.net.nz
> > Any sufficiently advanced technology is indistinguishable from magic
> > "Life is short, play hard"


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google