Ejemplo n.º 1
0
    def create_transaction_from_params(self):
        new_transaction = Transaction()
        new_transaction.project = Project.get_by_id(int(str(self.request.get("projectId")))).key
        new_transaction.user = User.query(User.google_id == str(self.request.get("userId"))).get().key
        new_transaction.money = int(self.request.get("money"))

        return new_transaction
Ejemplo n.º 2
0
    def create_transaction_from_params(self):
        new_transaction = Transaction()
        new_transaction.project = Project.get_by_id(
            int(str(self.request.get("projectId")))).key
        new_transaction.user = User.query(
            User.google_id == str(self.request.get("userId"))).get().key
        new_transaction.money = int(self.request.get("money"))

        return new_transaction
Ejemplo n.º 3
0
 def hide(self):
     project = Project.get_by_id(int(str(self.request.get("projectId"))))
     project.hide()
Ejemplo n.º 4
0
 def post(self):
     project = Project.get_by_id(int(self.request.get('projectId'))).key
     files = json.loads(str(self.request.get('files')))
     attach_to_project(files, project)
     self.response.out.status = 200
Ejemplo n.º 5
0
 def hide(self):
     project = Project.get_by_id(int(str(self.request.get("projectId"))))
     project.hide()