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
/* global instantsearch */ | |
/* global vars first */ | |
var remote_url = CONTEXT_URL + "/@@typesense-search-settings"; | |
var ts_settings = null; | |
/* Show initially all hits with all form control (true) | |
* or show only empty search field by default (false). | |
*/ | |
var SHOW_ALL_HITS_INITIALLY = true; |
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
from pydantic import BaseModel | |
from typeguard import typechecked | |
from class_registry import ClassRegistry | |
import abc | |
AccountDataConverter= ClassRegistry() | |
class AccountData(BaseModel): | |
first_name: str |
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
from zope.component.hooks import setSite | |
from collective.migrationhelpers import dexterity | |
from AccessControl.SecurityManagement import newSecurityManager | |
import transaction | |
acl_users = app.acl_users |
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
[watcher:zeo] | |
cmd = parts/zeo/bin/runzeo | |
[watcher:instance1] | |
cmd = bin/instance1 console | |
numprocesses = 1 | |
[watcher:instance2] | |
cmd = bin/instance2 console | |
numprocesses = 1 |
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 -*- | |
# This scripts imports a JSON export made with `collective.jsonify` into | |
# ArangoDB (database: ugent, collection: portal by default) | |
import os | |
import json | |
import time | |
import pprint | |
import traceback |
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
Traceback (innermost last): | |
Module ZPublisher.WSGIPublisher, line 128, in transaction_pubevents | |
Module ZPublisher.WSGIPublisher, line 268, in publish_module | |
Module ZPublisher.WSGIPublisher, line 210, in publish | |
Module ZPublisher.mapply, line 85, in mapply | |
Module ZPublisher.WSGIPublisher, line 57, in call_object | |
Module Products.CMFPlone.controlpanel.browser.usergroups_usersoverview, line 47, in __call__ | |
Module Products.CMFPlone.controlpanel.browser.usergroups_usersoverview, line 80, in doSearch | |
TypeError: 'NoneType' object is not iterable |
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
import fs | |
import fs.mirror | |
source = fs.open_fs('webdav://admin:XXXX@localhost:6080/exist/webdav/db/onkopedia') | |
target = fs.open_fs('webdav://admin:XXXX@localhost:8984/webdav/onkopedia') | |
fs.mirror.mirror(source, target, workers=4) |
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
xquery version "3.0"; | |
declare function local:trim($arg as xs:string?) as xs:string { | |
replace(replace($arg,'\s+$',''),'^\s+','') | |
} ; | |
let $doc := doc('/foo/de/ayapedia/addendums/ernaehrung_9861fc6a-ba68-11e8-a8a1-001c4210b7a0/current-20180920-111838.bak/xml/index.xml') | |
return | |
<item> | |
<uri>{base-uri($doc)}</uri> |
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
Unhandled exception occurred | |
Traceback (most recent call last): | |
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/traversal.py", line 393, in real_resolve | |
resource, tail = await self.traverse(request) | |
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/traversal.py", line 519, in traverse | |
return await traverse(request, root, path) | |
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/traversal.py", line 114, in traverse | |
return await traverse(request, context, path[1:]) | |
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/traversal.py", line 106, in traverse | |
request.container_settings = await annotations_container.async_get(REGISTRY_DATA_KEY) |
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
import zExceptions | |
from Products.CMFPlone.factory import addPloneSite | |
from Products.Five.browser import BrowserView | |
import plone.api | |
from plone.app.textfield.value import RichTextValue | |
from plone.app.theming.browser.controlpanel import ThemingControlpanel | |
import json | |
import lxml.html |
NewerOlder