Ignore:
Timestamp:
13 Dec 2014, 17:21:27 (10 years ago)
Author:
Henrik Bettermann
Message:

Add DocumentTriggerTransitionFormPage?.

Do not add document without editing document title.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py

    r12214 r12215  
    811811    pnav = 4
    812812
     813    form_fields = grok.AutoFields(ICustomerDocument)
     814
    813815    @property
    814816    def selectable_doctypes(self):
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/documentaddform.pt

    r12090 r12215  
    1818      </tr>
    1919    </tbody>
     20    <tal:widgets content="structure provider:widgets" />
    2021  </table>
    2122  <div tal:condition="view/availableActions">
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12214 r12215  
    828828        self.browser.getControl("Add document").click()
    829829        self.browser.getControl(name="doctype").value = ['CustomerPDFDocument']
     830        self.browser.getControl(name="form.title").value = 'My PDF Document'
    830831        self.browser.getControl("Add document").click()
    831832        self.assertTrue('PDF Document added.' in self.browser.contents)
     
    899900        self.browser.getControl("Add document").click()
    900901        self.browser.getControl(name="doctype").value = ['CustomerSampleDocument']
     902        self.browser.getControl(name="form.title").value = 'My Sample Document'
    901903        self.browser.getControl("Add document").click()
    902904        self.assertTrue('Sample Document added.' in self.browser.contents)
     
    10371039        self.browser.getControl("Add document").click()
    10381040        self.browser.getControl(name="doctype").value = ['CustomerPDFDocument']
     1041        self.browser.getControl(name="form.title").value = 'My PDF Document'
    10391042        self.browser.getControl("Add document").click()
    10401043        self.browser.open(self.documents_path + '/d102/manage')
Note: See TracChangeset for help on using the changeset viewer.