Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/r/Products.AttachmentField-1.4.5/Products/AttachmentField/MSExcelAttachment.py   Products.AttachmentField(Download)
 
from Products.AttachmentField.global_symbols import MAX_ROWS_EXCEL
from Products.AttachmentField.global_symbols import MAX_COLS_EXCEL
 
class MSExcelAttachment(AttachmentHandler.AbstractHandler):
    is_working = True
    index_path = program
    index_arguments = r"-xc:0-%d -xr:0-%d"%(MAX_COLS_EXCEL, MAX_ROWS_EXCEL) + r" %s"
    index_encoding = 'utf8'
 
    preview_path = program
    preview_arguments = r"-nh -xc:0-%d -xr:0-%d"%(MAX_COLS_EXCEL, MAX_ROWS_EXCEL) + r" %s"