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

All Samples(23)  |  Call(12)  |  Derive(1)  |  Import(10)

src/e/r/erp5-HEAD/product/ERP5Form/FSForm.py   erp5(Download)
 
from Products.ERP5Form import _dtmldir
from Products.ERP5Form.Form import ERP5Form
from Products.Formulator.XMLToForm import XMLToForm
 
class ERP5FSForm(FSObject, ERP5Form):
    def _createZODBClone(self):
        """Create a ZODB (editable) equivalent of this object."""
        obj = ERP5Form(self.getId(), self.title)
        obj.set_xml(self.get_xml())
        return obj

src/e/r/erp5-HEAD/product/ERP5/Document/PDFTypeInformation.py   erp5(Download)
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.ERP5Type import ERP5TypeInformation
from Products.ERP5Form.Form import ERP5Form
from Products.ERP5Form.PDFForm import PDFForm
from Products.ERP5Form.ScribusParser import ScribusParser
    def generateERP5Form():
      form_name = "view"
      form = ERP5Form(form_name, self.getId())
      parsed_scribus = self._getParsedScribusFile()
      pages = range(len(parsed_scribus))

src/e/r/erp5-HEAD/product/ERP5Form/Extensions/Folder_viewSearchDialog.py   erp5(Download)
 
from Products.ERP5Type.Message import translateString
from Products.ERP5Form.Form import ERP5Form
from Products.ERP5Form.ListBox import ListBoxListRenderer
 

src/e/r/erp5-HEAD/product/ERP5Form/tests/testProxify.py   erp5(Download)
from Products.Formulator.TALESField import TALESMethod
from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Form.Form import ERP5Form
from Products.ERP5Form.Form import field_value_cache
 
  def afterSetUp(self):
    # base field library
    self.container = Folder('container').__of__(self.portal)
    self.container._setObject('Base_view',
                               ERP5Form('Base_view', 'Base'))
    # address view
    self.container._setObject('Address_view',
                              ERP5Form('Address_view', 'Address'))
    address_view = self.address_view = self.container.Address_view
    address_view.manage_addField('my_region', 'Country', 'StringField')
    # person view
    self.container._setObject('Person_view',
                               ERP5Form('Person_view', 'Person'))
    person_view = self.person_view = self.container.Person_view
    person_view.manage_addField('my_name', 'Name', 'StringField')

src/e/r/erp5-HEAD/product/ERP5Form/tests/testFields.py   erp5(Download)
 
from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Form.Form import ERP5Form
from Products.ERP5Form.Form import field_value_cache
from Products.ERP5Form.Form import getFieldValue
  def afterSetUp(self):
    self.container = Folder('container').__of__(self.portal)
    self.container._setObject('Base_viewProxyFieldLibrary',
                               ERP5Form('Base_viewProxyFieldLibrary', 'Proxys'))
    self.container._setObject('Base_view',
                               ERP5Form('Base_view', 'View'))
  def afterSetUp(self):
    self.root = self.portal
    self.root.form = ERP5Form('form', 'Form')
    self.root.getProperty = lambda key, d=None: \
      dict(on_memory_field='123').get(key, d)

src/e/r/erp5-HEAD/product/ERP5Form/tests/testOOoChart.py   erp5(Download)
 
import unittest
from Products.ERP5Form.Form import ERP5Form
from DocumentTemplate import String
 
      container = portal.portal_skins.custom
      if self.form_id not in container.objectIds():
        container._setObject(self.form_id, ERP5Form(self.form_id, 'View'))
        form = getattr(container, self.form_id)
 

src/e/r/erp5-HEAD/product/ERP5Form/tests/testListBox.py   erp5(Download)
from StringIO import StringIO
from Products.ERP5Form.Selection import Selection
from Products.ERP5Form.Form import ERP5Form
from Products.Formulator.TALESField import TALESMethod
from Products.ERP5Form.ListBox import ListBoxHTMLRenderer
    # create a form, to store our proxy field inside
    portal._setObject('Test_view',
                      ERP5Form('Test_view', 'View'))
    portal.Test_view.manage_addField('listbox', 'listbox', 'ProxyField')
    proxy_field = portal.Test_view.listbox

src/e/r/erp5-HEAD/product/ERP5/tests/testRSS.py   erp5(Download)
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5Form.Form import ERP5Form
 
from xml.dom.minidom import parseString
 
    self.getPortal()._setObject('Test_view',
                      ERP5Form('Test_view', 'View'))
    portal.Test_view.manage_addField('listbox', 'listbox', 'ListBox')
    portal.Test_view.manage_addField('listbox_link',  'listbox_link',  'StringField')

src/e/r/erp5-HEAD/product/ERP5/tests/testICal.py   erp5(Download)
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5Form.Form import ERP5Form
 
 
 
    self.portal._setObject('Test_view',
                        ERP5Form('Test_view', 'View'))
    self.portal.Test_view.manage_addField('listbox', 'listbox', 'ListBox')
 

src/e/r/erp5-HEAD/product/ERP5Form/tests/testGUIwithSecurity.py   erp5(Download)
from StringIO import StringIO
from Products.ERP5Form.Selection import Selection
from Products.ERP5Form.Form import ERP5Form
from DateTime import DateTime