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
Original: | |
>>> pprint.pprint(app.dynasupport['front-page'].__dict__) | |
{'_Access_contents_information_Permission': ('Anonymous',), | |
'_Modify_portal_content_Permission': ('Manager', | |
'Owner', | |
'Editor', | |
'Site Administrator'), | |
'_View_Permission': ('Anonymous',), | |
'__ac_local_roles__': {'admin': ['Owner']}, |
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
configure.zcml: | |
<subscriber for="plone.transformchain.interfaces.IBeforeSingleTransformEvent" handler=".subscriber.handle_before_single"/> | |
<subscriber for="plone.transformchain.interfaces.IAfterSingleTransformEvent" handler=".subscriber.handle_after_single"/> | |
<subscriber for="plone.transformchain.interfaces.IBeforeTransformsEvent" handler=".subscriber.handle_before_transforms"/> | |
<subscriber for="plone.transformchain.interfaces.IAfterTransformsEvent" handler=".subscriber.handle_after_transforms"/> | |
subscriber.py: | |
import time |
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
import os | |
import sys | |
import yaml | |
import pprint | |
import base64 | |
import requests | |
import plone.api | |
from requests.auth import HTTPBasicAuth | |
from Testing.makerequest import makerequest |
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
Module ZPublisher.Publish, line 59, in publish | |
Module ZPublisher.BaseRequest, line 629, in traverse | |
Module ZPublisher.BaseRequest, line 665, in exec_callables | |
Module Products.ResourceRegistries.tools.BaseRegistry, line 270, in deferredGetContent | |
Module Products.ResourceRegistries.tools.BaseRegistry, line 241, in __getitem__ | |
Module Products.ResourceRegistries.tools.BaseRegistry, line 633, in getResourceContent | |
Module collective.scss.stylesheet, line 12, in __call__ | |
Module scss.parser, line 318, in loads | |
Module scss.parser, line 302, in scan | |
Module pyparsing, line 1152, in parseString |
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
``` | |
2018-02-21 08:52:15 ERROR Zope.SiteErrorLog 1519199535.80.252769638019 http://dynamore.zopyx.de:5080/dynamore-se/en/resources/POST_application_json_ | |
Traceback (innermost last): | |
Module ZPublisher.Publish, line 146, in publish | |
Module Zope2.App.startup, line 303, in commit | |
Module transaction._manager, line 131, in commit | |
Module transaction._transaction, line 310, in commit | |
Module transaction._transaction, line 301, in commit | |
Module transaction._transaction, line 446, in _commitResources | |
Module transaction._transaction, line 423, in _commitResources |
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
<html> | |
<head> | |
<script type="text/javascript" src="./jquery-2.2.4.min.js" ></script> | |
<script type="text/javascript" src="https://mozilla.github.io/nunjucks/files/nunjucks.js"></script> | |
<style type="text/css"> | |
@page { | |
@bottom-center { | |
content: counter(page); | |
} | |
} |
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 VueFormGenerator = window.VueFormGenerator; | |
var vm = new Vue({ | |
el: "#app", | |
components: { | |
"vue-form-generator": VueFormGenerator.component | |
}, | |
methods: { | |
prettyJSON: function(json) { |
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
Vue.component('media', { | |
props: ['url', 'mediatype'], | |
template:'\ | |
<video class="video-tile" width="320" height="240" controls> \ | |
<source v-if="mediatype==\'youtube\'" :src="url" type="video/youtube"> \ | |
<source v-if="mediatype==\'vimeo\'" :src="url" type="video/vimeo"> \ | |
</video> ', | |
data: function() { | |
return { | |
url: this.url |
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
<table id="all-versions"> | |
<thead> | |
<tr> | |
<th class="version" i18n:translate="">Version</th> | |
<th class="date" i18n:translate="">Date</th> | |
<th class="files" i18n:translate="">Files</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr tal:repeat="d python: reversed(view.all_versions())"> |
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
"use strict"; | |
Vue.component('files', { | |
props: ['version'], | |
template:'<div> \ | |
<button @click="update_files">Files</button> \ | |
<table class="listing" v-if="result">\ | |
<tr v-for="d in result.files">\ | |
<td>{{d.name}} </td> \ | |
<td>{{d.info.size | filesize}} </td> \ |