Ferramentas Pessoais
Você está aqui: Página Inicial Downloads Skin Generator 1.0

Skin Generator 1.0

Skin Generator é um pequeno aplicativo de código aberto que cria uma skin para Plone 3 de forma rápida e automatizada.

SkinGenerator.py — Python Source, 56Kb

Conteúdo do arquivo

# -*- coding: utf-8 -*-

# GNU General Public License (GPL)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#

import os, base64

# Criação: 08/11/2008
# Última Atualização: 09/11/2008

project_version = '1.0'

project_creditos = \
"""  Autor: Herson Rodrigues
  E-mail: hersonrodrigues@gmail.com
  Versão: %s\n"""%project_version

project_license = '  GNU General Public License (GPL)\n'

class createSkin:
    """Classe de criação"""

    def __init__(self):
        self.container = []

    def setContainer(self, nome):
        """Cria uma pasta container"""
        os.system('mkdir ' + nome)
        self.container = nome
        print 'Criado a pasta %s' %nome
        
    def getContainer(self, nome):
        """Retorna a pasta container"""
        if self.container:
            return self.container
        self.setContainer(nome)
        return nome
       
    def cria_pasta(self, nome, diretorio):
        """Cria uma pasta"""
        os.system('mkdir ' + diretorio + '/' + nome)
        print 'Criado a pasta %s' %nome
        return diretorio + '/' + nome
        
    def cria_arquivo(self, nome, diretorio, texto):
        """Cria um arquivo"""
        f = open(diretorio +'/'+ nome, 'w')
        f.write(texto)
        f.close()
        print 'Criado o arquivo %s' %nome 


###############################################################################
               
skin = createSkin()

print '\n\n\n\n  #### SKIN GENERATOR #### \n'
print project_creditos
print project_license
              
project_name = raw_input(">>> Digite o nome da sua skin: ")
    
if not project_name:
    print 'Não foi digitado um nome válido, o programa está sendo finalizado'
