Changeset 1197

Show
Ignore:
Timestamp:
08/05/08 07:46:37
Author:
mylan
Message:

Update README.txt doctest wtih testing localcommands

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qtheme.template/trunk/qthemetemplate/README.txt

    r1196 r1197  
    5656    tests.py 
    5757    version.txt 
     58 
     59========================= 
     60Test localcommnands 
     61========================= 
     62  This theme support ZopeSkel local command 'addcontent'. 
     63 
     64    >>> paster('addcontent -a') 
     65    paster addcontent -a 
     66    ... 
     67 
     68So you can extend your theme with following subtemplates: 
     69  - portlet 
     70  - layer 
     71  - sublayer 
     72  - css resource 
     73  - js resource 
     74 
     75Check portlet 
     76    >>> paster('addcontent -l') 
     77    paster addcontent -l 
     78    Available templates: 
     79        css_resource:   A Plone 3 CSS resource template 
     80        js_resource:    A Plone 3 JS resource template 
     81        skin_layer:     A Plone 3 Skin Layer 
     82        skin_sublayer:  A Plone 3 Skin SubLayer registration in GS' skins.xml 
     83 
     84Test of portlet adding 
     85    >>> paster('addcontent --no-interactive portlet') 
     86    paster addcontent --no-interactive portlet 
     87    Recursing into portlets 
     88    ... 
     89 
     90Test of skin_layer adding 
     91    >>> paster('addcontent --no-interactive skin_layer') 
     92    paster addcontent --no-interactive skin_layer 
     93    Recursing into profiles 
     94    ... 
     95 
     96Test of skin_sublayer adding 
     97    >>> paster('addcontent --no-interactive skin_sublayer') 
     98    paster addcontent --no-interactive skin_sublayer 
     99    Recursing into profiles 
     100    ... 
     101 
     102Test of css_resource 
     103     >>> paster("addcontent --no-interactive css_resource") 
     104     Traceback (most recent call last): 
     105     ... 
     106     ValueError:  - wrong file path for css resource 
     107 
     108Test of js_resource 
     109    >>> paster('addcontent --no-interactive js_resource') 
     110    Traceback (most recent call last): 
     111    ... 
     112    ValueError:  - wrong file path for js resource 
     113 
     114 
     115Exceptions for last two templates raised because of both templates 
     116expect for path to file object with data with appropriate content 
     117for that resource.