Changeset 1239 in products


Ignore:
Timestamp:
Aug 12, 2009 4:54:52 PM (15 years ago)
Author:
mylan
Message:

Moved conditional adding IPossibleWeblogEntry to Document objects on adding it in the weblog, based on content rules and workflow transition. Tests updated

Location:
quintagroup.quills.extras/trunk/quintagroup/quills/extras
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.quills.extras/trunk/quintagroup/quills/extras/tests/base.py

    r1225 r1239  
    77 
    88ZOPE_DEPS = [] 
     9 
     10try: 
     11    import quintagroup.plonecomments 
     12except ImportError: 
     13    QPC_PACKAGE = False 
     14    from Products import qPloneComments 
     15else: 
     16    QPC_PACKAGE = True 
     17 
    918PLONE_INSTALL = ['QuillsEnabled', 'AutocompleteWidget',  
    1019                 'quintagroup.plonecomments', 'quintagroup.quills.extras'] 
    1120PLONE_DEPS = ['QuillsEnabled', 'AutocompleteWidget'] 
     21 
     22if QPC_PACKAGE: 
     23    PLONE_INSTALL += ['quintagroup.plonecomments',] 
     24else: 
     25    PLONE_INSTALL += ['qPloneComments',] 
     26    PLONE_DEPS    += ['qPloneComments',] 
    1227 
    1328@onsetup 
     
    1934    # and its dependencies 
    2035    fiveconfigure.debug_mode = True 
    21     import quintagroup.plonecomments 
    2236    import quintagroup.quills.extras 
    23     zcml.load_config('configure.zcml', quintagroup.plonecomments) 
    24     zcml.load_config('overrides.zcml', quintagroup.plonecomments) 
    2537    zcml.load_config('configure.zcml', quintagroup.quills.extras) 
    2638    zcml.load_config('overrides.zcml', quintagroup.quills.extras) 
     39    if QPC_PACKAGE: 
     40        import quintagroup.plonecomments 
     41        zcml.load_config('configure.zcml', quintagroup.plonecomments) 
     42        zcml.load_config('overrides.zcml', quintagroup.plonecomments) 
     43        ztc.installPackage('quintagroup.plonecomments') 
     44 
    2745    fiveconfigure.debug_mode = False 
    2846 
    29     ztc.installPackage('quintagroup.plonecomments') 
    3047 
    3148for p in PLONE_INSTALL: 
     
    3451setup_quillsextras_policy() 
    3552ptc.setupPloneSite(products=PLONE_INSTALL) 
     53 
     54import patches 
  • quintagroup.quills.extras/trunk/quintagroup/quills/extras/tests/extras_fixedBugs.rst

    r1227 r1239  
    873873 
    874874    >>> browser.contents 
    875     '...<h2>...Issue #202...</h2>...' 
     875    '...<h2...>...Issue #202...</h2>...' 
    876876        
    877877 
Note: See TracChangeset for help on using the changeset viewer.