How to use the wicked.atcontent function in wicked

To help you get started, we’ve selected a few wicked examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github socialplanning / opencore / opencore / bbb / module_alias.py View on Github external
def do_aliases():
    sys.modules['opencore.siteui'] = opencore.browser
    #sys.modules['opencore.nui'] = opencore.browser
    sys.modules['opencore.nui.project'] = opencore.project.browser
    sys.modules['opencore.nui.member'] = opencore.member.browser
    sys.modules['opencore.nui.member.transient_messages'] = opencore.bbb.transient_messages
    sys.modules['opencore.nui.member.interfaces'] = opencore.interfaces.bbb
    sys.modules['opencore.nui.project.interfaces'] = opencore.interfaces.bbb
    sys.modules['opencore.siteui.interfaces'] = opencore.interfaces.member

    # wicked BBB crap
    sys.modules['Products.wicked'] = wicked
    sys.modules['Products.wicked.lib'] = wicked
    sys.modules['Products.wicked.lib.cache'] = wicked.cache # for CacheStore obs
    sys.modules['Products.wicked.interfaces'] = wicked.interfaces
    sys.modules['Products.wicked.example'] = wicked.atcontent
    sys.modules['Products.wicked.example.wickeddoc'] = wicked.atcontent.wickeddoc

    # RichDocument -> SimpleAttachment
    sys.modules['Products.RichDocument.content.attachments'] = \
            Products.SimpleAttachment.content.file

wicked

wicked is a compact syntax for doing wiki-like content linking and creation in zope and plone

GPL-3.0
Latest version published 10 years ago

Package Health Score

33 / 100
Full package analysis