Changeset 29 for abstract.jwrotator

Show
Ignore:
Timestamp:
07/09/08 15:04:35 (4 years ago)
Author:
kalymero
Message:

add: added portlet

Location:
abstract.jwrotator/trunk
Files:
6 added
6 modified

Legend:

Unmodified
Added
Removed
  • abstract.jwrotator/trunk/abstract.jwrotator.egg-info/PKG-INFO

    r23 r29  
    11Metadata-Version: 1.0 
    22Name: abstract.jwrotator 
    3 Version: 0.3 
     3Version: 0.3dev-r23 
    44Summary: UNKNOWN 
    5 Home-page: http://www.abstract.it/svn 
     5Home-page: http://svn.plone.org/svn/plone/plone.example 
    66Author: Antonio Sagliocco (Abstract) 
    77Author-email: antonio.sagliocco@abstract.it 
     
    1919        Changelog for abstract.jwrotator 
    2020         
    21         (name of developer listed in brackets) 
    2221         
    23         abstract.jwrotator - 0.2 Unreleased 
     22        abstract.jwrotator - 0.3 
     23         
     24         
     25        abstract.jwrotator - 0.2 
     26        - Changed namespace to abstract.* 
     27        - Fix an issue on automatic "Plone Default" skin switch after install [Davi Lima] 
     28         
     29        plone.jwrotator - 0.1 Unreleased 
    2430         
    2531        - Initial package structure. 
  • abstract.jwrotator/trunk/abstract.jwrotator.egg-info/SOURCES.txt

    r14 r29  
    1313abstract.jwrotator.egg-info/top_level.txt 
    1414abstract/jwrotator/__init__.py 
     15abstract/jwrotator/configure.zcml 
    1516abstract/jwrotator/interfaces.py 
     17abstract/jwrotator/profiles.zcml 
    1618abstract/jwrotator/setuphandlers.py 
    1719abstract/jwrotator/tests.py 
     20abstract/jwrotator/version.txt 
    1821abstract/jwrotator/browser/__init__.py 
    1922abstract/jwrotator/browser/browser.py 
     23abstract/jwrotator/browser/configure.zcml 
     24abstract/jwrotator/profiles/default/import_steps.xml 
     25abstract/jwrotator/profiles/default/jsregistry.xml 
     26abstract/jwrotator/profiles/default/skins.xml 
     27abstract/jwrotator/skins/jwrotator_templates/imagerotator.swf 
     28abstract/jwrotator/skins/jwrotator_templates/jwr_view.pt 
     29abstract/jwrotator/skins/jwrotator_templates/swfobject.js 
     30docs/HISTORY.txt 
     31docs/INSTALL.txt 
     32docs/LICENSE.GPL 
     33docs/LICENSE.txt 
  • abstract.jwrotator/trunk/abstract/jwrotator/browser/browser.py

    r14 r29  
    66from zope.formlib import form           
    77from zope.app.annotation.interfaces import IAnnotations       
    8 from Products.ATContentTypes.interface.topic import IATTopic 
     8from Products.ATContentTypes.interface.topic import IATTopic          
    99 
    1010global flashvars                                    
    1111global default_values 
    1212 
    13 default_values = {'height': '200', 'width': '400'}  
     13default_values = {'height': '200', 'width': '400', 'shownavigation':'false', 'transition':'random' , 'rotatetime':5}  
    1414 
    1515class jwr_view(BrowserView): 
     
    1717    def __init__(self,context,request): 
    1818        self.context = context 
    19         self.request = request         
     19        self.request = request          
     20         
    2021    def test(self, condition, if_true, if_false): 
    2122           if condition: 
     
    2324           return if_false 
    2425                  
    25     def __getJS__(self):       
     26    def __getJS__(self):      
    2627        annotated_obj = IAnnotations(self.context)     
    2728        flashvars = {} 
     
    4243        js += 's1.write("container");\n</script>' 
    4344         
    44         return js 
    45      
     45        return js      
     46         
     47    
    4648class jwr_playlist_view(BrowserView):    
    4749     
     
    5456        playlist += "<trackList>\n"    
    5557        if IATTopic.providedBy(self.context): 
    56             images = self.context.queryCatalog() 
     58            images = self.context.queryCatalog()         
    5759        else:                                     
    5860            ct_tool = getToolByName(self.context, "portal_catalog") 
     
    6668        playlist += "</trackList>\n" 
    6769        playlist += "</playlist>\n"    
    68         return playlist 
     70        return playlist                                    
    6971                             
    7072class IJWRSettings(Interface): 
    71     height = schema.TextLine(title=u'Height', 
    72                             required=False,) 
     73    height = schema.TextLine(title=u'Height', required=False,) 
    7374 
    74     width = schema.TextLine(title=u'Width', 
    75                               required=False,) 
     75    width = schema.TextLine(title=u'Width', required=False,)            
     76 
     77    shownavigation = schema.Choice(title=u"ShowNavigation", values = ['true','false'], default = 'true')      
     78        
     79    transition = schema.Choice(title=u"Transition", values = ['random','fade', 'bgfade', 'blocks', 'bubbles', 'circles', 'flash', 'fluids', 'lines' , 'slowfade'], default = 'random')      
     80     
     81    rotatetime = schema.Int(title=u"RotateTime", required = False)      
    7682                            
    7783class jwr_settings_form(formbase.PageForm): 
  • abstract.jwrotator/trunk/abstract/jwrotator/configure.zcml

    r14 r29  
    88    <include file="profiles.zcml" />            
    99 
    10     <include package=".browser" />      
     10    <include package=".browser" />   
     11    <include package=".portlets" />     
    1112 
    1213    <class class="Products.ATContentTypes.content.folder.ATFolder"> 
  • abstract.jwrotator/trunk/docs/HISTORY.txt

    r23 r29  
    22 
    33 
    4 abstract.jwrotator - 0.3 
    5  
     4abstract.jwrotator - 0.3                    
     5    - added JWRotator Portlet [Steven Shade] 
     6    - added some other configurable features 
    67 
    78abstract.jwrotator - 0.2 
  • abstract.jwrotator/trunk/setup.py

    r23 r29  
    1818      author='Antonio Sagliocco (Abstract)', 
    1919      author_email='antonio.sagliocco@abstract.it', 
    20       url='http://svn.plone.org/svn/plone/plone.example', 
     20      url='http://www.abstract.it/svn', 
    2121      license='GPL', 
    2222      packages=find_packages(exclude=['ez_setup']),