Changeset 2259 for WAeUP_SRP/base/skins/waeup_default
- Timestamp:
- 19 Sep 2007, 15:23:58 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_default/import.py
r1774 r2259 5 5 return html renderer + psm 6 6 """ 7 try: 8 from Products.zdb import set_trace 9 except: 10 def set_trace(): 11 pass 7 12 import DateTime 8 13 from urllib import urlencode … … 11 16 12 17 validate = REQUEST.has_key("import") 13 18 enable = REQUEST.has_key("enable_bypass") 19 disable = REQUEST.has_key("disable_bypass") 20 #set_trace() 14 21 lt = context.portal_layouts 15 22 #pr = context.portal_registration … … 23 30 commit=False, 24 31 ) 25 if psm == 'invalid': 32 if enable: 33 context.portal_catalog.setBypassQueue(1) 34 psm = "QueueCatalog Bypass enabled" 35 #return REQUEST.RESPONSE.redirect("%s" % context.absolute_url()) 36 elif disable: 37 context.portal_catalog.setBypassQueue(0) 38 psm = "QueueCatalog Bypass disabled" 39 elif psm == 'invalid': 26 40 return context.import_form(rendered = res, 27 41 psm = "Please correct your input!", … … 34 48 ) 35 49 elif psm == 'valid': 36 pass 37 psm = context.waeup_tool.importData(ds.get('filename'), 50 psm = context.waeup_tool.importData(ds.get('filename'), 38 51 ds.get('name'), 39 52 ds.get('import_or_edit') -
WAeUP_SRP/base/skins/waeup_default/import_form.pt
r1783 r2259 21 21 tal:attributes="value button" 22 22 tal:condition="not:creation" /> 23 <span tal:define="bypass here/portal_catalog/getBypassQueue|nothing"> 24 <input type="submit" class="standalone" 25 name="enable_bypass" value="bypass QueueCatalog" 26 tal:condition="not:bypass" /> 27 <input type="submit" class="standalone" 28 name="disable_bypass" value="use QueueCatalog" 29 tal:condition="bypass" /> 30 </span> 23 31 </form> 24 32 </metal:block>
Note: See TracChangeset for help on using the changeset viewer.