Skip to content

Commit

Permalink
Version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeNava committed Jul 16, 2011
1 parent 976cf78 commit da424ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/db.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package db


import(
"http"
"rand"
Expand All @@ -13,12 +14,12 @@ import(


// DATASTORE MANAGER -------------------------------------

type Manager struct {
Request *http.Request
Context appengine.Context
}

// To instantiate a new DB Manager with a fresh context
func New(r *http.Request) Manager{
mgr := Manager{Request:r,Context:appengine.NewContext(r)}
return mgr
Expand Down

0 comments on commit da424ec

Please sign in to comment.