Changeset 1603 in main for trunk/openPLM/settings.py


Ignore:
Timestamp:
09/03/12 09:35:54 (9 years ago)
Author:
pcosquer
Message:

settings.py: updates CELERY_ROUTES if document3D is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/settings.py

    r1552 r1603  
    122122    'openPLM.apps.office', 
    123123    # document3D requires pythonOCC, uncomment this line to enable it 
    124     # also decomment the line CELERY_ROUTES! 
    125124    # 'openPLM.apps.document3D', 
    126125) 
     
    135134    "openPLM.plmapp.mail.do_send_histories_mail" : {"queue" : "mails"}, 
    136135    "openPLM.plmapp.mail.do_send_mail" : {"queue" : "mails"}, 
    137     #XYZ: uncomment this line if you enable document3D 
    138     # "openPLM.document3d.models.handle_step_file": {"queue": "step"}, 
    139     # "openPLM.document3d.decomposer.decomposer_all": {"queue": "step"}, 
    140  
    141136} 
     137if "openPLM.apps.document3D" in INSTALLED_APPS: 
     138    CELERY_ROUTES.update({ 
     139        "openPLM.apps.document3d.models.handle_step_file": {"queue": "step"}, 
     140        "openPLM.apps.document3d.models.decomposer_all": {"queue": "step"}, 
     141    }) 
    142142 
    143143#XYZ: EMAIL settings 
Note: See TracChangeset for help on using the changeset viewer.