Changeset 1514 in products


Ignore:
Timestamp:
Jan 4, 2010 6:01:23 PM (10 years ago)
Author:
mylan
Message:

Added browser layer subtemplate for archetype template

Location:
quintagroup.zopeskel.blayer/trunk
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.zopeskel.blayer/trunk/quintagroup/zopeskel/blayer/__init__.py

    r1508 r1514  
     1from string import capitalize 
     2from zopeskel.localcommands.archetype import ArchetypeSubTemplate 
     3 
     4class BrowserLayer(ArchetypeSubTemplate): 
     5    """ 
     6    A Browser Layer Archetype subtemplate skeleton 
     7    """ 
     8 
     9    _template_dir = 'templates/browserlayer' 
     10    summary = "A browser layer" 
     11 
     12    def pre(self, command, output_dir, vars): 
     13        vars['layer_interface'] = "I" + ''.join(map(capitalize, vars['package_dotted_name'].split('.'))) 
     14 
     15 
  • quintagroup.zopeskel.blayer/trunk/setup.py

    r1511 r1514  
    77      version=version, 
    88      description="Browser Layout subtemplate for Archetype template", 
    9       long_description=open("README.txt").read() + "\n" + 
     9      long_description=open(os.path.join("docs", "README.txt")).read() + "\n" + 
    1010                       open(os.path.join("docs", "HISTORY.txt")).read(), 
    1111      # Get more strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers 
     
    2323      zip_safe=False, 
    2424      install_requires=[ 
    25           'setuptools', 
     25          'ZopeSkel', 
     26          'PasteScript>=1.6.3', 
    2627          # -*- Extra requirements: -*- 
    2728      ], 
     29      setup_requires=['setuptools',], 
    2830      entry_points=""" 
     31      [zopeskel.zopeskel_sub_template] 
     32      browserlayer = quintagroup.zopeskel.blayer:BrowserLayer 
    2933      # -*- Entry points: -*- 
    3034      """, 
Note: See TracChangeset for help on using the changeset viewer.