Пример #1
0
def on_wsgi_application_created_event(application, event):
    """Additional UI setup on IWSGIApplicationCreatedEvent.
    """
    # !+ui.app.on_wsgi_application_created_event ALWAYS called prior to core.app.
    log.debug("UI ON_WSGI_APPLICATION_CREATED_EVENT: %s, %s", application, event) 
    
    # ensure register workflow views
    import bungeni.ui.workflow
    
    # ensure register version views
    import bungeni.ui.versions
    
    # load and apply-back UI descriptor customizations
    from bungeni.ui.descriptor import localization
    localization.forms_localization_init()
    
    import bungeni.feature.ui
    bungeni.feature.ui.setup_customization_ui()
    bungeni.feature.ui.apply_customization_ui()
Пример #2
0
def on_wsgi_application_created_event(application, event):
    """Additional UI setup on IWSGIApplicationCreatedEvent.
    """
    # !+ui.app.on_wsgi_application_created_event ALWAYS called prior to core.app.
    log.debug("UI ON_WSGI_APPLICATION_CREATED_EVENT: %s, %s", application,
              event)

    # ensure register workflow views
    import bungeni.ui.workflow

    # ensure register version views
    import bungeni.ui.versions

    # load and apply-back UI descriptor customizations
    from bungeni.ui.descriptor import localization
    localization.forms_localization_init()

    import bungeni.feature.ui
    bungeni.feature.ui.setup_customization_ui()
    bungeni.feature.ui.apply_customization_ui()
# load workflows
from bungeni.core.workflows import adapters

adapters.register_generic_workflow_adapters()

# load descriptors
import bungeni.ui.workflow

# ensure register version views
import bungeni.ui.versions

# load and apply-back UI descriptor customizations
from bungeni.ui.descriptor import localization

localization.forms_localization_init()
import bungeni.feature.ui

bungeni.feature.ui.setup_customization_ui()
bungeni.feature.ui.apply_customization_ui()

# setup serialization threads
worker_threads = serialization_notifications()

# keep the process alive by blocking the process
# until threads have finished (or have been interrupted)
try:
    for thread in worker_threads:
        while thread.isAlive():
            thread.join(5)
except (KeyboardInterrupt, SystemExit):
Пример #4
0
xmlconfig.string(zcml_slug)

# initalize the app 
app = BungeniApp()

# load workflows
from bungeni.core.workflows import adapters
adapters.register_generic_workflow_adapters()

# load descriptors
import bungeni.ui.workflow
# ensure register version views
import bungeni.ui.versions
# load and apply-back UI descriptor customizations
from bungeni.ui.descriptor import localization
localization.forms_localization_init()
import bungeni.feature.ui
bungeni.feature.ui.setup_customization_ui()
bungeni.feature.ui.apply_customization_ui()

# setup serialization threads
worker_threads = serialization_notifications()

# keep the process alive by blocking the process
# until threads have finished (or have been interrupted)
try:
    for thread in worker_threads:
      while thread.isAlive():
          thread.join(5)
except (KeyboardInterrupt, SystemExit):
    print "ctrl -c pressed ! will exit"