Skip to content

Commit

Permalink
[fc] Repository: plonetheme.barceloneta
Browse files Browse the repository at this point in the history
Branch: refs/heads/master
Date: 2015-08-03T13:57:49+02:00
Author: Steffen Lindner (Gomez) <mail@steffen-lindner.de>
Commit: plone/plonetheme.barceloneta@5d2a569

Hide search / ptools / breadcrumbs

Files changed:
M CHANGES.rst
M plonetheme/barceloneta/theme/less/print.plone.less
Repository: plonetheme.barceloneta
Branch: refs/heads/master
Date: 2015-08-03T14:09:25+02:00
Author: Eric BREHAULT (ebrehault) <ebrehault@gmail.com>
Commit: plone/plonetheme.barceloneta@f1f70d3

Merge pull request #34 from plone/print_css

Sure, it makes sense.

Files changed:
M CHANGES.rst
M plonetheme/barceloneta/theme/less/print.plone.less
  • Loading branch information
ebrehault committed Aug 3, 2015
1 parent 15b41af commit ba1247f
Showing 1 changed file with 80 additions and 114 deletions.
194 changes: 80 additions & 114 deletions last_commit.txt
Original file line number Diff line number Diff line change
@@ -1,138 +1,104 @@
Repository: plone.resourceeditor
Repository: plonetheme.barceloneta


Branch: refs/heads/master
Date: 2015-07-31T13:21:56-05:00
Author: Sam Schwartz (obct537) <obct537@gmail.com>
Commit: https://github.com/plone/plone.resourceeditor/commit/9a33a29ad73cc1dd0b5f8e32019e9142acde6eeb
Date: 2015-08-03T13:57:49+02:00
Author: Steffen Lindner (Gomez) <mail@steffen-lindner.de>
Commit: https://github.com/plone/plonetheme.barceloneta/commit/5d2a569956667081ddb7ce1a7b5f65aad798a00a

Added code to register additional non-standard mimetypes
Hide search / ptools / breadcrumbs

Files changed:
A plone/resourceeditor/mime.types
M plone/resourceeditor/__init__.py

diff --git a/plone/resourceeditor/__init__.py b/plone/resourceeditor/__init__.py
index e69de29..4161bf1 100644
--- a/plone/resourceeditor/__init__.py
+++ b/plone/resourceeditor/__init__.py
@@ -0,0 +1,19 @@
+import os.path
+import mimetypes
+
+# Borrowed from zope.contenttype.
+# This allows us to register mimetypes that
+# aren't included in python by default
+#
+# To add additional mimetypes, include a line in mime.types
+
M CHANGES.rst
M plonetheme/barceloneta/theme/less/print.plone.less

diff --git a/CHANGES.rst b/CHANGES.rst
index 8b9d911..5246de3 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,9 @@ Changelog
1.6.9 (unreleased)
------------------

+- Hide searchbox, personaltools, breadcrumbs in print.css
+ [gomez]
+
+def add_files(filenames):
+ if mimetypes.inited:
+ mimetypes.init(filenames)
+ else:
+ mimetypes.knownfiles.extend(filenames)
- Updated font-weight on portlet headers
[pigeonflight]

diff --git a/plonetheme/barceloneta/theme/less/print.plone.less b/plonetheme/barceloneta/theme/less/print.plone.less
index c192aec..51594df 100644
--- a/plonetheme/barceloneta/theme/less/print.plone.less
+++ b/plonetheme/barceloneta/theme/less/print.plone.less
@@ -98,4 +98,15 @@
}
}

+ #portal-searchbox {
+ display: None;
+ }
+
+ #portal-personaltools {
+ display: None;
+ }
+
+here = os.path.dirname(os.path.abspath(__file__))
+add_files([os.path.join(here, "mime.types")])
diff --git a/plone/resourceeditor/mime.types b/plone/resourceeditor/mime.types
new file mode 100644
index 0000000..be00835
--- /dev/null
+++ b/plone/resourceeditor/mime.types
@@ -0,0 +1 @@
+text/css css less
+ #portal-breadcrumbs {
+ display: None;
+ }
}
\ No newline at end of file


