View bundle.js
import 'plone-logged-in';
View default.nix
{ pkgs ? import <nixpkgs> {}
, pythonPackages ? pkgs.python36Packages
}:
with pkgs;
let self = rec {
# patches
View VisionLibrary.py
from robot.libraries.BuiltIn import BuiltIn
import cv2
import shutil
import tempfile
class TemporaryDirectory(object):
def __enter__(self):
self.name = tempfile.mkdtemp()
View generators.nix
{}:
with builtins;
rec {
toZConfigValue = value:
if (isString value) then value else
if (isInt value) then toString value else
if (isBool value) && value then "on" else
View fragment.pt
<tal:block define="value nocall:view/data/html|nothing;
output_relative_to nocall:value/@@output_relative_to|nothing"
condition="output_relative_to"
content="structure python:output_relative_to(context)" />
View default.nix
#!/usr/bin/env nix-shell
{ rev ? "beb1f1ea91ef15d5f1b272108b0cf964e47665f2"
, sha256 ? "02n73jmc0vbb2dq5af70zxms63jbgbnzc70fmw50mcq07fpwa3p9"
, pkgs ? import ((import <nixpkgs> {}).pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
inherit rev;
inherit sha256;
}) {}
, pythonPackages ? pkgs.python27Packages
View parse.py
import ast
tree = ast.parse(open('setup.py').read())
names = {}
def strings(tree):
ret = []
for node in ast.walk(tree):
if isinstance(node, ast.Name):
View registry.xml
<?xml version="1.0"?>
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="plone">
<records prefix="plone.app.mosaic.structure_tiles.card"
interface="plone.app.mosaic.interfaces.ITile">
<value key="default_value">&lt;div class="card-header"&gt;Header&lt;/div&gt;&lt;div class="card card-block"&gt;&lt;h3 class="card-title"&gt;TItle 1&lt;/h3&gt;&lt;p class="card-text"&gt;Content&lt;/p&gt;&lt;/div&gt;</value>
<value key="category">structure</value>
<value key="read_only">False</value>
<value key="name">card</value>
View registry.xml
<?xml version="1.0"?>
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="plone">
<record name="plone.custom_plugins" interface="Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema">
<value>
<element>template|++plone++static/components/tinymce-builded/js/tinymce/plugins/template/plugin</element>
</value>
</record>
View default.js
// collective.z3cform.widgets
import 'imports?jQuery=jquery!++resource++collective.z3cform.widgets/jquery.tasksplease';
// collective.z3cform.widgets replaces keyword / categorization widget also on Plone 5...
import 'imports?jQuery=jquery!++resource++collective.z3cform.widgets/jquery.tokeninput';
import keywordTokenInputActivate from 'imports?$=jquery,jQuery=jquery!exports?keywordTokenInputActivate!++resource++collective.z3cform.widgets/keywords';
window.keywordTokenInputActivate = keywordTokenInputActivate;
// collective.polls
import 'jquery.browser'; // jquery.browser is no more in jQuery >= 1.9