Changeset 3328


Ignore:
Timestamp:
13 Mar 2008, 12:57:21 (17 years ago)
Author:
joachim
Message:

enable/disable bypass only if disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_upload/import_uploads.py

    r3327 r3328  
    3333
    3434messages = []
     35disable_bypass = False
     36
    3537for long_id in ids:
    3638    short_id = long_id.replace('.csv','')
     
    4345        context.portal_catalog.setBypassQueue(1)
    4446        context.waeup_tool.doCommit()
     47        disable_bypass = True
    4548
    4649    msg = context.waeup_tool.importData(short_id,
     
    5053    messages += msg,
    5154
    52 if context.portal_catalog.getBypassQueue():
     55if disable_bypass:
    5356    context.portal_catalog.setBypassQueue(0)
    5457    context.waeup_tool.doCommit()
Note: See TracChangeset for help on using the changeset viewer.