-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make thumb size in folder contents listing adjustable/supressable #106
Conversation
d286787
to
088d083
Compare
f586f8e
to
0d6f73f
Compare
0d6f73f
to
7269285
Compare
ad3a0f0
to
75d8703
Compare
else: | ||
item[key] = val | ||
if key == 'getMimeIcon': | ||
item[key] = None | ||
if vocab_item.portal_type =='File': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like it is bound to type File only.
item[key] = None | ||
if vocab_item.portal_type =='File': | ||
#get mime type icon url from mimetype registry' | ||
portal_url = api.portal.get().absolute_url() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use plone.api.portal.get_navigation_root
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No plone.api should be used actually...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok removed api and use naroot
portal_url = api.portal.get().absolute_url() | ||
mtt = api.portal.get_tool( | ||
name='mimetypes_registry') | ||
if vocab_item.getObject().file.contentType: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we really need the mimetype as catalog metadata.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats why i proposed plone/Products.CMFPlone#1995. I suggest to merge 1995 first. (upgrade changes are interdependent)
@@ -168,6 +170,7 @@ def ignored_columns(self): | |||
'effective', | |||
'expires', | |||
'getIcon', | |||
'getMimeIcon', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would you mind aligning this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed( (tabs ...)
item[key] = os.path.join( | ||
portal_url, | ||
guess_icon_path(ctype[0])) | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no bare exceptions please
(uses site control panel settings: thumb_size_tables ...) clean up deprecated icon related code replace paperclip icon with mime type icons plone/Products.CMFPlone#1734
(uses site control panel settings: thumb_size_tables ...)
plone/Products.CMFPlone#1734