else:

    project_site = raw_input(">>> Digite o nome do Site: ")

    if not project_site:
        project_site = 'Defina um nome para o site no arquivo properties.xml'

    
    # Portlets
    project_portlets = raw_input(">>> Quantos portlets gostaria de criar?: ")
    
    if not project_portlets:
        project_portlets = 0
        project_portlets_items = 0    
    else:
        project_portlets = int(project_portlets)
        project_portlets_items = []
        for i in range(project_portlets):
            contador = str(i+1)
            portlet = \
            raw_input(">>> Qual o nome do portlet número "+contador+"?: ")
            
            if not portlet:
                portlet = 'Indefinido'+str(i)
                
            position = \
            raw_input(">>> Qual a posição do portlet "+portlet+" [D/E]?: ")
            
            if position.upper() == 'E':
                position = 'left'
            else:
                position = 'right'        
                        
            project_portlets_items.append({'portlet'  : portlet, 
                                           'position' : position})    
           
    # Cria a raiz da skin 
    skin.getContainer(project_name)
    container = skin.getContainer(project_name)
    containerlower = container.lower()
    icontainer = container[0].upper()+container[1:]
    # Arquivo configure.zcml
    texto = \
    """<configure xmlns="http://namespaces.zope.org/zope">
    <include package=".browser" />
    <include file="profiles.zcml" />
</configure>
            """
    skin.cria_arquivo('configure.zcml', container, texto)
    
    # Arquivo profiles.zcml
    texto = \
    """<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
    i18n_domain="%s">

  <genericsetup:registerProfile
      name="default"
      title="%s"
      directory="profiles/default"
      description="Extension profile for %s."
      provides="Products.GenericSetup.interfaces.EXTENSION"
      />

</configure>"""%(containerlower, container, container)

    skin.cria_arquivo('profiles.zcml', container, texto)
    
    
    
    # Arquivo __init__.py
    texto = \
    """from Products.CMFCore.DirectoryView import registerDirectory

GLOBALS = globals()
registerDirectory('skins', GLOBALS)"""

    skin.cria_arquivo('__init__.py', container, texto)    


    # Arquivo AUTOR
    texto = \
    """Autor: Herson Rodrigues Santos
Página: http://herson.objectis.net
E-mail: hersonrodrigues@gmail.com
    """

    skin.cria_arquivo('AUTOR', container, texto)


    # Arquivo LICENSE

    texto = \
    """		    GNU GENERAL PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License.  The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language.  (Hereinafter, translation is included without limitation in
the term "modification".)  Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope.  The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

  1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

  2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

    a) You must cause the modified files to carry prominent notices
    stating that you changed the files and the date of any change.

    b) You must cause any work that you distribute or publish, that in
    whole or in part contains or is derived from the Program or any
    part thereof, to be licensed as a whole at no charge to all third
    parties under the terms of this License.

    c) If the modified program normally reads commands interactively
    when run, you must cause it, when started running for such
    interactive use in the most ordinary way, to print or display an
    announcement including an appropriate copyright notice and a
    notice that there is no warranty (or else, saying that you provide
    a warranty) and that users may redistribute the program under
    these conditions, and telling the user how to view a copy of this
    License.  (Exception: if the Program itself is interactive but
    does not normally print such an announcement, your work based on
    the Program is not required to print an announcement.)

These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works.  But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

  3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

    a) Accompany it with the complete corresponding machine-readable
    source code, which must be distributed under the terms of Sections
    1 and 2 above on a medium customarily used for software interchange; or,

    b) Accompany it with a written offer, valid for at least three
    years, to give any third party, for a charge no more than your
    cost of physically performing source distribution, a complete
    machine-readable copy of the corresponding source code, to be
    distributed under the terms of Sections 1 and 2 above on a medium
    customarily used for software interchange; or,

    c) Accompany it with the information you received as to the offer
    to distribute corresponding source code.  (This alternative is
    allowed only for noncommercial distribution and only if you
    received the program in object code or executable form with such
    an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for
making modifications to it.  For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable.  However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.

  4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

  5. You are not required to accept this License, since you have not
signed it.  However, nothing else grants you permission to modify or
distribute the Program or its derivative works.  These actions are
prohibited by law if you do not accept this License.  Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

  6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions.  You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.

  7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all.  For %s, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

  8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded.  In such case, this License incorporates
the limitation as if written in the body of this License.

  9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

  10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission.  For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this.  Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

			    NO WARRANTY

  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

		     END OF TERMS AND CONDITIONS"""   
		      
    skin.cria_arquivo('LICENSE', container, texto)
    
    # Pasta Skins
    
    pasta_skins = skin.cria_pasta('skins', container)

    # Pasta Styles    
    pasta_skins_styles = skin.cria_pasta(containerlower+'_styles', 
                                         pasta_skins)

    # Pasta Imagens     
    pasta_skins_imagens = skin.cria_pasta(containerlower+'_imagens', 
                                          pasta_skins)

    # Pasta Templates     
    pasta_skins_templates = skin.cria_pasta(containerlower+'_templates', 
                                            pasta_skins)
                                            

    texto = \
    "title:string="+container+"'s color, font, logo and border \
    defaults\n plone_skin:string="+container + """
logoName:string=logo.jpg

fontFamily:string="Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif
fontBaseSize:string=69%
fontColor:string=Black
fontSmallSize:string=85%

backgroundColor:string=White

linkColor:string=#436976
linkActiveColor:string=Red
linkVisitedColor:string=Purple

borderWidth:string=1px
borderStyle:string=solid
borderStyleAnnotations:string=dashed

globalBorderColor:string=#8cacbb
globalBackgroundColor:string=#dee7ec
globalFontColor:string=#436976

headingFontFamily:string="Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif

contentViewBorderColor:string=#74ae0b
contentViewBackgroundColor:string=#cde2a7
contentViewFontColor:string=#578308

inputFontColor:string=Black

textTransform:string=lowercase

evenRowBackgroundColor:string=#eef3f5 
oddRowBackgroundColor:string=transparent

notifyBorderColor:string=#ffa500
notifyBackgroundColor:string=#ffce7b

discreetColor:string=#76797c
helpBackgroundColor:string=#ffffe1

portalMinWidth:string=70em
columnOneWidth:string=16em
columnTwoWidth:string=16em"""

    # Arquivo base_properties.props                                      
    skin.cria_arquivo('base_properties.props', 
                       pasta_skins_styles, 
                       texto)                                            



    # Arquivo SeuArquivo.css.dtml
    
    texto = "/* INICIO DO CSS */\n\n\n\n/* FINAL DO CSS */" 
       
    skin.cria_arquivo(container+'.css.dtml', 
                       pasta_skins_styles, 
                       texto)                                              


    # Arquivo SeuArquivo.js
    
    texto = """// INICIO DO JAVASCRIPT \n\n \
    // Jquery\njq(document).ready(function(){\n\n\n\n});
    // Jquery Fim\n\n// FINAL DO JAVASCRIPT """
       
    skin.cria_arquivo(container+'.js', 
                       pasta_skins_styles, 
                       texto)                                               
                                            
    # Arquivo pagina_inicial.pt
    texto = \
    """<html xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en"
      lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">
      
  <head>
    <title tal:content="template/title">The title</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">

  </head>
  <body metal:fill-slot="main">

	<h1 tal:content="context/Title">Titulo</h1>
    
    <div>
        Coloque aqui suas div's e estruturas htmls
    </div>

</body>
</html>"""

    skin.cria_arquivo('pagina_inicial.pt', 
                       pasta_skins_templates, 
                       texto)                                              
                                                

    # Arquivo logo.jpg
    # Serializado com: base64.encodestring(open(logo.jpg,"rb").read())
    
    texto = \
