Changeset 3185 in products


Ignore:
Timestamp:
Apr 28, 2011 1:25:06 PM (13 years ago)
Author:
mylan
Message:

Switch from skins to browser resources

Location:
ploneorg.kudobounty/trunk/ploneorg/kudobounty
Files:
2 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • ploneorg.kudobounty/trunk/ploneorg/kudobounty/browser/configure.zcml

    r3183 r3185  
    1717       factory=".views.BountyCollectionRenderer"/> 
    1818 
     19  <browser:resource 
     20      name="ploneorg_bounty.css" 
     21      file="ploneorg_bounty.css" 
     22      /> 
     23 
     24  <browser:resource 
     25      name="ploneorg_bounty.js" 
     26      file="ploneorg_bounty.js" 
     27      /> 
    1928 
    2029</configure> 
  • ploneorg.kudobounty/trunk/ploneorg/kudobounty/browser/views.py

    r3182 r3185  
    5656            container = self.portal.restrictedTraverse(CONTAINER_ID) 
    5757        except: 
    58             logger.warn("Can't find bounty submission container " \ 
    59                "with '%s' path" % CONTAINER_ID) 
     58            msg = "Can't find bounty submission container" 
     59            logger.warn(msg + " with '%s' path" % CONTAINER_ID) 
     60            raise RuntimeError(msg) 
    6061        else: 
    6162            # Create Bounty Program Submission object 
  • ploneorg.kudobounty/trunk/ploneorg/kudobounty/configure.zcml

    r3182 r3185  
    11<configure 
    22    xmlns="http://namespaces.zope.org/zope" 
    3     xmlns:cmf="http://namespaces.zope.org/cmf" 
    43    xmlns:five="http://namespaces.zope.org/five" 
    54    xmlns:genericsetup="http://namespaces.zope.org/genericsetup" 
     
    1817  <include package=".content" /> 
    1918 
    20   <!-- Register FileSystem Directory views --> 
    21   <cmf:registerDirectory name="ploneorg_kudobounty"/> 
    22    
    2319  <!-- Register the installation GenericSetup extension profile --> 
    2420  <genericsetup:registerProfile 
  • ploneorg.kudobounty/trunk/ploneorg/kudobounty/profiles/default/cssregistry.xml

    r3179 r3185  
    33 
    44<stylesheet title="" 
    5     id="ploneorg_bounty.css" 
     5    id="++resource++ploneorg_bounty.css" 
    66    media="screen" rel="stylesheet" rendering="import" 
    77    cacheable="True" compression="safe" cookable="True" 
  • ploneorg.kudobounty/trunk/ploneorg/kudobounty/profiles/default/jsregistry.xml

    r3178 r3185  
    77             enabled="True" 
    88             expression="here/plone_context_state/is_portal_root" 
    9              id="ploneorg_bounty.js" 
     9             id="++resource++ploneorg_bounty.js" 
    1010             inline="True"/> 
    1111 
Note: See TracChangeset for help on using the changeset viewer.