Revision: 3819
Author: hans
URL: http://bknr.net/trac/changeset/3819
Fix for images with non-URL characters in their names.
Split styles for non-JS image browser into separate file.
Clear previous image when entering directory in order to reduce spurious
image exposures.
A trunk/projects/quickhoney/website/static/image-browse.css
A trunk/projects/quickhoney/website/static/index.css
U trunk/projects/quickhoney/website/static/javascript.js
A trunk/projects/quickhoney/website/static/quickhoney.css
D trunk/projects/quickhoney/website/static/styles.css
Change set too large, please see URL above
Revision: 3818
Author: ksprotte
URL: http://bknr.net/trac/changeset/3818
whitespace / indent datastore/src/data
U trunk/bknr/datastore/src/data/blob.lisp
U trunk/bknr/datastore/src/data/convert.lisp
U trunk/bknr/datastore/src/data/encoding-test.lisp
U trunk/bknr/datastore/src/data/encoding.lisp
U trunk/bknr/datastore/src/data/json.lisp
U trunk/bknr/datastore/src/data/object-tests.lisp
U trunk/bknr/datastore/src/data/object.lisp
U trunk/bknr/datastore/src/data/package.lisp
U trunk/bknr/datastore/src/data/tests.lisp
U trunk/bknr/datastore/src/data/txn.lisp
U trunk/bknr/datastore/src/data/xml-object.lisp
U trunk/bknr/datastore/src/data/xml-tutorial.lisp
Change set too large, please see URL above
Revision: 3817
Author: ksprotte
URL: http://bknr.net/trac/changeset/3817
(deftransaction CHANGE-SLOT-VALUES ...) had been split into
(defun CHANGE-SLOT-VALUES ...) and (defun TX-CHANGE-SLOT-VALUES ...) in
http://bknr.net/trac/changeset/3037 to produce a warning only when
CHANGE-SLOT-VALUES is called (it is deprecated), whereas
TX-CHANGE-SLOT-VALUES is properly used in (SETF SLOT-VALUE-USING-CLASS).
I dont understand the reason for deprecating change-slot-values AND
making it at the same time non-functional. It is still used by BOS
e.g. in edit-sponsor, so I changed it to still produce a warning, but
be functional again.
U trunk/bknr/datastore/src/data/object.lisp
Modified: trunk/bknr/datastore/src/data/object.lisp
===================================================================
--- trunk/bknr/datastore/src/data/object.lisp 2008-09-05 16:25:53 UTC (rev 3816)
+++ trunk/bknr/datastore/src/data/object.lisp 2008-09-05 18:10:54 UTC (rev 3817)
@@ -716,12 +716,11 @@
(defun change-slot-values (object &rest slots-and-values)
"This function is the deprecated way to set slots of persistent
objects."
- (declare (ignore slots-and-values))
(warn "CHANGE-SLOT-VALUES is deprecated - use WITH-TRANSACTION and standard accessors!")
(execute (make-instance 'transaction
:function-symbol 'tx-change-slot-values
:timestamp (get-universal-time)
- :args (list object))))
+ :args (list* object slots-and-values))))
(defmethod prepare-for-snapshot (object)
nil)
Revision: 3812
Author: hans
URL: http://bknr.net/trac/changeset/3812
Reorganize source to match control flow.
U trunk/projects/bos/web/sponsor-handlers.lisp
Modified: trunk/projects/bos/web/sponsor-handlers.lisp
===================================================================
--- trunk/projects/bos/web/sponsor-handlers.lisp 2008-09-05 15:03:22 UTC (rev 3811)
+++ trunk/projects/bos/web/sponsor-handlers.lisp 2008-09-05 15:04:15 UTC (rev 3812)
@@ -330,16 +330,16 @@
(redirect #?"/cert-regen/$((store-object-id contract))?action=wait")
(defmethod handle-object-form ((handler cert-regen-handler) (action (eql :wait)) (contract contract))
- (if (and (contract-certificates-generated-p contract)
- (not (contract-tree-needs-update-p)))
+ (if (not (and (contract-certificates-generated-p contract)
+ (not (contract-tree-needs-update-p))))
+ (html (:html
+ (:head ((:meta :http-equiv "refresh"
+ :content #?"2; url=/cert-regen/$((store-object-id contract))?action=wait")))
+ (:body "waiting for certificate to be regenerated...")))
(with-bos-cms-page (:title "Certificate has been recreated")
(html "The certificates for the sponsor have been re-generated." :br)
(unless (contract-download-only-p contract)
(mail-print-pdf contract)
(html "The print certificate has been sent to the relevant BOS office address by email." :br))
(let ((sponsor (contract-sponsor contract)))
- (cmslink #?"edit-sponsor/$((store-object-id sponsor))" "return to sponsor")))
- (html (:html
- (:head ((:meta :http-equiv "refresh"
- :content #?"2; url=/cert-regen/$((store-object-id contract))?action=wait")))
- (:body "waiting for certificate to be regenerated...")))))
\ No newline at end of file
+ (cmslink #?"edit-sponsor/$((store-object-id sponsor))" "return to sponsor")))))
\ No newline at end of file
Revision: 3811
Author: hans
URL: http://bknr.net/trac/changeset/3811
Wait for certificate generation in CMS.
U trunk/projects/bos/web/sponsor-handlers.lisp
Modified: trunk/projects/bos/web/sponsor-handlers.lisp
===================================================================
--- trunk/projects/bos/web/sponsor-handlers.lisp 2008-09-05 14:23:27 UTC (rev 3810)
+++ trunk/projects/bos/web/sponsor-handlers.lisp 2008-09-05 15:03:22 UTC (rev 3811)
@@ -327,10 +327,19 @@
(defmethod handle-object-form ((handler cert-regen-handler) (action (eql :regenerate)) (contract contract))
(with-query-params (name address language)
(contract-issue-cert contract name :address address :language language))
- (with-bos-cms-page (:title "Certificate has been recreated")
- (html "The certificates for the sponsor have been re-generated." :br)
- (unless (contract-download-only-p contract)
- (mail-print-pdf contract)
- (html "The print certificate has been sent to the relevant BOS office address by email." :br))
- (let ((sponsor (contract-sponsor contract)))
- (cmslink #?"edit-sponsor/$((store-object-id sponsor))" "return to sponsor"))))
\ No newline at end of file
+ (redirect #?"/cert-regen/$((store-object-id contract))?action=wait")
+
+(defmethod handle-object-form ((handler cert-regen-handler) (action (eql :wait)) (contract contract))
+ (if (and (contract-certificates-generated-p contract)
+ (not (contract-tree-needs-update-p)))
+ (with-bos-cms-page (:title "Certificate has been recreated")
+ (html "The certificates for the sponsor have been re-generated." :br)
+ (unless (contract-download-only-p contract)
+ (mail-print-pdf contract)
+ (html "The print certificate has been sent to the relevant BOS office address by email." :br))
+ (let ((sponsor (contract-sponsor contract)))
+ (cmslink #?"edit-sponsor/$((store-object-id sponsor))" "return to sponsor")))
+ (html (:html
+ (:head ((:meta :http-equiv "refresh"
+ :content #?"2; url=/cert-regen/$((store-object-id contract))?action=wait")))
+ (:body "waiting for certificate to be regenerated...")))))
\ No newline at end of file