"""/9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD/2wBDAAEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/
2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQH/wAARCABoAXQDASIAAhEBAxEB/8QAHgABAAMBAQEBAQEBAAAAAAAAAAkKCwgH
BgUEAgP/xABMEAAABgIBAQUEBAoIAgkFAAACAwQFBgcBCAAJChITFBURFhcaWZio1RgZI1ZYWpe3
19ghJTg5OnZ4lSJ5JCYxMne0tba4NDdp2ej/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAA
AAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8Av8ccccBxxxwHHHHAccc8D2W2i1+07qKTXtsxasTq
CrImnEa6SeVrhE+aVZKNNSsceaEhap8lkodPBMKZYpGG13kb0px5Zq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BuWz3BvdZzMfjxszE/XF7UxtcbQH+70IuaNRVs8B
lZW1F4TOxt5JvlvMHFmKzlB5oUEfxo/Z+P1fX7aNn/d/H40fs/H6vr9tGz/u/l375XHoUfoM/aZ3
D/mC4+Vx6FH6DP2mdw/5guBXg64W+3R5pbqibPVntN0ePwp74jXwV9+r5/Cdndee/frOvNTP8Y/6
nsyM1tZ/diGusehv/RjBeoe73qh3sULTQ4ig/Gj9n4/V9fto2f8Ad/L/ANtH0Fek9uje052X2X1T
+JV22V7s++s1+OeyUO9a9zodHoBHP+rkAuKKxJu9OiUVYWn+qWFB5zyHn1/mnNUtWqOf/lcehR+g
z9pncP8AmC4GWXvXc2rt83842Dp/q5+B9TCmLxprQ0x8QXmzfIyBsTHFP0h96X0olwN9eUDKUeSE
DwkfhdwrOcCzzbyqb/7V1p/4fw3/ANuNvIQflcehR+gz9pncP+YLk9zS1IGNqbGRqI8q2M7eiam5
N4px/lkDemLSIyPGUmHKDvBTkll+KeaacZ3e+aYMeRCyH6HHHHAccccBxxxwHHHHAccccBxxxwHH
HHAccccBxxxwHHHHAccccBxxxwHHHHAccccBxxxwHHHHAccccBxxxwHHHHAccccBxxxwHHHHAccc
cBxxxwHHHHA//9k=
"""
    # Deserializando
    texto = base64.b64decode(texto)      
    skin.cria_arquivo('logo.jpg', 
                       pasta_skins_imagens, 
                       texto)           


    # Pasta Profiles
    
    pasta_profiles = skin.cria_pasta('profiles', container)                       


    # Pasta Default
    
    pasta_profiles_default = skin.cria_pasta('default', pasta_profiles)                     
    
    
    # Arquivo cssregistry.xml
    texto = \
    """<?xml version="1.0"?>
<object name="portal_css">

 <stylesheet id="%s.css"
    title="" cacheable="True" compression="safe" cookable="True"
    enabled="1" expression=""  media="all"
    rel="stylesheet" rendering="import"/>
    
</object>
    """%container
    
    skin.cria_arquivo('cssregistry.xml', 
                       pasta_profiles_default, 
                       texto)       
    

    # Arquivo jsregistry.xml
    texto = \
    """<?xml version="1.0"?>
<object name="portal_javascripts">

 <javascript id="%s.js"
    cacheable="False" compression="safe" cookable="False"
    enabled="True" expression="" inline="False"/>

</object>"""%container

    skin.cria_arquivo('jsregistry.xml', 
                       pasta_profiles_default, 
                       texto)  


    # Arquivo properties.xml
    texto = \
    """<?xml version="1.0"?>
<site>
 <property name="title">%s</property>
 <property name="description"></property>
 <property name="default_page" type="string">pagina_inicial</property>
 <property name="selectable_views" type="lines">
  <element value="folder_listing"/>
  <element value="news_listing"/>
 </property>
 <property name="email_from_address" type="string"></property>
 <property name="email_from_name" type="string">Administração - %s</property>
 <property name="validate_email" type="boolean">False</property>
 <property name="email_charset" type="string">utf-8</property>
 <property name="enable_permalink" type="boolean">False</property>
</site>"""%(project_site, project_site)

    skin.cria_arquivo('properties.xml', 
                       pasta_profiles_default, 
                       texto)  




    texto_skin = \
    """<?xml version="1.0"?>
<object name="portal_skins" allow_any="False" cookie_persistence="False"
        default_skin="%s" request_varname="plone_skin"> 
 <object name="%s"
    meta_type="Filesystem Directory View"
    directory="Products.%s:%s/%s"/>
 <object name="%s"
    meta_type="Filesystem Directory View"
    directory="Products.%s:%s/%s"/>
 <object name="%s"
    meta_type="Filesystem Directory View"
    directory="Products.%s:%s/%s"/>
 <skin-path name="%s" based-on="Plone Default">
 
  <layer name="%s"
     insert-after="custom"/>
  <layer name="%s"
     insert-after="%s"/>
  <layer name="%s"
     insert-after="%s"/>
     
 </skin-path>
</object>
    """%(container,
         pasta_skins_imagens.split('/')[-1], 
         container, 
         pasta_skins_imagens.split('/')[-2],
         pasta_skins_imagens.split('/')[-1],
         pasta_skins_styles.split('/')[-1], 
         container, 
         pasta_skins_styles.split('/')[-2],
         pasta_skins_styles.split('/')[-1],
         pasta_skins_templates.split('/')[-1], 
         container, 
         pasta_skins_templates.split('/')[-2],
         pasta_skins_templates.split('/')[-1],
         container,
         pasta_skins_styles.split('/')[-1],
         pasta_skins_imagens.split('/')[-1],
         pasta_skins_styles.split('/')[-1],
         pasta_skins_templates.split('/')[-1],
         pasta_skins_imagens.split('/')[-1])
    
    skin.cria_arquivo('skins.xml', 
                       pasta_profiles_default, 
                       texto_skin)


    # Arquivo properties.xml
    texto = \
    """<metadata>
  <description>%s - %s</description>
  <version>1.0</version>
<!--
  <dependencies>
    <dependency>profile-Products.NomeDoProduto:default</dependency>  
  </dependencies>    
-->
</metadata>"""%(container, project_site)

    skin.cria_arquivo('metadata.xml', 
                       pasta_profiles_default, 
                       texto)  

    # Arquivo catalog.xml

    texto = \
    """<?xml version="1.0"?>
<object name="portal_catalog" meta_type="Plone Catalog Tool">
  
  <!-- Exemplo de criação de indice, veja como pegar os icones dos tipos do plone
  <index name="icon" 
         meta_type="FieldIndex">
    <indexed_attr value="icon"/>
  </index>

  <column value="icon"/>
  -->
  
  <!-- Exemplo de criação de indice, este pega o texto das páginas e notícias
  <index name="getText" 
         meta_type="FieldIndex">
    <indexed_attr value="getText"/>
  </index>

  <column value="getText"/>
  -->  

</object>
    """
    skin.cria_arquivo('catalog.xml', 
                       pasta_profiles_default, 
                       texto)
                           

    if project_portlets_items:
        # Arquivo portlets.xml
        texto_main = ''
        texto_main_colum = ''
        texto_header = \
        """<?xml version="1.0"?>
<portlets>

 """
        for item in project_portlets_items:

            portletlower = item['portlet'].lower()+'_portlet'
            portletname = item['portlet']
            portletpos = item['position']
            
            texto_main = texto_main + """ <portlet
     addview="%s"
     title="%s"
     description=""
     />    
"""%(portletlower, portletname)

            texto_main_colum = texto_main_colum + """      
 <assignment name="%s" category="context" key="/"
    manager="plone.%scolumn" type="%s"/>
    
"""%(portletname, portletpos, portletlower) 
    
        texto_footer = \
        """         
</portlets> """
        texto = texto_header + texto_main + texto_main_colum + texto_footer

        skin.cria_arquivo('portlets.xml', 
                           pasta_profiles_default, 
                           texto)    
    
    
    
                                   
    # Pasta Browser
    
    pasta_browser = skin.cria_pasta('browser', container)  
        
    # Arquivo __init__.py   
    texto = '#'
    skin.cria_arquivo('__init__.py', 
                       pasta_browser, 
                       texto)
                       
    # Arquivo interfaces.py   
    texto = \
    """from plone.theme.interfaces import IDefaultPloneLayer

class I%s(IDefaultPloneLayer):
    \"\"\"Marcador que define uma interface Zope 3\"\"\"
    """%(icontainer)
    
    skin.cria_arquivo('interfaces.py', 
                       pasta_browser, 
                       texto)                             

    # Arquivo configure.zcml
    if project_portlets_items:
    
        texto_main = ''
        
        texto_header = \
        """<configure
        xmlns="http://namespaces.zope.org/zope"
        xmlns:browser="http://namespaces.zope.org/browser"
        xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
        xmlns:plone="http://namespaces.plone.org/plone" 
        i18n_domain="%s">

        <interface
            interface=".interfaces.I%s"
            type="zope.publisher.interfaces.browser.IBrowserSkinType"
            name="%s"
            />
            
        """%(containerlower, icontainer, container)
     
        for item in project_portlets_items:

            portletlower = item['portlet'].lower()+'_portlet'
            portletname = item['portlet']
            portletpos = item['position']
            
            texto_main = texto_main + """<!-- Portlet - %s -->
    <plone:portlet
        name="%s"
        interface=".portlets.I%sPortlet"
        assignment=".portlets.%sAssignment"
        view_permission="zope2.View"
        edit_permission="cmf.ManagePortal"
        renderer=".portlets.%sRenderer"
        addview=".portlets.%sAddForm"
        editview=".portlets.%sEditForm"
        />
        
        """%(portletname, portletlower, portletname, 
               portletname, portletname, portletname, portletname)

    
        texto_footer = \
        """         
</configure> """
        texto = texto_header + texto_main + texto_footer
                    
    else:
                                     
        texto = \
        """<configure
        xmlns="http://namespaces.zope.org/zope"
        xmlns:browser="http://namespaces.zope.org/browser"
        i18n_domain="%s">

        <interface
            interface=".interfaces.I%s"
            type="zope.publisher.interfaces.browser.IBrowserSkinType"
            name="%s"
            />

    </configure>
        """%(containerlower, icontainer, container)
        
    
    skin.cria_arquivo('configure.zcml', 
                       pasta_browser, 
                       texto)



    if project_portlets_items:
           
        # Pasta Templates
        pasta_templates = skin.cria_pasta('templates', pasta_browser) 
        
        # Pasta Portlets
        pasta_portlets = skin.cria_pasta('portlets', pasta_templates)
        
        # Portlet Templates
        for item in project_portlets_items:     
            portletname = item['portlet']
            texto = \
