Changeset 3193 in products
- Timestamp:
- Apr 28, 2011 3:08:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ploneorg.kudobounty/trunk/ploneorg/kudobounty/browser/views.py
r3191 r3193 18 18 CollectionMultiViewBaseRenderer) 19 19 20 21 20 class BountyCollectionRenderer(CollectionMultiViewBaseRenderer): 22 21 __name__ = 'Bounty Collection View' … … 25 24 @property 26 25 def available(self): 26 # Render only on the portal context and there are some results 27 27 context_state = getMultiAdapter((self.context, self.request), 28 28 name='plone_context_state') … … 30 30 31 31 def bounty_form_url(self): 32 # Prepare bounty-form url based on plone.registry record 32 33 portal_url = getMultiAdapter((self.context, self.request), 33 34 name='plone_portal_state').portal_url() … … 38 39 class BountyFormProcessorView(BrowserView): 39 40 """ 40 test_view browser view 41 Browser page view for automation of 'Bounty Program Submission' 42 content object creation. 41 43 """ 42 44 … … 53 55 def __call__(self): 54 56 """ 55 test method 57 Perform following steps: 58 * Fill it with data from the PFG form, 59 * Set effective and expiration date to nearest month 60 * Change the workflow state into pending state 56 61 """ 57 62 try: … … 99 104 100 105 def getUniqueId(self, container, title): 106 # NOTE: 107 # Mixed and little refactored functions of 108 # Products.Archetypes.BaseObject.BaseObject class: 109 # * _findUniqueId (check uniqueness of id in the container) 110 # * generateNewId (used url noralizer utility) 101 111 id = queryUtility(IURLNormalizer).normalize(title) 102 112 container_ids = container.objectIds()
Note: See TracChangeset
for help on using the changeset viewer.