From: Radek Czajka
Date: Tue, 3 Aug 2010 11:07:29 +0000 (+0200)
Subject: Merge branch 'production'
X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/1fbf854ce423d2d56723ff10608267403f4916b0?hp=f06b3e117258f7968b7df783064c2a4deb6e3879
Merge branch 'production'
---
diff --git a/.gitignore b/.gitignore
index a926b1ad..0d555842 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,10 +2,15 @@ localsettings.py
dev.sqlite
requirements.pybundle
*~
+*.orig
# Python garbage
*.pyc
.coverage
+.coveragerc
+coverage.xml
+nosetests.xml
+pip-log.txt
# Mac OS X garbage
.DS_Store
diff --git a/apps/django_cas/backends.py b/apps/django_cas/backends.py
index 328469a9..d55c9db3 100644
--- a/apps/django_cas/backends.py
+++ b/apps/django_cas/backends.py
@@ -53,7 +53,7 @@ def _verify_cas2(ticket, service):
except:
import traceback
traceback.print_exc()
- print "****"
+ print "****", url
print response
print "****"
finally:
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/default.css b/apps/filebrowser/media/filebrowser/uploadify/example/css/default.css
index ec5902d4..2173d9ec 100644
--- a/apps/filebrowser/media/filebrowser/uploadify/example/css/default.css
+++ b/apps/filebrowser/media/filebrowser/uploadify/example/css/default.css
@@ -1,10 +1,10 @@
-body {
- font: 12px/16px Arial, Helvetica, sans-serif;
-}
-#fileQueue {
- width: 400px;
- height: 300px;
- overflow: auto;
- border: 1px solid #E5E5E5;
- margin-bottom: 10px;
+body {
+ font: 12px/16px Arial, Helvetica, sans-serif;
+}
+#fileQueue {
+ width: 400px;
+ height: 300px;
+ overflow: auto;
+ border: 1px solid #E5E5E5;
+ margin-bottom: 10px;
}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css b/apps/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css
index 0cf8c0ea..754de060 100644
--- a/apps/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css
+++ b/apps/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css
@@ -1,53 +1,53 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-.uploadifyQueueItem {
- font: 11px Verdana, Geneva, sans-serif;
- border: 2px solid #E5E5E5;
- background-color: #F5F5F5;
- margin-top: 5px;
- padding: 10px;
- width: 350px;
-}
-.uploadifyError {
- border: 2px solid #FBCBBC !important;
- background-color: #FDE5DD !important;
-}
-.uploadifyQueueItem .cancel {
- float: right;
-}
-.uploadifyProgress {
- background-color: #FFFFFF;
- border-top: 1px solid #808080;
- border-left: 1px solid #808080;
- border-right: 1px solid #C5C5C5;
- border-bottom: 1px solid #C5C5C5;
- margin-top: 10px;
- width: 100%;
-}
-.uploadifyProgressBar {
- background-color: #0099FF;
- width: 1px;
- height: 3px;
+/*
+Uploadify v2.1.0
+Release Date: August 24, 2009
+
+Copyright (c) 2009 Ronnie Garcia, Travis Nickels
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+*/
+.uploadifyQueueItem {
+ font: 11px Verdana, Geneva, sans-serif;
+ border: 2px solid #E5E5E5;
+ background-color: #F5F5F5;
+ margin-top: 5px;
+ padding: 10px;
+ width: 350px;
+}
+.uploadifyError {
+ border: 2px solid #FBCBBC !important;
+ background-color: #FDE5DD !important;
+}
+.uploadifyQueueItem .cancel {
+ float: right;
+}
+.uploadifyProgress {
+ background-color: #FFFFFF;
+ border-top: 1px solid #808080;
+ border-left: 1px solid #808080;
+ border-right: 1px solid #C5C5C5;
+ border-bottom: 1px solid #C5C5C5;
+ margin-top: 10px;
+ width: 100%;
+}
+.uploadifyProgressBar {
+ background-color: #0099FF;
+ width: 1px;
+ height: 3px;
}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.css b/apps/filebrowser/media/filebrowser/uploadify/uploadify.css
index 0cf8c0ea..754de060 100644
--- a/apps/filebrowser/media/filebrowser/uploadify/uploadify.css
+++ b/apps/filebrowser/media/filebrowser/uploadify/uploadify.css
@@ -1,53 +1,53 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-.uploadifyQueueItem {
- font: 11px Verdana, Geneva, sans-serif;
- border: 2px solid #E5E5E5;
- background-color: #F5F5F5;
- margin-top: 5px;
- padding: 10px;
- width: 350px;
-}
-.uploadifyError {
- border: 2px solid #FBCBBC !important;
- background-color: #FDE5DD !important;
-}
-.uploadifyQueueItem .cancel {
- float: right;
-}
-.uploadifyProgress {
- background-color: #FFFFFF;
- border-top: 1px solid #808080;
- border-left: 1px solid #808080;
- border-right: 1px solid #C5C5C5;
- border-bottom: 1px solid #C5C5C5;
- margin-top: 10px;
- width: 100%;
-}
-.uploadifyProgressBar {
- background-color: #0099FF;
- width: 1px;
- height: 3px;
+/*
+Uploadify v2.1.0
+Release Date: August 24, 2009
+
+Copyright (c) 2009 Ronnie Garcia, Travis Nickels
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+*/
+.uploadifyQueueItem {
+ font: 11px Verdana, Geneva, sans-serif;
+ border: 2px solid #E5E5E5;
+ background-color: #F5F5F5;
+ margin-top: 5px;
+ padding: 10px;
+ width: 350px;
+}
+.uploadifyError {
+ border: 2px solid #FBCBBC !important;
+ background-color: #FDE5DD !important;
+}
+.uploadifyQueueItem .cancel {
+ float: right;
+}
+.uploadifyProgress {
+ background-color: #FFFFFF;
+ border-top: 1px solid #808080;
+ border-left: 1px solid #808080;
+ border-right: 1px solid #C5C5C5;
+ border-bottom: 1px solid #C5C5C5;
+ margin-top: 10px;
+ width: 100%;
+}
+.uploadifyProgressBar {
+ background-color: #0099FF;
+ width: 1px;
+ height: 3px;
}
\ No newline at end of file
diff --git a/apps/toolbar/__init__.py b/apps/toolbar/__init__.py
index e69de29b..c53f0e73 100644
--- a/apps/toolbar/__init__.py
+++ b/apps/toolbar/__init__.py
@@ -0,0 +1 @@
+ # pragma: no cover
diff --git a/apps/toolbar/admin.py b/apps/toolbar/admin.py
index 6f69fb94..283ab782 100644
--- a/apps/toolbar/admin.py
+++ b/apps/toolbar/admin.py
@@ -22,7 +22,7 @@ class ButtonAdmin(admin.ModelAdmin):
form = ButtonAdminForm
list_display = ('slug', 'label', 'tooltip', 'accesskey')
list_display_links = ('slug',)
- list_editable = ('label', 'tooltip',)
+ list_editable = ('label', 'tooltip', 'accesskey')
prepopulated_fields = {'slug': ('label',)}
admin.site.register(models.Button, ButtonAdmin)
diff --git a/apps/toolbar/fixtures/initial_data.yaml b/apps/toolbar/fixtures/initial_data.yaml
index 723732d2..c7b5af60 100644
--- a/apps/toolbar/fixtures/initial_data.yaml
+++ b/apps/toolbar/fixtures/initial_data.yaml
@@ -38,8 +38,8 @@
model: toolbar.buttongroup
pk: 17
- fields:
- group: [14, 12]
accesskey: a
+ group: [14, 12]
label: akapit
link: ''
params: '{"tag": "akap"}'
@@ -49,8 +49,8 @@
model: toolbar.button
pk: 39
- fields:
- group: [14]
accesskey: ''
+ group: [14]
label: akapit cd.
link: ''
params: '{"tag": "akap_cd"}'
@@ -60,8 +60,8 @@
model: toolbar.button
pk: 40
- fields:
- group: [14]
accesskey: d
+ group: [14]
label: akapit dialogowy
link: ''
params: '{"tag": "akap_dialog"}'
@@ -71,8 +71,8 @@
model: toolbar.button
pk: 41
- fields:
- group: [1]
accesskey: ''
+ group: [1]
label: akt
link: ''
params: '{"tag": "akt"}'
@@ -82,8 +82,8 @@
model: toolbar.button
pk: 14
- fields:
- group: [13]
accesskey: ''
+ group: [13]
label: autor
link: ''
params: '{"tag": "autor_utworu"}'
@@ -93,24 +93,25 @@
model: toolbar.button
pk: 32
- fields:
- group: [2]
accesskey: ''
+ group: [2]
label: Podstawowa
link: ''
params: '[["fulltextregexp", {"exprs": [["\ufeff", ""], ["$[\\s]*\\d+[\\s]*^",
- ""], ["-\\s*^", ""], ["\\,\\.\\.|\\.\\,\\.|\\.\\.\\,", "..."]]}], ["lineregexp",
- {"exprs": [["^\\s+|\\s+$", ""], ["\\s+", " "], ["(,,)\\s+|\\s+(\")", "$1"],
- ["(\\d)[\u2014-](\\d)", "$1--$2"], ["[\u2014]", "---"], ["<(/?)P([aert])",
- "<$1p$2"], ["([^\\.])(\\s*)