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
View configuration.nix
{ config, lib, pkgs, ... }:
with lib;
{
imports = [
# ISO image
<nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix>
# Hardware support similar to installer Live CD
<nixpkgs/nixos/modules/profiles/all-hardware.nix>
View LicenseSelector.elm
port module LicenseSelector exposing (..)
import Html exposing (Html, button, div, img, input, label, p, text)
import Html.App as Html
import Html.Attributes exposing (..)
import Html.Events exposing (onCheck)
import String
main =
View MANIFEST.in
include VERSION *.py *.rst *.nix
exclude .* Makefile test_example.py