Repository: plone.resourceeditor
Repository: plonetheme.barceloneta


Branch: refs/heads/master
Date: 2015-07-31T13:40:49-05:00
Author: Sam Schwartz (obct537) <obct537@gmail.com>
Commit: https://github.com/plone/plone.resourceeditor/commit/94ff5affe4ac5524b0df17b9b3bcd5988e448bf1

Updating changelog

Files changed:
M CHANGES.txt

diff --git a/CHANGES.txt b/CHANGES.txt
index 6c07ee3..febc486 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,8 @@ Changelog
- Fixed issue with ascii encoding [obct537]
- now properly serves filesystem files to the thememapper
[obct537]
+- resourceeditor will now register non-standard mimetypes
+ in the python mimetype module [obct537]

2.0.0 (2015-03-21)
------------------
Date: 2015-08-03T14:09:25+02:00
Author: Eric BREHAULT (ebrehault) <ebrehault@gmail.com>
Commit: https://github.com/plone/plonetheme.barceloneta/commit/f1f70d34a3773594eb64e3ba6bffacbf5cd67082

Merge pull request #34 from plone/print_css

Repository: plone.resourceeditor


Branch: refs/heads/master
Date: 2015-07-31T14:54:16-05:00
Author: Nathan Van Gheem (vangheem) <vangheem@gmail.com>
Commit: https://github.com/plone/plone.resourceeditor/commit/53010709c0b5d5555b5f366ab01ae2698bef54f2

Merge pull request #8 from plone/mimetypes

Added code to register additional non-standard mimetypes
Sure, it makes sense.

Files changed:
A plone/resourceeditor/mime.types
M CHANGES.txt
M plone/resourceeditor/__init__.py

diff --git a/CHANGES.txt b/CHANGES.txt
index 6c07ee3..febc486 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,8 @@ Changelog
- Fixed issue with ascii encoding [obct537]
- now properly serves filesystem files to the thememapper
[obct537]
+- resourceeditor will now register non-standard mimetypes
+ in the python mimetype module [obct537]

2.0.0 (2015-03-21)
M CHANGES.rst
M plonetheme/barceloneta/theme/less/print.plone.less

diff --git a/CHANGES.rst b/CHANGES.rst
index 8b9d911..5246de3 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,9 @@ Changelog
1.6.9 (unreleased)
------------------
diff --git a/plone/resourceeditor/__init__.py b/plone/resourceeditor/__init__.py
index e69de29..4161bf1 100644
--- a/plone/resourceeditor/__init__.py
+++ b/plone/resourceeditor/__init__.py
@@ -0,0 +1,19 @@
+import os.path
+import mimetypes
+
+# Borrowed from zope.contenttype.
+# This allows us to register mimetypes that
+# aren't included in python by default
+#
+# To add additional mimetypes, include a line in mime.types
+

+- Hide searchbox, personaltools, breadcrumbs in print.css
+ [gomez]
+
+def add_files(filenames):
+ if mimetypes.inited:
+ mimetypes.init(filenames)
+ else:
+ mimetypes.knownfiles.extend(filenames)
- Updated font-weight on portlet headers
[pigeonflight]

diff --git a/plonetheme/barceloneta/theme/less/print.plone.less b/plonetheme/barceloneta/theme/less/print.plone.less
index c192aec..51594df 100644
--- a/plonetheme/barceloneta/theme/less/print.plone.less
+++ b/plonetheme/barceloneta/theme/less/print.plone.less
@@ -98,4 +98,15 @@
}
}

+ #portal-searchbox {
+ display: None;
+ }
+
+ #portal-personaltools {
+ display: None;
+ }
+
+here = os.path.dirname(os.path.abspath(__file__))
+add_files([os.path.join(here, "mime.types")])
diff --git a/plone/resourceeditor/mime.types b/plone/resourceeditor/mime.types
new file mode 100644
index 0000000..be00835
--- /dev/null
+++ b/plone/resourceeditor/mime.types
@@ -0,0 +1 @@
+text/css css less
+ #portal-breadcrumbs {
+ display: None;
+ }
}
\ No newline at end of file


0 comments on commit ba1247f

Please sign in to comment.