Conjunto de mudanças 695 no repositório publico


Ignorar:
Timestamp:
23/09/2005 16:49:41 (15 anos atrás)
Autor:
paulovieira
Mensagem:

alteracao nos templates e install

Localização:
ILPortal/trunk
Arquivos:
6 editados

Legenda:

Não Modificado
Adicionado
Removido
  • ILPortal/trunk/Extensions/AppInstall.py

    r689 r695  
    44from Products.ILPortal.utils import setVocabulariosDinamicos
    55from Products.CMFPlone.migrations.migration_util import safeEditProperty
     6from Acquisition import aq_base
    67
    78
     
    1011<div metal:fill-slot="main">
    1112   
    12    <div metal:use-macro="here/portlet_noticias/macros/portlet"></div><br>
     13   <div metal:use-macro="here/portlet_noticias/macros/portlet"></div>
    1314   <div metal:use-macro="here/portlet_destaques/macros/portlet"></div>
    1415
     
    3132    setupPublicatorOpniao(portal)
    3233    setupPublicatorProdutos(portal)
     34    addNewsletters(portal)
     35    addForuns(portal)
     36    addImagens(portal)
     37    addChats(portal)
     38    setupActions(portal)
     39    setupTipo(portal)
    3340
    3441    setVocabulariosDinamicos(self, VOCABULARIOS_DINAMICOS)
     
    126133    portal_properties.navtree_properties.includeTop = (False)
    127134    portal_properties.navtree_properties.idsNotToList = ('Members',)
     135    portal_properties.navtree_properties.enable_wf_state_filtering = (True)
     136    portal_properties.navtree_properties.wf_states_to_show = ('published',)
     137
    128138    print >>out, 'Plone para ILPortal customizado!\n'
     139
     140
     141def addNewsletters(portal):
     142    portal.invokeFactory('Folder', id='boletins', title='Boletins', excludeFromNav=0)
     143
     144    newsletters = getattr(aq_base(portal), 'boletins')
     145    addable_types = ['Subscriber','NewsletterTheme']
     146    if getattr(newsletters.aq_base, 'setConstrainTypesMode', None) is not None:
     147        newsletters.setConstrainTypesMode(1)
     148        newsletters.setImmediatelyAddableTypes(addable_types)
     149        newsletters.setLocallyAllowedTypes(addable_types)
     150
     151def addForuns(portal):
     152    portal.invokeFactory('ForumFolder', id='foruns', title='Fóruns')
     153
     154def addChats(portal):
     155    portal.invokeFactory('Folder', id='chats', title='Chats', excludeFromNav=0)
     156
     157    chat = getattr(aq_base(portal), 'chats')
     158    addable_types = ['PloneChat']
     159    if getattr(chat.aq_base, 'setConstrainTypesMode', None) is not None:
     160        chat.setConstrainTypesMode(1)
     161        chat.setImmediatelyAddableTypes(addable_types)
     162        chat.setLocallyAllowedTypes(addable_types)
     163
     164def addEnquetes(portal):
     165    portal.invokeFactory('Folder', id='enquetes', title='Enquetes', excludeFromNav=0)
     166
     167    enquete = getattr(aq_base(portal), 'enquetes')
     168    addable_types = ['PlonePopoll']
     169    if getattr(enquete.aq_base, 'setConstrainTypesMode', None) is not None:
     170        enquete.setConstrainTypesMode(1)
     171        enquete.setImmediatelyAddableTypes(addable_types)
     172        enquete.setLocallyAllowedTypes(addable_types)
     173
     174def addImagens(portal):
     175    portal.invokeFactory('Folder', id='imagens', title='Imagens', excludeFromNav=0)
     176
     177    imagem = getattr(aq_base(portal), 'imagens')
     178    addable_types = ['Image','Folder']
     179    if getattr(imagem.aq_base, 'setConstrainTypesMode', None) is not None:
     180        imagem.setConstrainTypesMode(1)
     181        imagem.setImmediatelyAddableTypes(addable_types)
     182        imagem.setLocallyAllowedTypes(addable_types)
     183
     184def setupActions(portal):
     185    portal_actions = getToolByName(portal, 'portal_actions')
     186    portal_actions.addAction(id='boletins', name='Boletins', action='string:${portal_url}/boletins', condition='', permission='View', category='portal_tabs', visible=1)
     187    portal_actions.addAction(id='chats', name='Chats', action='string:${portal_url}/chats', condition='', permission='View', category='portal_tabs', visible=1)
     188    portal_actions.addAction(id='foruns', name='Fóruns', action='string:${portal_url}/foruns', condition='', permission='View', category='portal_tabs', visible=1)
     189
     190
     191def setupTipo(portal):
     192    portal_types = getToolByName(portal, 'portal_types')
     193    portal_types['Plone Site'].global_allow = False
     194    addable_types=['Folder']
     195    portal_types['Plone Site'].filter_content_types = True
     196    portal_types['Plone Site'].allowed_content_types = addable_types
    129197
    130198def uninstall(self):
  • ILPortal/trunk/skins/ILPortal_public/base_properties.props

    r686 r695  
    2020borderStyleAnnotations:string=solid
    2121
    22 globalBorderColor:string=#00397c
    23 globalBackgroundColor:string=#fffdeb
     22globalBorderColor:string=#00377A
     23globalBackgroundColor:string=#f6f6f6
    2424globalFontColor:string=#436976
    2525
    2626headingFontFamily:string=Verdana, Arial, Helvetica, sans-serif
    2727
    28 contentViewBorderColor:string=#007035
    29 contentViewBackgroundColor:string=#fffdeb
    30 contentViewFontColor:string=#007035
     28contentViewBorderColor:string=#007236
     29contentViewBackgroundColor:string=#f6f6f6
     30contentViewFontColor:string=#007236
    3131
    3232inputFontColor:string=Black
     
    3434textTransform:string=none
    3535
    36 evenRowBackgroundColor:string=#eef3f5
     36evenRowBackgroundColor:string=#f6f6f6
    3737oddRowBackgroundColor:string=transparent
    3838
  • ILPortal/trunk/skins/ILPortal_public/main_template.pt

    r686 r695  
    6666               The quicksearch box, normally placed at the top right
    6767             </div>
    68 <!--
    69              <div metal:use-macro="here/menu_superior/macros/menu">
    70                 Menu superior
    71              </div>
    72 --> 
     68
     69             <div metal:use-macro="here/global_sections/macros/portal_tabs">
     70               The global sections tabs. (Welcome, News etc)
     71             </div>
     72
    7373             <a metal:use-macro="here/global_logo/macros/portal_logo">
    7474               The portal logo, linked to the portal root
    7575             </a>
    76  
     76
    7777             <div metal:use-macro="here/global_skinswitcher/macros/skin_tabs">
    7878               The skin switcher tabs. Based on which role you have, you
    7979               get a selection of skins that you can switch between.
    8080             </div>
    81              
    82  
    83              <div metal:use-macro="here/global_sections/macros/portal_tabs">
    84                The global sections tabs. (Welcome, News etc)
    85              </div>
     81             
     82 
    8683          </div>
    8784<!--
  • ILPortal/trunk/skins/ILPortal_public/ploneCustom.css.dtml

    r686 r695  
    1515/* DELETE THIS LINE AND PUT YOUR CUSTOM STUFF HERE */
    1616
     17
     18/* The global section tabs. */
     19#portal-globalnav {
     20//background-color: #00397c;
     21background-color: transparent;
     22float: left;
     23//width:500px;
     24padding: 0em 0em 0em 0em;
     25white-space: nowrap;
     26list-style: none;
     27margin: 63px 0 0 150px;
     28height: auto;
     29line-height: normal;
     30}
     31#portal-globalnav li {
     32display: inline;
     33}
     34#portal-globalnav li a {
     35/* The normal, unselected tabs. They are all links */
     36background-color: transparent;
     37border:none;
     38font-weight:bold;
     39//background-color: #00397c;
     40//border-color: &dtml-globalBorderColor;;
     41//border-width: &dtml-borderWidth;;
     42//border-style: &dtml-borderStyle; &dtml-borderStyle; &dtml-borderStyle; &dtml-borderStyle;;
     43//color: &dtml-globalFontColor;;
     44color: white;
     45height: auto;
     46margin-right: 0.0em;
     47padding: 0em 0em;
     48text-decoration: none;
     49text-transform: &dtml-textTransform;;
     50}
     51#portal-globalnav li.selected a {
     52/* The selected tab. There's only one of this */
     53background-color: &dtml-globalBackgroundColor;;
     54border: &dtml-borderWidth; &dtml-borderStyle; &dtml-globalBorderColor;;
     55border-bottom: &dtml-globalBackgroundColor; &dtml-borderWidth; &dtml-borderStyle;;
     56color: &dtml-globalFontColor;;
     57}
     58#portal-globalnav li a:hover {
     59//background-color: &dtml-globalBackgroundColor;;
     60background-color: transparent;
     61border:none;
     62//border-color: &dtml-globalBorderColor;;
     63//border-bottom-color: &dtml-globalBackgroundColor;;
     64color: white;
     65text-decoration: underline;
     66}
     67
    1768.editoria {
    1869 color: #000000;
     
    56107a.titulo2:hover{
    57108 text-decoration: underline;
     109}
     110
     111dl.portlet {
     112margin: 0px 0 0em 0;
    58113}
    59114
     
    130185}
    131186
     187.navTreeItem a {
     188border-color: &dtml-globalBackgroundColor;;
     189display: block;
     190text-decoration: none;
     191padding-top: 0.2em;
     192padding-bottom: 0.25em;
     193}
     194
     195
     196.contentViews {
     197    padding-left: 0.5em;
     198}
     199
     200.contentViews li a {
     201    margin-right: 0.2em;
     202    padding: 0.0em 0.5em 0.0em 0.5em;
     203}
     204
     205#content {
     206    padding: 1em 0em 0 0em !important;
     207}
     208
    132209
    133210#visual-portal-wrapper {
    134211margin: 0;
    135212padding: 0;
    136 width: 780px;
    137 }
     213width: 760px;
     214}
     215
     216#portal-column-one .visualPadding {
     217padding: 0em 1em 0em 0em;
     218}
     219
     220#portal-column-two .visualPadding {
     221padding: 0em 0em 0em 1em;
     222}
     223
    138224
    139225#portal-logo {
  • ILPortal/trunk/skins/ILPortal_public/portlet_noticias.pt

    r686 r695  
    5353                        </tr>
    5454                     </table>
    55                   </tal:if><br>
     55                  </tal:if>
    5656                  <tal:if tal:condition="python:not even">
    5757                     <span class="titulo" tal:content="item_title">Title</span><br>&nbsp;
     
    7878                     </table>
    7979                  </tal:if>
    80                </tal:block>
     80               </tal:block><br>
    8181 
    8282            </tal:block>
Note: Veja TracChangeset para ajuda no uso do visualizador de conjunto de mudanças.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.