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
$ bin/test -s plone.app.versioningbehavior | |
Running plone.app.testing.bbb.PloneTestCase:Functional tests: | |
Set up plone.testing.zca.LayerCleanup in 0.000 seconds. | |
Set up plone.testing.z2.Startup in 0.124 seconds. | |
Set up plone.app.testing.layers.PloneFixture in 5.234 seconds. | |
Set up plone.app.testing.bbb.PloneTestCaseFixture Traceback (most recent call last): | |
File "/home/timo/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 400, in run_layer | |
setup_layer(options, layer, setup_layers) | |
File "/home/timo/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer | |
setup_layer(options, base, setup_layers) |
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
$ bin/test -s plone.app.versioningbehavior -D | |
Running plone.app.testing.bbb.PloneTestCase:Functional tests: | |
Set up plone.testing.zca.LayerCleanup in 0.000 seconds. | |
Set up plone.testing.z2.Startup in 0.121 seconds. | |
Set up plone.app.testing.layers.PloneFixture in 5.133 seconds. | |
Set up plone.app.testing.bbb.PloneTestCaseFixture LoadLocaleError: The desired locale is not available. | |
Path: /home/timo/.buildout/eggs/zope.i18n-3.7.4-py2.7.egg/zope/i18n/locales/data/.xml | |
*** ImportError: No module named PdbSublimeTextSupport | |
*** NameError: name 'preloop' is not defined |
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
# -*- coding: utf-8 -*- | |
import os | |
import re | |
from lxml import etree | |
from Products.PortalTransforms.interfaces import ITransform | |
from zope.interface import implements | |
class HtmlToXXXComment: | |
implements(ITransform) |
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
Scenario: As a manager I can add a new field to the user form | |
Given a logged-in manager | |
When I add a new text-line field 'office_name' to the member fields | |
Then a field 'office_name' appears in the user profile form | |
Manager can edit the user schema | |
Given I'm logged in as a 'Manager' | |
then I go to Member fields editor | |
and I add a new Text line (String) field 'office_name' | |
and I do not see the 'office_name' field in user form |
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
digraph dependencies {"plone.app.versioningbehavior";"typeinfo" -> "toolset"; "portal-transforms-various" -> "componentregistry"; "atcttool" -> "catalog"; "atcttool" -> "componentregistry"; "atcttool" -> "toolset"; "actions" -> "componentregistry"; "skins" -> "componentregistry"; "import-intid-util" -> "toolset"; "factorytool" -> "componentregistry"; "factorytool" -> "typeinfo"; "factorytool" -> "toolset"; "placeful_workflow" -> "typeinfo"; "placeful_workflow" -> "workflow"; "componentregistry" -> "toolset"; "controlpanel" -> "actions"; "controlpanel" -> "componentregistry"; "placeful_marker" -> "workflow"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "plone.app.registry" -> "componentregistry"; "plone.app.registry" -> "toolset"; "mimetypes-registry-various" -> "componentregistry"; "referenceablebehavior-various" -> "toolset"; "reference_catalog" -> "toolset"; "viewlets" -> "com |
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 test_FilenameToRefId(): | |
tm = Transmogrifier(object()) | |
tm._raw = [] | |
tm._data = {} | |
previous = iter([{'filename': '1_iskandarsyah2014.pdf'}]) | |
transform = FilenameToRefId(tm, 'test', {}, previous) | |
result = transform.__iter__().next() | |
assert 'ref_id' in result | |
assert 'iskandarsyah2014' == result.get('ref_id') |
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
Search docs for plone.restapi: | |
http://plonerestapi.readthedocs.io/en/latest/searching.html | |
API design discussion: | |
https://github.com/plone/plone.restapi/issues/45 | |
Query |
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
d |
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
Create virtual Python 3 environment: | |
``` | |
python3 -m venv . | |
``` | |
Create a requirements.txt file: | |
``` | |
# Keep this file in sync with: https://github.com/kitconcept/buildout/edit/master/requirements.txt |
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
# System info | |
* MacBook pro M1 13 inch 2020, 16GB RAM, 512GB HD | |
## Python 3.7 via rosetta 2 | |
Installed via rosetta2 terminal: | |
``` | |
brew install [email protected] |