aboutsummaryrefslogtreecommitdiffstats
path: root/defmodule.lisp
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-07-29 02:09:34 +0200
committerGravatar Tom Willemse2013-07-29 02:09:34 +0200
commit781befeb23bdbe90f1a8220da86d39ab6fd012fb (patch)
tree131c761e45481d592232b6c0bfef5a581edd8cb5 /defmodule.lisp
parent0b13436d1a0907f6b389b5a32f5b078aa12f11b0 (diff)
downloadscrumli-781befeb23bdbe90f1a8220da86d39ab6fd012fb.tar.gz
scrumli-781befeb23bdbe90f1a8220da86d39ab6fd012fb.zip
Rewrite with ningle
Replaces restas with ningle. Restas had 2 problem I could not overcome: 1) It would only let me return a status code or a response, not, for example, a 403 status code with some json. 2) It would not allow me to place it under a subdirectory. Both of these problems possibly (likely) have solutions with restas, but I already found out how to do these things with ningle. This rewrite is sloppy and messy. The code should be cleaned up soon.
Diffstat (limited to 'defmodule.lisp')
-rw-r--r--defmodule.lisp66
1 files changed, 0 insertions, 66 deletions
diff --git a/defmodule.lisp b/defmodule.lisp
deleted file mode 100644
index aa9335a..0000000
--- a/defmodule.lisp
+++ /dev/null
@@ -1,66 +0,0 @@
-;; scrumli --- A simple scrum web application
-;; Copyright (C) 2013 Tom Willemse
-
-;; scrumli is free software: you can redistribute it and/or modify
-;; it under the terms of the GNU Affero General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or
-;; (at your option) any later version.
-
-;; scrumli is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-;; GNU Affero General Public License for more details.
-
-;; You should have received a copy of the GNU Affero General Public License
-;; along with scrumli. If not, see <http://www.gnu.org/licenses/>.
-
-(restas:define-policy datastore
- (:interface-package #:scrumli.policy.datastore)
- (:interface-method-template "DATASTORE-~A")
- (:internal-package #:scrumli.datastore)
-
- (define-method init ()
- "Initiate the datastore.")
-
- (define-method get-all-stories ()
- "Get all of the stories in the datastore.")
-
- (define-method get-stories-for (username)
- "Get all of the storiess for USERNAME.")
-
- (define-method get-story (id)
- "Get a story from the datastore.")
-
- (define-method get-tasks-for-story (id)
- "Get the tasks associated with a story.")
-
- (define-method post-story (role necessity title content reporter)
- "Post a new story.")
-
- (define-method post-task (story-id description reporter)
- "Post a new task for a story.")
-
- (define-method story-get-state (type id)
- "Get the state of a story.")
-
- (define-method story-set-state (type id state)
- "Set the state of a story.")
-
- (define-method story-change-priority (type id dir)
- "Change the priority of a story in direction DIR.")
-
- (define-method set-assignee (type id assignee)
- "Change the assigned person for a story or task."))
-
-(restas:define-module #:scrumli
- (:use #:cl #:restas #:json #:scrumli.datastore #:drakma)
- (:export #:start-scrumli))
-
-(defpackage #:scrumli.pg-datastore
- (:use #:cl #:postmodern #:scrumli.policy.datastore)
- (:export #:pg-datastore))
-
-(in-package #:scrumli)
-
-(defparameter *static-directory*
- (merge-pathnames #P"static/" scrumli-config:*base-directory*))