Skip to content

Instantly share code, notes, and snippets.

View ericof's full-sized avatar
🌎

Érico Andrei ericof

🌎
View GitHub Profile
@ericof
ericof / test_folder_constrains.robot
Created May 16, 2013 13:09
Robotframework test for the content type constrains form feature of Plone
*** Settings ***
Variables plone/app/testing/interfaces.py
Variables variables.py
Library Selenium2Library timeout=${SELENIUM_TIMEOUT} implicit_wait=${SELENIUM_IMPLICIT_WAIT}
Resource keywords.txt
Suite Setup Suite Setup
@ericof
ericof / convert.py
Created December 12, 2012 19:39
Plone's in-place conversion of File (ATBlob) to Image (ATBlob)
# -*- coding:utf-8 -*-
from plone.app.blob.interfaces import IATBlobFile
from plone.app.blob.migrations import ATFileToBlobMigrator
from plone.app.blob.migrations import migrate
from Products.contentmigration.walker import CustomQueryWalker
from Testing.makerequest import makerequest
from zope.component.hooks import setSite
from zope.interface import noLongerProvides
import transaction