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

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

src/e/r/erp5-HEAD/product/ERP5/Document/PDFTypeInformation.py   erp5(Download)
    def generateERP5Form():
      form_name = "view"
      form = ERP5Form(form_name, self.getId())
      parsed_scribus = self._getParsedScribusFile()
      pages = range(len(parsed_scribus))
      # building dict containing (property, value)
      values = {}
      values['title'] = self.getId()
      values['row_length'] = 4
      values['name'] = form_name
      values['unicode_mode'] = 0
      values['getBackgroundUrl'] = lambda page: \
        'portal_types/%s/renderFormImage?page=%s' % (self.getId(), page)
      values['getCSSUrl'] = lambda: 'portal_types/%s/renderFormCSS' % self.getId()
      # using the dict declared just above to set the attributes