Skip to content

Commit

Permalink
not sure how to define code
Browse files Browse the repository at this point in the history
  • Loading branch information
sontek committed Dec 12, 2011
1 parent b34e06a commit ac849ad
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Expand Up @@ -33,12 +33,9 @@ this also gives you the ability to do some extra processing before processing is
> from pyramid_signup.events import NewRegistrationEvent
> def handle_request(event):
>
> request = event.request
>
> session = request.registry.getUtility(ISUSession)
>
> session.commit()
request = event.request
session = request.registry.getUtility(ISUSession)
session.commit()
>
> self.config.add_subscriber(handle_request, PasswordResetEvent)
> self.config.add_subscriber(handle_request, NewRegistrationEvent)
Expand Down

0 comments on commit ac849ad

Please sign in to comment.