Changeset 2338


Ignore:
Timestamp:
Dec 14, 2009 2:07:52 PM (9 years ago)
Author:
kapilt
Message:

skin registration, file widget customization, refs ticket:4

Location:
ore.bigfile/trunk/ore/bigfile
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • ore.bigfile/trunk/ore/bigfile/__init__.py

    r2328 r2338  
    1  
    2 from ore.bigfile.config import package_name, permissions, package_globals 
    3 from Products.CMFCore import DirectoryView 
    4  
    5 DirectoryView.registerDirectory('skins', package_globals) 
     1from ore.bigfile.config import package_name, permissions 
    62 
    73def initialize( context ): 
  • ore.bigfile/trunk/ore/bigfile/configure.zcml

    r2330 r2338  
    22    xmlns="http://namespaces.zope.org/zope" 
    33    xmlns:genericsetup="http://namespaces.zope.org/genericsetup" 
     4    xmlns:cmf="http://namespaces.zope.org/cmf" 
    45    xmlns:five="http://namespaces.zope.org/five"> 
    56 
     7 
    68  <five:registerPackage package="." initialize=".initialize" /> 
     9  <cmf:registerDirectory name="bigfile" /> 
    710 
    811  <adapter for=".interfaces.IBigFile" 
  • ore.bigfile/trunk/ore/bigfile/profiles/default/skins.xml

    r2328 r2338  
    99   <object name="bigfile" 
    1010           meta_type="Filesystem Directory View" 
    11            directory="ore.bigfile/skins/bigfile"/> 
     11           directory="ore.bigfile:skins/bigfile"/> 
    1212  
    1313   <skin-path name="*"> 
  • ore.bigfile/trunk/ore/bigfile/widget.py

    r2330 r2338  
    88 
    99    _properties = FileWidget._properties.copy() 
     10    _properties['macro'] = 'bigfile_widget' 
    1011 
    1112    def process_form(self, instance, field, form, empty_marker=None, 
Note: See TracChangeset for help on using the changeset viewer.