Changeset 3193 in products


Ignore:
Timestamp:
Apr 28, 2011 3:08:35 PM (13 years ago)
Author:
mylan
Message:

Updated comments of browser/views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ploneorg.kudobounty/trunk/ploneorg/kudobounty/browser/views.py

    r3191 r3193  
    1818                                    CollectionMultiViewBaseRenderer) 
    1919 
    20  
    2120class BountyCollectionRenderer(CollectionMultiViewBaseRenderer): 
    2221    __name__ = 'Bounty Collection View' 
     
    2524    @property 
    2625    def available(self): 
     26        # Render only on the portal context and there are some results 
    2727        context_state = getMultiAdapter((self.context, self.request), 
    2828                                        name='plone_context_state') 
     
    3030 
    3131    def bounty_form_url(self): 
     32        # Prepare bounty-form url based on plone.registry record 
    3233        portal_url = getMultiAdapter((self.context, self.request), 
    3334                                      name='plone_portal_state').portal_url() 
     
    3839class BountyFormProcessorView(BrowserView): 
    3940    """ 
    40     test_view browser view 
     41    Browser page view for automation of 'Bounty Program Submission' 
     42    content object creation. 
    4143    """ 
    4244 
     
    5355    def __call__(self): 
    5456        """ 
    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 
    5661        """ 
    5762        try: 
     
    99104 
    100105    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) 
    101111        id = queryUtility(IURLNormalizer).normalize(title) 
    102112        container_ids = container.objectIds() 
Note: See TracChangeset for help on using the changeset viewer.