Changeset 3208 in products


Ignore:
Timestamp:
Apr 29, 2011 10:44:30 PM (13 years ago)
Author:
mylan
Message:

Breaked constraint to work bounty only for portal root

Location:
ploneorg.kudobounty/trunk/ploneorg/kudobounty
Files:
2 edited

Legend:

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

    r3201 r3208  
    2525    @property 
    2626    def available(self): 
    27         # Render only on the portal context and there are some results 
    28         context_state = getMultiAdapter((self.context, self.request), 
    29                                         name='plone_context_state') 
    30         return context_state.is_portal_root() and len(self.results()) 
     27        return len(self.results()) 
    3128 
    3229    def bounty_form_url(self): 
  • ploneorg.kudobounty/trunk/ploneorg/kudobounty/profiles/default/cssregistry.xml

    r3185 r3208  
    66    media="screen" rel="stylesheet" rendering="import" 
    77    cacheable="True" compression="safe" cookable="True" 
    8     enabled="1" expression="here/plone_context_state/is_portal_root"/> 
     8    enabled="1" expression=""/> 
    99 
    1010</object> 
Note: See TracChangeset for help on using the changeset viewer.