"""<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      i18n:domain="plone">
<body>
<div metal:define-macro="portlet">

<dl class="portlet %s">

    <dt class="portletHeader">
        <span class="portletTopLeft"/>
            <span>
               %s
            </span>
        <span class="portletTopRight"/>
    </dt>

    <dd class="portletItem odd">
        
    <p>
       Escreva aqui o conteúdo do portlet
    </p>

    </dd>
    
    <dd class="portletFooter">
        <span class="portletBottomLeft"/>
        <span>
           <a href="#">Veja Mais</a>
        </span>
        <span class="portletBottomRight"/>
    </dd>

</dl>

</div>
</body>
</html>
"""%(portletname, portletname)

            skin.cria_arquivo(portletname+'.pt', 
                               pasta_portlets, 
                               texto) 
                               
                                          
        if project_portlets_items:
          
            # Arquivo porlets.py
            texto_main = ''
            
            texto_header = \
            """from zope.interface import Interface
from zope.interface import implements
from zope import schema
from zope.formlib import form

from plone.portlets.interfaces import IPortletDataProvider
from plone.app.portlets.portlets import base

from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile

    """
            for item in project_portlets_items:

                portletlower = item['portlet'].lower()+'_portlet'
                portletname = item['portlet']
                portletpos = item['position']
                
                texto_main = texto_main + """# Portlet %s 
class I%sPortlet(IPortletDataProvider):
    \"\"\"A portlet
    
    It inherits from IPortletDataProvider because for this portlet, the
    data that is being rendered and the portlet assignment itself are the
    same.
    \"\"\"

class %sAssignment(base.Assignment):
    \"\"\"Portlet assignment.

    This is what is actually managed through the portlets UI and associated
    with columns.
    \"\"\"

    implements(I%sPortlet)

    def __init__(self):
        pass

    @property
    def title(self):
        \"\"\"This property is used to give the title of the portlet in the
        \"manage portlets\" screen.
        \"\"\"
        return "%s"

class %sRenderer(base.Renderer):
    \"\"\"Portlet renderer.

    This is registered in configure.zcml. The referenced page template is
    rendered, and the implicit variable 'view' will refer to an instance
    of this class. Other methods can be added and referenced in the template.
    \"\"\"

    render = ViewPageTemplateFile('%s/%s.pt')


class %sAddForm(base.AddForm):
    \"\"\"Portlet add form.

    This is registered in configure.zcml. The form_fields variable tells
    zope.formlib which fields to display. The create() method actually
    constructs the assignment that is being added.
    \"\"\"
    form_fields = form.Fields(I%sPortlet)

    def create(self, data):
        return %sAssignment(**data)


class %sEditForm(base.EditForm):
    \"\"\"Portlet edit form.

    This is registered with configure.zcml. The form_fields variable tells
    zope.formlib which fields to display.
    \"\"\"
    form_fields = form.Fields(I%sPortlet)
            
            """%(portletname, portletname, 
                 portletname, portletname, 
                 portletname, portletname, 
                 '/'.join(pasta_portlets.split('/')[2:]), 
                 portletname, portletname, 
                 portletname, portletname, 
                 portletname, portletname)
        
        texto = texto_header + texto_main
        
        skin.cria_arquivo('portlets.py', 
                           pasta_browser, 
                           texto)                     
                                           
Ações do documento
« Novembro 2024 »
Novembro
SeTeQuQuSeSaDo
123
45678910
11121314151617
18192021222324
252627282930

Python Logo

       Zope Logo

 

      Novo Logo do Plone