>>> profiles = app.quaive.profiles
>>> profiles["foo"].email = "[email protected]"
>>> from transaction import commit
>>> commit()
# coding=utf-8 | |
from plone.app.blocks import utils | |
from plone.subrequest import subrequest | |
from zExceptions import NotFound | |
from zope.site.hooks import getSite | |
def resolveResource(url): | |
"""Resolve the given URL to a unicode string. If the URL is an absolute | |
path, it will be made relative to the Plone site root. |
#!/bin/bash | |
# | |
BACKUPDEST="$1" | |
DOMAIN="$2" | |
MAXBACKUPS="$3" | |
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
exit 1 |
>>> profiles = app.quaive.profiles
>>> profiles["foo"].email = "[email protected]"
>>> from transaction import commit
>>> commit()
from lxml import html | |
import requests | |
template = "https://distrowatch.com/search.php?pkg=Python&relation=greaterequal&pkgver={}&distrorange=InLatest#pkgsearch" | |
def get_distros(min_python_version): | |
response = requests.get(template.format(min_python_version)) | |
distros = set() |