Changeset 1364 in products
- Timestamp:
- Nov 5, 2009 2:51:35 PM (15 years ago)
- Location:
- quintagroup.themetemplate/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.themetemplate/trunk/docs/HISTORY.txt
r1357 r1364 1 1 Changelog 2 2 ========= 3 4 0.2.2 (unreleased) 5 ------------------ 6 7 - Updated import_zexps subtemplate - move this step into 8 separate genericsetup profile 9 [mylan] 10 - Updated tests for changed import_zexps subtemplate 11 [mylan] 12 13 0.2 (unreleased) 14 ---------------- 15 16 - Added new css_dtml_skin subtemplate 17 [mylan] 18 - Added tests for css_dtml_skin subtemplate 19 [mylan] 3 20 4 21 0.14 (unreleased) -
quintagroup.themetemplate/trunk/quintagroup.themetemplate.egg-info/PKG-INFO
r1005 r1364 1 1 Metadata-Version: 1.0 2 2 Name: quintagroup.themetemplate 3 Version: 0. 9dev3 Version: 0.2.2 4 4 Summary: Quintagroup theme template for Plone 3 with nested namespace 5 5 Home-page: http://svn.quintagroup.com/products/quintagroup.themetemplate … … 10 10 ====================== 11 11 12 quintagroup.themetemplate is an enhanced "Plone 3 Theme" template from Zopeskel, 13 that includes addcontent local command, which allows you to extend base Plone theme 14 by additional elements, such as: skin layers, portlets, viewlets, css and js resources, 15 and objects in zexp files. This package is an analogue of Archetype template in terms 16 of its functionality. 17 18 quintagroup.themetemplate package is used for development of all Quintagroup themes 19 for Plone 3 (http://skins.quintagroup.com). 20 12 21 Contents 13 22 -------- … … 20 29 ======== 21 30 22 This theme template allows you to create plone3 theme python package 23 with nested namespace. Initial package is theme package skeleton. 24 This package can be extended (filled in) with: 31 This theme template allows you to create initial theme package skeleton, 32 i.e. create plone3 theme python package with nested namespace (this is different from 33 deafult plone3_theme template in Zopeskel) 34 35 After that you can extend theme package by the following elements: 25 36 26 37 - skin-layer(s) … … 28 39 - viewlet(s) 29 40 - css, js resource(s) 41 - objects in zexp files 30 42 31 43 Creation of a package is performed with *paster create* PasteScript command. … … 65 77 66 78 So check namespaces:: 79 67 80 >>> theme_namespace = os.path.join(package_dir,'quintagroup','theme','ploneexample') 68 81 >>> os.path.isdir(theme_namespace) … … 70 83 71 84 Theme holds 3 subdirectories (browser, profiles, skins):: 85 72 86 >>> cd(theme_namespace) 73 87 >>> dirs = ('skins', 'browser', 'profiles') … … 76 90 77 91 And initialization files (__init__.py, configure.zcml) :: 92 78 93 >>> files = ('__init__.py', 'configure.zcml') 79 94 >>> [True for d in files if d in os.listdir('.')] … … 206 221 One of the best features, which ZopeSkel package brings, is *localcommand*. 207 222 208 In this part I will showhow you can extend a theme (generated with qplone3_theme223 This part shows how you can extend a theme (generated with qplone3_theme 209 224 ZopeSkel template) with additional useful stuff: 210 225 … … 215 230 - css 216 231 - javascripts 232 - objects in zexp files 217 233 218 234 So, in qplone3_theme generated package you can use *addcontent* ZopeSkel … … 226 242 paster addcontent -a 227 243 ... 244 css_dtml_skin: A DTML file in skin layer with CSS registration 228 245 css_resource: A Plone 3 CSS resource template 229 246 ... … … 408 425 409 426 427 Adding CSS resource as dtml-file into skins layer 428 ================================================= 429 430 This template actually absolutely same to the previouse one, but layer_name 431 variable added to point in which skin layer css dtml-file should be added to. 432 And, of course, css resource added into pointing *skins/<layer_name>/<css_reseource_name>.dtml* file. 433 434 This subtemplate has several benefits before registering css as resource layer: 435 - in dtml file you can use power of dtml language 436 - this resource can be overriden by customer if he needs that 437 438 IMPORTANT: 439 For add css resource in registered skin layer - you should use this subtemplate 440 in conjunction with *skin_layer* one. 441 442 443 Use *css_dtml_skin* subtemplate. 444 445 >>> paster("addcontent --no-interactive css_dtml_skin") 446 paster addcontent --no-interactive css_dtml_skin 447 Recursing into profiles 448 ... 449 Recursing into skins 450 ... 451 452 This template adds main.css.dtml file into skins/skin_layer folder 453 454 >>> 'main.css.dtml' in os.listdir('skins/skin_layer') 455 True 456 457 The main.css.dtml file already prepared to use as dtml-document 458 >>> cat('skins/skin_layer/main.css.dtml') 459 /* 460 ... 461 /* <dtml-with base_properties> (do not remove this :) */ 462 ... 463 /* </dtml-with> */ 464 <BLANKLINE> 465 466 467 And cssregistry.xml profile was added into profiles/default directory with 468 registered main.css stylesheet 469 470 >>> 'cssregistry.xml' in os.listdir('profiles/default') 471 True 472 >>> cat('profiles/default/cssregistry.xml') 473 <?xml version="1.0"?> 474 <object name="portal_css"> 475 <BLANKLINE> 476 <stylesheet title="" 477 id="++resource++quintagroup.theme.ploneexample.stylesheets/main.css" 478 media="screen" rel="stylesheet" rendering="inline" 479 cacheable="True" compression="safe" cookable="True" 480 enabled="1" expression=""/> 481 ... 482 483 410 484 Adding JAVASCRIPT resource 411 485 -------------------------- … … 603 677 Recursing into profiles 604 678 ... 679 Inserting from profiles.zcml_insert ... 680 ... 605 681 Inserting from setuphandlers.py_insert into ... 606 682 ... … … 609 685 - 'import' directory was added into root of the theme 610 686 - profiles stuff was updated 687 - profiles.zcml file is updated 611 688 - some stuff into setuphandlers.py module was inserted 612 689 … … 618 695 619 696 620 2. import_steps.xml was added in profiles/ default directory (if does not exist yet),697 2. import_steps.xml was added in profiles/import_zexps directory, 621 698 which contains additional *quintagroup.theme.ploneexample.import_zexps* step. 622 699 623 >>> 'import_steps.xml' in os.listdir('profiles/default') 624 True 625 626 >>> cat('profiles/default/import_steps.xml') 627 <?xml version="1.0"?> 628 <import-steps> 700 >>> 'import_zexps' in os.listdir('profiles') 701 True 702 >>> 'import_steps.xml' in os.listdir('profiles/import_zexps') 703 True 704 705 >>> cat('profiles/import_zexps/import_steps.xml') 706 <?xml version="1.0"?> 629 707 ... 630 708 <import-step id="quintagroup.theme.ploneexample.import_zexps" … … 632 710 handler="quintagroup.theme.ploneexample.setuphandlers.importZEXPs" 633 711 title="My Theme Name: Import zexps objects"> 634 <dependency step="skins" />635 712 Import zexp objects into portal on My Theme Name theme installation 636 713 </import-step> 637 714 <BLANKLINE> 638 </import-steps> 639 640 3. Check setuphandlers.py module - there must be importZEXPs function defined 715 ... 716 717 3. profiles.zcml configuration updated with new genericsetup profile for zexps 718 importing. 719 720 >>> cat('profiles.zcml') 721 <configure 722 ... 723 <genericsetup:registerProfile 724 name="import_zexps" 725 title="My Theme Name: Import ZEXPs" 726 directory="profiles/import_zexps" 727 description='Extension profile for importing objects of the "My Theme Name" Plone theme.' 728 provides="Products.GenericSetup.interfaces.EXTENSION" 729 /> 730 <BLANKLINE> 731 ... 732 733 4. Check setuphandlers.py module - there must be importZEXPs function defined 641 734 642 735 >>> cat('setuphandlers.py') … … 669 762 ========= 670 763 671 0.9 (unreleased) 764 0.2.2 (unreleased) 765 ------------------ 766 767 - Updated import_zexps subtemplate - move this step into 768 separate genericsetup profile 769 [mylan] 770 - Updated tests for changed import_zexps subtemplate 771 [mylan] 772 773 0.2 (unreleased) 672 774 ---------------- 673 775 674 - Nothing changed yet. 776 - Added new css_dtml_skin subtemplate 777 [mylan] 778 - Added tests for css_dtml_skin subtemplate 779 [mylan] 780 781 0.14 (unreleased) 782 ----------------- 783 784 - Refactoring theme vars storage-now storing in separate 785 theme_vars.cfg file, without distutils writers [mylan] 786 - Cleanup code [mylan] 787 788 789 0.11 (2009-04-13) 790 ----------------- 791 792 - Removed setup.cfg 793 [mylan] 794 795 796 0.10 (2009-04-13) 797 ----------------- 798 799 - Updated README 800 [olha] 801 802 803 0.9 (2009-04-11) 804 ---------------- 805 806 - Changed package name/namespace to 807 quintagroup.themetemplate. 808 [mylan] 675 809 676 810 -
quintagroup.themetemplate/trunk/quintagroup.themetemplate.egg-info/SOURCES.txt
r1005 r1364 1 1 MANIFEST.in 2 setup.cfg3 2 setup.py 4 3 docs/HISTORY.txt … … 24 23 quintagroup/themetemplate/localcommands/templates/cssresource/browser/stylesheets/README.txt_tmpl 25 24 quintagroup/themetemplate/localcommands/templates/cssresource/profiles/default/cssregistry.xml_insert 25 quintagroup/themetemplate/localcommands/templates/cssskinresource/profiles/default/cssregistry.xml_insert 26 quintagroup/themetemplate/localcommands/templates/cssskinresource/skins/+layer_name+/+css_resource_name+.dtml_tmpl 26 27 quintagroup/themetemplate/localcommands/templates/importing/fixes.py_tmpl 28 quintagroup/themetemplate/localcommands/templates/importing/profiles.zcml_insert 27 29 quintagroup/themetemplate/localcommands/templates/importing/setuphandlers.py_insert 28 30 quintagroup/themetemplate/localcommands/templates/importing/utils.py_tmpl 29 31 quintagroup/themetemplate/localcommands/templates/importing/import/CONTENT.txt 30 quintagroup/themetemplate/localcommands/templates/importing/profiles/ default/import_steps.xml_insert32 quintagroup/themetemplate/localcommands/templates/importing/profiles/import_zexps/import_steps.xml_insert 31 33 quintagroup/themetemplate/localcommands/templates/jsresource/browser/configure.zcml_insert 32 34 quintagroup/themetemplate/localcommands/templates/jsresource/browser/scripts/+js_resource_name+_tmpl … … 47 49 quintagroup/themetemplate/templates/qplone3_theme/+project+-configure.zcml_tmpl 48 50 quintagroup/themetemplate/templates/qplone3_theme/MANIFEST.in_tmpl 49 quintagroup/themetemplate/templates/qplone3_theme/distwriters.py50 51 quintagroup/themetemplate/templates/qplone3_theme/setup.py_tmpl 52 quintagroup/themetemplate/templates/qplone3_theme/theme_vars.cfg_tmpl 51 53 quintagroup/themetemplate/templates/qplone3_theme/+namespace_package+/+namespace_package2+/+package+/__init__.py_tmpl 52 54 quintagroup/themetemplate/templates/qplone3_theme/+namespace_package+/+namespace_package2+/+package+/configure.zcml_tmpl … … 62 64 quintagroup/themetemplate/templates/qplone3_theme/+namespace_package+/+namespace_package2+/+package+/browser/templates/README.txt 63 65 quintagroup/themetemplate/templates/qplone3_theme/+namespace_package+/+namespace_package2+/+package+/portlets/__init__.py 64 quintagroup/themetemplate/templates/qplone3_theme/+namespace_package+/+namespace_package2+/+package+/portlets/__init__.pyc65 66 quintagroup/themetemplate/templates/qplone3_theme/+namespace_package+/+namespace_package2+/+package+/portlets/configure.zcml_tmpl 66 67 quintagroup/themetemplate/templates/qplone3_theme/+namespace_package+/+namespace_package2+/+package+/profiles/default/+namespace_package+.+namespace_package2+.+package+_various.txt_tmpl -
quintagroup.themetemplate/trunk/quintagroup.themetemplate.egg-info/entry_points.txt
r1005 r1364 6 6 skin_layer = quintagroup.themetemplate.localcommands.subtemplates:SkinLayerSubTemplate 7 7 css_resource = quintagroup.themetemplate.localcommands.subtemplates:CSSSubTemplate 8 css_dtml_skin = quintagroup.themetemplate.localcommands.subtemplates:CSSSkinLayerSubTemplate 8 9 js_resource = quintagroup.themetemplate.localcommands.subtemplates:JSSubTemplate 9 10 viewlet_order = quintagroup.themetemplate.localcommands.subtemplates:ViewletOrderSubTemplate … … 11 12 import_zexps = quintagroup.themetemplate.localcommands.subtemplates:ImportSubTemplate 12 13 13 [distutils.setup_keywords]14 theme_vars = quintagroup.themetemplate:assert_dict15 16 [egg_info.writers]17 theme_vars.txt = quintagroup.themetemplate:write_map18 19 14 # -*- Entry points: -*- 20 15 -
quintagroup.themetemplate/trunk/setup.py
r1359 r1364 2 2 import os 3 3 4 version = '0. 14'4 version = '0.2.2' 5 5 6 6 tests_require=['zope.testing']
Note: See TracChangeset
for help on using the changeset viewer.