Permalink
Browse files

Version 3

  • Loading branch information...
1 parent 976cf78 commit da424ecd21da405c574e7ce843b37cb3014dde1e @GeorgeNava committed Jul 16, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 db/db.go
View
@@ -1,5 +1,6 @@
package db
+
import(
"http"
"rand"
@@ -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

0 comments on commit da424ec

Please sign in to comment.