Changeset 28 for abstract.jwrotator

Show
Ignore:
Timestamp:
04/23/08 12:44:09 (4 years ago)
Author:
kalymero
Message:

added more configurable parameters

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • abstract.jwrotator/branches/2.5_compat/browser/browser.py

    r27 r28  
    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): 
     
    6969                             
    7070class IJWRSettings(Interface): 
    71     height = schema.TextLine(title=u'Height', 
    72                             required=False,) 
     71    height = schema.TextLine(title=u'Height', required=False,) 
    7372 
    74     width = schema.TextLine(title=u'Width', 
    75                               required=False,) 
     73    width = schema.TextLine(title=u'Width', required=False,)            
     74 
     75    shownavigation = schema.Choice(title=u"ShowNavigation", values = ['true','false'], default = 'true')      
     76        
     77    transition = schema.Choice(title=u"Transition", values = ['random','fade', 'bgfade', 'blocks', 'bubbles', 'circles', 'flash', 'fluids', 'lines' , 'slowfade'], default = 'random')      
     78     
     79    rotatetime = schema.Int(title=u"RotateTime", required = False)      
    7680                            
    7781class jwr_settings_form(formbase.PageForm):