| | 58 | |
|---|
| | 59 | ========================= |
|---|
| | 60 | Test localcommnands |
|---|
| | 61 | ========================= |
|---|
| | 62 | This theme support ZopeSkel local command 'addcontent'. |
|---|
| | 63 | |
|---|
| | 64 | >>> paster('addcontent -a') |
|---|
| | 65 | paster addcontent -a |
|---|
| | 66 | ... |
|---|
| | 67 | |
|---|
| | 68 | So you can extend your theme with following subtemplates: |
|---|
| | 69 | - portlet |
|---|
| | 70 | - layer |
|---|
| | 71 | - sublayer |
|---|
| | 72 | - css resource |
|---|
| | 73 | - js resource |
|---|
| | 74 | |
|---|
| | 75 | Check 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 | |
|---|
| | 84 | Test of portlet adding |
|---|
| | 85 | >>> paster('addcontent --no-interactive portlet') |
|---|
| | 86 | paster addcontent --no-interactive portlet |
|---|
| | 87 | Recursing into portlets |
|---|
| | 88 | ... |
|---|
| | 89 | |
|---|
| | 90 | Test of skin_layer adding |
|---|
| | 91 | >>> paster('addcontent --no-interactive skin_layer') |
|---|
| | 92 | paster addcontent --no-interactive skin_layer |
|---|
| | 93 | Recursing into profiles |
|---|
| | 94 | ... |
|---|
| | 95 | |
|---|
| | 96 | Test of skin_sublayer adding |
|---|
| | 97 | >>> paster('addcontent --no-interactive skin_sublayer') |
|---|
| | 98 | paster addcontent --no-interactive skin_sublayer |
|---|
| | 99 | Recursing into profiles |
|---|
| | 100 | ... |
|---|
| | 101 | |
|---|
| | 102 | Test 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 | |
|---|
| | 108 | Test 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 | |
|---|
| | 115 | Exceptions for last two templates raised because of both templates |
|---|
| | 116 | expect for path to file object with data with appropriate content |
|---|
| | 117 | for that resource. |
|---|