Changeset 1383 in products


Ignore:
Timestamp:
Nov 18, 2009 5:14:42 PM (10 years ago)
Author:
mylan
Message:

For plone-3 version use plone.app.vocabularies in mobile_control configlet

Location:
quintagroup.mobileextender/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.mobileextender/trunk/docs/HISTORY.txt

    r780 r1383  
    22========= 
    33 
    4 1.0.3 (unreleased) 
     41.1 (unreleased) 
    55------------------ 
    66 
    7 - Nothing changed yet. 
     7- For plone-3 version use plone.app.vocabularies 
     8  in mobile_control configlet 
     9  [mylan] 
    810 
    911 
  • quintagroup.mobileextender/trunk/quintagroup/mobileextender/browser/interfaces.py

    r754 r1383  
    44from Products.CMFCore.utils import getToolByName 
    55from quintagroup.mobileextender import mobileextenderMessageFactory as _ 
     6 
     7try: 
     8    from plone.app import vocabularies 
     9except: 
     10    PT_VOCABULARY = "quintagroup.mobileextender.ptypes" 
     11    WF_VOCABULARY = "quintagroup.mobileextender.wfstates" 
     12else: 
     13    PT_VOCABULARY = "plone.app.vocabularies.PortalTypes" 
     14    WF_VOCABULARY = "plone.app.vocabularies.WorkflowStates" 
     15     
     16 
    617 
    718class IMobileConfiglet(interface.Interface): 
     
    2233            "of object(s) to find. Leave blank to ignore this criterion."), 
    2334        default=[], 
    24         #source = "quintagroup.mobileextender.ptypes", 
    25         value_type = schema.Choice( title=u"ptypes", source="quintagroup.mobileextender.ptypes" ), 
     35        value_type = schema.Choice( title=u"ptypes", source=PT_VOCABULARY ), 
    2636        required=False, 
    2737    ) 
     
    3141            "of object(s) to find. Leave blank to ignore this criterion."), 
    3242        default=[], 
    33         value_type = schema.Choice( title=u"review_states", source="quintagroup.mobileextender.wfstates" ), 
     43        value_type = schema.Choice( title=u"review_states", source=WF_VOCABULARY ), 
    3444        required=False, 
    3545    ) 
  • quintagroup.mobileextender/trunk/setup.py

    r1128 r1383  
    22import os 
    33 
    4 version = '1.0.3' 
     4version = '1.1' 
    55 
    66setup(name='quintagroup.mobileextender', 
Note: See TracChangeset for help on using the changeset viewer.