This file contains 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
"""Per instance behaviors for Plone's Dexterity. | |
<adapter | |
for=".interfaces.IBasetype" | |
factory=".instancebehaviors.DexterityInstanceBehaviorAssignable" /> | |
Also see: | |
http://opkode.net/media/blog/plone-and-dexterity-enable-behaviors-per-content-type-instance | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
[buildout] | |
parts = | |
instance | |
zopepy | |
test | |
packages | |
extends = | |
https://raw.github.com/plone/buildout.coredev/5.0/sources.cfg | |
https://raw.github.com/plone/buildout.coredev/5.0/checkouts.cfg |
This file contains 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 attr_migrator(old, new, old_name, new_name): | |
field = old.getField(old_name) | |
if not field: | |
return | |
val = field.get(old) | |
val_str = str(val) | |
if old_name == 'teacher': | |
if not isinstance(val, list): | |
val = [] | |
teachers = [] |
This file contains 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
actionbar.babble | |
actionbar.panel | |
alm.solrindex | |
anz.casclient | |
archetypes.clippingimage | |
archetypes.datetimewidget | |
archetypes.linguakeywordwidget | |
archetypes.pfgextender | |
archetypes.testcase | |
archetypes.uploadreferencewidget |
This file contains 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
[buildout] | |
parts = instance | |
extends = http://dist.plone.org/release/4-latest/versions.cfg | |
find-links = http://dist.repoze.org/ | |
versions = versions | |
[instance] | |
recipe = plone.recipe.zope2instance | |
eggs = | |
Plone |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am thet on github. | |
* I am thet (https://keybase.io/thet) on keybase. | |
* I have a public key whose fingerprint is 8667 B704 EBB4 8E94 447F 5EF6 5B89 8D31 0C43 8007 | |
To claim this, I am signing this object: |
This file contains 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
from Products.Archetypes.Field import * | |
from Products.Archetypes.Storage import * | |
from Products.Archetypes.Widget import * | |
from Products.Archetypes.fieldproperty import ATDateTimeFieldProperty | |
from Products.Archetypes.fieldproperty import ATFieldProperty | |
from Products.Archetypes.athistoryaware import ATHistoryAwareMixin | |
from Products.Archetypes.fieldproperty import ATReferenceFieldProperty | |
from Products.Archetypes.annotations import AT_ANN_STORAGE | |
from Products.Archetypes.annotations import AT_FIELD_MD | |
from Products.Archetypes.ClassGen import AT_GENERATE_METHOD |
This file contains 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 -*- | |
from Products.CMFCore.utils import getToolByName | |
from plone.app.textfield.value import RichTextValue | |
from zope.component.hooks import getSite | |
import logging | |
log = logging.getLogger(__name__) | |
This file contains 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
"""Set all repositories of a given GitHub organization name for a given user | |
to watching. | |
""" | |
import argparse | |
import json | |
import requests | |
def get_repos(url, repo_list=[], auth=None): |
OlderNewer