This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getToolByName(obj, name, default=_marker): | |
""" Get the tool, 'toolname', by acquiring it. | |
o Application code should use this method, rather than simply | |
acquiring the tool by name, to ease forward migration (e.g., | |
to Zope3). | |
""" | |
tool_interface = _tool_interface_registry.get(name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from zope.annotation.interfaces import IAnnotations | |
from persistent.list import PersistentList | |
from Products.CMFCore.utils import getToolByName | |
FAVBY = "collective.favoriting.favoritedby" | |
def setupAnnotations(context): | |
""" | |
set up the annotations if they haven't been set up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var openimginoverlay = function(){ | |
$('img[src$="image_tile"],img[src$="image_thumb"],img[src$="image_mini"],img[src$="image_preview"]') | |
.each(function(){ | |
var $this = $(this); | |
if (!$this.parent().is('a')){ | |
$this.prepOverlay({ | |
subtype: 'image', | |
urlmatch: '/image_.+$', | |
urlreplace: '', | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global _:false */ | |
/** | |
* nom | |
* code | |
* type | |
* Site parent | |
* Service mainteneur | |
* long | |
* lat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
/*global _:false */ | |
/*global angular:false */ | |
/*global SWIF_RESOURCES_VERSION:false */ | |
/*jshint latedef:false */ | |
/* config.json file available throw settings.app: | |
"resources": { | |
"scripts": { |
OlderNewer