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
import { injectScript } from '@module-federation/utilities'; | |
// example of dynamic remote import on server and client | |
const isServer = typeof window === 'undefined'; | |
//could also use | |
// getModule({ | |
// remoteContainer: { | |
// global: 'app2', | |
// url: 'http://localhost:3002/remoteEntry.js', | |
// }, | |
// modulePath: './sample' |
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
/* globals define */ | |
define(function(){ | |
'use strict'; | |
var REGISTERED = {}; | |
var register = function(name, config){ | |
REGISTERED[name] = config; | |
}; |
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.annotations import AT_ANN_STORAGE | |
from Products.Archetypes.annotations import AT_FIELD_MD | |
from Products.Archetypes.annotations import AT_MD_STORAGE | |
from Products.Archetypes.annotations import AT_REF | |
from Products.Archetypes.annotations import getAnnotation | |
from Products.Archetypes.ArchetypeTool import listTypes | |
from Products.Archetypes.ArchetypeTool import process_types | |
from Products.Archetypes.ArchetypeTool import registerClasses | |
from Products.Archetypes.ArchetypeTool import registerType |
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
import requests | |
import logging | |
import httplib | |
# Debug logging | |
httplib.HTTPConnection.debuglevel = 1 | |
logging.basicConfig() | |
logging.getLogger().setLevel(logging.DEBUG) | |
req_log = logging.getLogger('requests.packages.urllib3') | |
req_log.setLevel(logging.DEBUG) |