Skip to content

Instantly share code, notes, and snippets.

View bloodbare's full-sized avatar

Ramon Navarro Bosch bloodbare

View GitHub Profile
rovello:buildout.coredev ramon$ ./bin/test -m 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.270 seconds.
Set up plone.app.testing.layers.PloneFixture in 10.338 seconds.
Set up plone.app.testing.bbb.PloneTestCaseFixture in 2.394 seconds.
Set up plone.app.testing.bbb.PloneTestCase:Functional in 0.000 seconds.
Running:
Ran 32 tests with 0 failures, 0 errors, 0 skipped in 11.341 seconds.
Set up plone.app.upgrade.v50.testing.RealUpgradeLayer /home/jenkins/.buildout/eggs/Products.CMFCore-2.2.8-py2.7.egg/Products/CMFCore/DirectoryView.py:493: UserWarning: DirectoryView referencebrowser refers to a non-existing path 'archetypes.referencebrowserwidget:skins/referencebrowser'
(self.id, reg_key), UserWarning)
/home/jenkins/.buildout/eggs/Products.CMFCore-2.2.8-py2.7.egg/Products/CMFCore/DirectoryView.py:493: UserWarning: DirectoryView LanguageTool refers to a non-existing path 'Products.PloneLanguageTool:skins/LanguageTool'
(self.id, reg_key), UserWarning)
/home/jenkins/.buildout/eggs/Products.CMFCore-2.2.8-py2.7.egg/Products/CMFCore/DirectoryView.py:493: UserWarning: DirectoryView cmf_legacy refers to a non-existing path 'Products.CMFPlone:skins/cmf_legacy'
(self.id, reg_key), UserWarning)
/home/jenkins/.buildout/eggs/Products.CMFCore-2.2.8-py2.7.egg/Products/CMFCore/DirectoryView.py:493: UserWarning: DirectoryView plone_kss refers to a non-existing path 'Products.CMFPlone:skins/plone_kss'
<table border="0" class="ordered-selection-field" id="form-widgets-available_languages">
<tbody><tr>
<td>
<select id="form-widgets-available_languages-from" name="form.widgets.available_languages.from" class="required list-field" multiple="multiple" size="5">
<option value="af">Afrikaans</option>
<option value="ak">Akan</option>
<option value="ig">Asụsụ Igbo</option>
<option value="ay">Aymara</option>
<option value="az">Azəri Türkçəsi</option>
<option value="id">Bahasa Indonesia</option>
(.env)iMac-de-Ramon:jenkins.plone.org ramon$ jenkins-jobs --conf jenkins.ini update jobs.yml
Traceback (most recent call last):
File "/Users/ramon/Development/jenkins.plone.org/.env/bin/jenkins-jobs", line 10, in <module>
sys.exit(main())
File "/Users/ramon/Development/jenkins.plone.org/src/jenkins-job-builder/jenkins_jobs/cmd.py", line 146, in main
execute(options, config)
File "/Users/ramon/Development/jenkins.plone.org/src/jenkins-job-builder/jenkins_jobs/cmd.py", line 219, in execute
plugins_list=plugins_info)
File "/Users/ramon/Development/jenkins.plone.org/src/jenkins-job-builder/jenkins_jobs/builder.py", line 735, in __init__
self.plugins_list = self.jenkins.get_plugins_info()
@bloodbare
bloodbare / adapter.ts
Last active May 31, 2016 16:48
TypeScript version of adaptation (ZTK)
// To run it needs node >= 5
// tsc --experimentalDecorators --target es6 test2.ts
// node test2.js
let registry = new Map<any, any>();
function implementing(typeInterface: any) {
return (target: any) => {
if (target.providesInterfaces === undefined) {
# -*- coding: utf-8 -*-
from plone.server.addons import Addon
from plone.server.registry import IAuthExtractionPlugins
from plone.server.registry import IAuthPloneUserPlugins
from plone.server.registry import ILayers
AUTH_EXTRACTION_PLUGIN = 'pserver.oauth.oauth.PloneJWTExtraction'
AUTH_PLONE_FACTORY_PLUGIN = 'pserver.oauth.oauth.OAuthPloneUserFactory'
POAUTH_LAYER = 'pserver.oauth.interfaces.IPOAuthLayer'
MainThread txn.140736376239040: new transaction
MainThread plone.server.traversal: Exception on writing execution
Traceback (most recent call last):
File "/Users/ramon/Development/pserver.demo/src/plone.server/src/plone.server/plone/server/traversal.py", line 184, in handler
await sync(request)(txn.commit)
File "/Users/ramon/buildout.python/parts/opt/lib/python3.5/asyncio/futures.py", line 358, in __iter__
yield self # This tells Task to wait for completion.
File "/Users/ramon/buildout.python/parts/opt/lib/python3.5/asyncio/tasks.py", line 290, in _wakeup
future.result()
File "/Users/ramon/buildout.python/parts/opt/lib/python3.5/asyncio/futures.py", line 274, in result
docker run -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=zodb -e POSTGRES_DB=zodb -p 5432:5432 postgres
git clone [email protected]:plone/plone.server.git
cd plone.server
python3.6 bootstrap.py
./bin/buildout -v buildout-newt.cfg
./bin/pserver -c config-newt.json
You can create your first Site on a newt DB :

Keybase proof

I hereby claim:

  • I am bloodbare on github.
  • I am bloodbare (https://keybase.io/bloodbare) on keybase.
  • I have a public key ASAV2qtWhjnOg-m2_nFw2AcEHH6Qq2e7e7wOkVB_bdZXrQo

To claim this, I am signing this object:

@bloodbare
bloodbare / object.py
Created January 25, 2018 00:06
Guillotina Objects Slots
import pickle
class A(object):
__slots__ = ('__foo', '__bar')
@property
def _p_bar(self):
return object.__getattribute__(self, '_A__bar')