Changeset 3636 in products


Ignore:
Timestamp:
Apr 2, 2013 8:19:59 AM (7 years ago)
Author:
kroman0
Message:

Added field to show form text

Location:
quintagroup.portlet.pfg/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.portlet.pfg/trunk/docs/HISTORY.txt

    r2763 r3636  
    22========= 
    33 
    4 1.0 (xxxx-xx-xx) 
     41.1 (2013-04-02) 
     5---------------- 
     6 
     7* Added field to show form text 
     8  [kroman0] 
     9 
     101.0 (2013-03-06) 
    511---------------- 
    612 
  • quintagroup.portlet.pfg/trunk/quintagroup/portlet/pfg/pfg.pt

    r2910 r3636  
    11<dl class="portlet portletPFG" 
     2    tal:define="show_text view/data/show_text; 
     3                show_text python:show_text and request.form.update({'show_text':1});" 
    24    tal:condition="view/available"> 
    35  <dt class="portletHeader"> 
  • quintagroup.portlet.pfg/trunk/quintagroup/portlet/pfg/pfg.py

    r3635 r3636  
    2727            default_query='path:')) 
    2828 
     29    show_text = schema.Bool( 
     30        title=_(u"Show form text"), 
     31        description=_(u"If selected, the form prologue and epilogue will " 
     32                      u"shown in portlet."), 
     33        default=False, 
     34        required=False) 
     35 
    2936 
    3037class Assignment(base.Assignment): 
    3138    implements(IPFGPortlet) 
    3239 
    33     def __init__(self, target_form=''): 
     40    show_text = False 
     41 
     42    def __init__(self, target_form='', show_text=False): 
    3443        self.target_form = target_form 
     44        self.show_text = show_text 
    3545 
    3646    @property 
     
    8696 
    8797    def create(self, data): 
    88         return Assignment(target_form=data.get('target_form', '')) 
     98        return Assignment(target_form=data.get('target_form', ''), 
     99                          show_text=data.get('show_text', False)) 
    89100 
    90101 
  • quintagroup.portlet.pfg/trunk/setup.py

    r3635 r3636  
    22import os 
    33 
    4 version = '1.0' 
     4version = '1.1' 
    55 
    66setup(name='quintagroup.portlet.pfg', 
Note: See TracChangeset for help on using the changeset viewer.