Skip to content

Instantly share code, notes, and snippets.

View zopyx's full-sized avatar

Andreas Jung zopyx

View GitHub Profile
{
"name": "drupal/drupal",
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"type": "project",
"license": "GPL-2.0+",
"require": {
"composer/installers": "^1.0.24",
"wikimedia/composer-merge-plugin": "~1.3",
"zopyx/smashdocs": "*"
},
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+
#################################################################################################
# $HOME/.buildout/eggs/plone.app.workflow-2.1.9-py2.7.egg/plone/app/workflow/browser/sharing.py
#################################################################################################
from plone.app.workflow.events import LocalrolesModifiedEvent
from plone.app.workflow import PloneMessageFactory as _
from Products.statusmessages.interfaces import IStatusMessage
from zope.event import notify
<script type="text/javascript">
$(document).ready( function () {
try {
order = DT_ORDER_BY;
} catch(e) {
order = [0, "desc"];
}
$('.dt-table').each(function() {
2017-01-04 13:15:13 ERROR Zope.SiteErrorLog 1483532113.350.552179133409 http://10.162.62.85:12080/error_log/manage_main
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 130, in _exec
Module Products.PageTemplates.PageTemplate, line 89, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
function do_search(query) {
$('#material-slot').html('');
var tree = $("#warengruppen-tree").fancytree("getTree");
var rex = new RegExp(query, "i");
var found = [];
var hits = tree.filterNodes(
function(node) {
var matches = rex.test(node.data.searchable_text);
if (matches) {
headers = {
'x-api-key': API_KEY,
'content-type': 'application/json',
'authorization': token
}
data = {"user": {
"email": "[email protected]",
"firstname": "Steven",
Tier 1:
100% - English (en)
93% - French (fr)
92% - Italian (it)
81% - German (de)
89% - Spanish (es)
98% - Dutch (nl)
72% - Chinese (China) (zh-cn)
<registry>
<records prefix="plone.resources/my.addon"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++resource++my.addon/foo1.js</value>
<value key="css">
<element>++resource++my.addon/foo/foo1.css</element>
<element>++resource++my.addon/foo/foo2.css</element>
</value>
<registry>
<records prefix="plone.resources/my.addon"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
value key="js">++resource++mockupjs/foo1.js</value>
<value key="css">
<element>++resource++my.addon/foo1.css</element>
<element>++resource++my.addon/foo2.css</element>
</value>
</records>