Conjunto de mudanças 2548 no repositório publico
- Timestamp:
- 02/05/2006 15:56:11 (15 anos atrás)
- Localização:
- ILPortal/trunk
- Arquivos:
-
- 12 editados
Legenda:
- Não Modificado
- Adicionado
- Removido
-
ILPortal/trunk/Extensions/Install.py
r2547 r2548 88 88 print >>out,'no workflow install' 89 89 90 #bind classes to workflows91 wft = getToolByName(self,'portal_workflow')92 wft.setChainForPortalTypes( ['Resposta'], '')93 90 94 91 # enable portal_factory for given types … … 98 95 "VideoConferencia", 99 96 "TextoPasta", 100 "SolicitacaoFolder",101 "Solicitacao",102 "Resposta",103 97 ] + factory_tool.getFactoryTypes().keys() 104 98 factory_tool.manage_setPortalFactoryTypes(listOfTypeIds=factory_types) -
ILPortal/trunk/Extensions/InstallWorkflows.py
r2547 r2548 1 # -*- coding: utf-8 -*-2 #3 # File: ILPortal.py4 #5 # Copyright (c) 2006 by Interlegis6 # Generator: ArchGenXML Version 1.5.0 svn/devel7 # http://plone.org/products/archgenxml8 #9 # GNU General Public License (GPL)10 #11 # This program is free software; you can redistribute it and/or12 # modify it under the terms of the GNU General Public License13 # as published by the Free Software Foundation; either version 214 # of the License, or (at your option) any later version.15 #16 # This program is distributed in the hope that it will be useful,17 # but WITHOUT ANY WARRANTY; without even the implied warranty of18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the19 # GNU General Public License for more details.20 #21 # You should have received a copy of the GNU General Public License22 # along with this program; if not, write to the Free Software23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA24 # 02110-1301, USA.25 #26 27 __author__ = """STC Interlegis <admin-stc@interlegis.gov.br>"""28 __docformat__ = 'plaintext'29 30 31 1 from Products.CMFCore.utils import getToolByName 32 2 from Products.ExternalMethod.ExternalMethod import ExternalMethod 33 3 34 ##code-section module-header #fill in your manual code here35 ##/code-section module-header36 37 4 def installWorkflows(self, package, out): 38 """Install the custom workflows for this product.""" 5 """Install the custom workflows for this product. 6 """ 39 7 40 8 productname = 'ILPortal' 41 9 workflowTool = getToolByName(self, 'portal_workflow') 42 10 43 ourProductWorkflow = ExternalMethod('temp', 'temp', 44 productname+'.'+'solicitacao_folder_workflow', 45 'createsolicitacao_folder_workflow') 46 workflow = ourProductWorkflow(self, 'solicitacao_folder_workflow') 47 workflowTool._setObject('solicitacao_folder_workflow', workflow) 48 workflowTool.setChainForPortalTypes(['SolicitacaoFolder'], workflow.getId()) 49 50 ourProductWorkflow = ExternalMethod('temp', 'temp', 51 productname+'.'+'solicitacao_workflow', 52 'createsolicitacao_workflow') 53 workflow = ourProductWorkflow(self, 'solicitacao_workflow') 54 workflowTool._setObject('solicitacao_workflow', workflow) 55 workflowTool.setChainForPortalTypes(['Solicitacao'], workflow.getId()) 56 57 ##code-section after-workflow-install #fill in your manual code here 58 ourProductWorkflow = ExternalMethod('temp', 'temp', 11 ourProductWorkflow = ExternalMethod('temp', 12 'temp', 59 13 productname+'.'+'portal_workflow', 60 14 'createPortal_workflow') 61 15 workflow = ourProductWorkflow(self, 'ilportal_workflow') 62 16 workflowTool._setObject('ilportal_workflow', workflow) 63 ##/code-section after-workflow-install64 17 65 18 return workflowTool 66 67 def uninstallWorkflows(self, package, out):68 """Deinstall the workflows.69 70 This code doesn't really do anything, but you can place custom71 code here in the protected section.72 """73 74 ##code-section workflow-uninstall #fill in your manual code here75 ##/code-section workflow-uninstall76 77 pass -
ILPortal/trunk/__init__.py
r2547 r2548 84 84 import VideoConferencia 85 85 import TextoPasta 86 import SolicitacaoFolder87 import Solicitacao88 import Resposta89 86 90 87 # Initialize portal content -
ILPortal/trunk/config.py
r2547 r2548 65 65 'VideoConferencia': 'Add VideoConferencia Content', 66 66 'TextoPasta': 'Add TextoPasta Content', 67 'SolicitacaoFolder': 'Add SolicitacaoFolder Content',68 'Solicitacao': 'Add Solicitacao Content',69 'Resposta': 'Add Resposta Content',70 67 } 71 68 … … 78 75 setDefaultRoles('Add VideoConferencia Content', ('Manager','Owner')) 79 76 setDefaultRoles('Add TextoPasta Content', ('Manager','Owner')) 80 setDefaultRoles('Add SolicitacaoFolder Content', ('Manager','Owner'))81 setDefaultRoles('Add Solicitacao Content', ('Manager','Owner'))82 setDefaultRoles('Add Resposta Content', ('Manager','Owner'))83 77 84 78 product_globals = globals() -
ILPortal/trunk/i18n/generated.pot
r2547 r2548 28 28 #: MembroMesaDiretora.py 29 29 #. Selecione o cargo do parlamentar na mesa diretora 30 ## 1 more: Solicitacao.py31 30 # Original: "cargo" 32 31 msgid "ILPortal_help_cargo" … … 43 42 #: Parlamentar.py 44 43 #. cep 45 ## 1 more: Solicitacao.py46 44 # Original: "cep" 47 45 msgid "ILPortal_help_cep" … … 53 51 #: Legislativa.py 54 52 #. Informe a cidade da Casa Legislativa 55 ## 2 more: CasaLegislativa.py, Solicitacao.py53 ## 1 more: CasaLegislativa.py 56 54 # Original: "Informe a cidade da Casa Legislativa" 57 55 msgid "ILPortal_help_cidade" … … 159 157 # Original: "Informe a data de nascimento do Parlamentar" 160 158 msgid "ILPortal_help_data_nasc" 161 msgstr ""162 163 164 #: Solicitacao.py165 #. ddd166 # Original: "ddd"167 msgid "ILPortal_help_ddd"168 159 msgstr "" 169 160 … … 189 180 #: MesaDiretora.py 190 181 #. Informe uma breve descrição para esse item. 191 ## 6 more: MelhoresPraticas.py, VideoConferencia.py, TextoPasta.py, SolicitacaoFolder.py, Solicitacao.py, Resposta.py182 ## 3 more: MelhoresPraticas.py, VideoConferencia.py, TextoPasta.py 192 183 # Original: "Informe uma breve descricao para esse item." 193 184 msgid "ILPortal_help_description" 194 msgstr ""195 196 197 #: Solicitacao.py198 #. email199 # Original: "email"200 msgid "ILPortal_help_email"201 185 msgstr "" 202 186 … … 213 197 # Original: "email_particular" 214 198 msgid "ILPortal_help_email_particular" 215 msgstr ""216 217 218 #: Solicitacao.py219 #. empresa220 # Original: "empresa"221 msgid "ILPortal_help_empresa"222 199 msgstr "" 223 200 … … 264 241 #. Informe o Endereco da Casa Legislativa 265 242 #. Informe o Endereco da Casa Legislativa 266 ## 1 more: Solicitacao.py267 243 # Original: "Digite o Endereco da Casa Legislativa" 268 244 msgid "ILPortal_help_endereco" … … 270 246 271 247 272 #: Solicitacao.py273 #. escolaridade274 # Original: "escolaridade"275 msgid "ILPortal_help_escolaridade"276 msgstr ""277 278 279 248 #: CasaLegislativa.py 280 249 #. Informe a Unidade Federativa da Casa Legislativa. 281 250 #: Parlamentar.py 282 251 #. estado 283 ## 1 more: Solicitacao.py284 252 # Original: "Informe a Unidade Federativa da Casa Legislativa." 285 253 msgid "ILPortal_help_estado" … … 300 268 # Original: "Adicione uma foto da Casa Legislativa" 301 269 msgid "ILPortal_help_foto" 302 msgstr ""303 304 305 #: Solicitacao.py306 #. fullname307 # Original: "fullname"308 msgid "ILPortal_help_fullname"309 270 msgstr "" 310 271 … … 635 596 #: Parlamentar.py 636 597 #. sexo 637 ## 1 more: Solicitacao.py638 598 # Original: "sexo" 639 599 msgid "ILPortal_help_sexo" … … 681 641 682 642 683 #: Solicitacao.py684 #. telefone685 643 #: Telefone.py 686 644 #. Informe o numero do Telefone … … 758 716 #: Telefone.py 759 717 #. Informe a localizacao do Telefone 760 ## 7 more: MesaDiretora.py, MelhoresPraticas.py, VideoConferencia.py, TextoPasta.py, SolicitacaoFolder.py, Solicitacao.py, Resposta.py718 ## 4 more: MesaDiretora.py, MelhoresPraticas.py, VideoConferencia.py, TextoPasta.py 761 719 # Original: "informe o nome da Casa Legislativa" 762 720 msgid "ILPortal_help_title" … … 778 736 779 737 780 #: Solicitacao.py781 #. username782 # Original: "username"783 msgid "ILPortal_help_username"784 msgstr ""785 786 787 738 #: Parlamentar.py 788 739 #. Bairro … … 794 745 #: MesaDiretora.py 795 746 #. Cargo 796 #: Solicitacao.py797 #. Cargo/Função798 747 ## 1 more: MembroMesaDiretora.py 799 748 # Original: "Cargo" … … 811 760 #: Parlamentar.py 812 761 #. Cep 813 #: Solicitacao.py814 #. CEP815 762 # Original: "Cep" 816 763 msgid "ILPortal_label_cep" … … 820 767 #: Legislativa.py 821 768 #. Cidade 822 ## 3 more: CasaLegislativa.py, Parlamentar.py, Solicitacao.py769 ## 2 more: CasaLegislativa.py, Parlamentar.py 823 770 # Original: "Cidade" 824 771 msgid "ILPortal_label_cidade" … … 863 810 864 811 865 #: Solicitacao.py866 #. Comentario867 # Original: "Comentario"868 msgid "ILPortal_label_comentario"869 msgstr ""870 871 872 812 #: MelhoresPraticas.py 873 813 #. Contexto … … 938 878 939 879 940 #: Solicitacao.py941 #. Ddd942 # Original: "Ddd"943 msgid "ILPortal_label_ddd"944 msgstr ""945 946 947 880 #: Parlamentar.py 948 881 #. Descrição do Local de Representação … … 963 896 #: Diretora.py 964 897 #. Descrição 965 ## 7 more: MesaDiretora.py, MelhoresPraticas.py, VideoConferencia.py, TextoPasta.py, SolicitacaoFolder.py, Solicitacao.py, Resposta.py898 ## 4 more: MesaDiretora.py, MelhoresPraticas.py, VideoConferencia.py, TextoPasta.py 966 899 # Original: "Descricao" 967 900 msgid "ILPortal_label_description" 968 msgstr ""969 970 971 #: Solicitacao.py972 #. Email973 # Original: "Email"974 msgid "ILPortal_label_email"975 901 msgstr "" 976 902 … … 987 913 # Original: "Email_particular" 988 914 msgid "ILPortal_label_email_particular" 989 msgstr ""990 991 992 #: Solicitacao.py993 #. Empresa994 # Original: "Empresa"995 msgid "ILPortal_label_empresa"996 915 msgstr "" 997 916 … … 1009 928 #: Legislativa.py 1010 929 #. Endereco 1011 ## 2 more: Parlamentar.py, Solicitacao.py930 ## 1 more: Parlamentar.py 1012 931 # Original: "Endereco" 1013 932 msgid "ILPortal_label_endereco" … … 1015 934 1016 935 1017 #: Solicitacao.py1018 #. Escolaridade1019 # Original: "Escolaridade"1020 msgid "ILPortal_label_escolaridade"1021 msgstr ""1022 1023 1024 936 #: CasaLegislativa.py 1025 937 #. UF 1026 938 #: Parlamentar.py 1027 939 #. Estado 1028 ## 1 more: Solicitacao.py1029 940 # Original: "UF" 1030 941 msgid "ILPortal_label_estado" … … 1044 955 # Original: "Foto" 1045 956 msgid "ILPortal_label_foto" 1046 msgstr ""1047 1048 1049 #: Solicitacao.py1050 #. Fullname1051 # Original: "Fullname"1052 msgid "ILPortal_label_fullname"1053 957 msgstr "" 1054 958 … … 1332 1236 #: Parlamentar.py 1333 1237 #. Sexo 1334 ## 1 more: Solicitacao.py1335 1238 # Original: "Sexo" 1336 1239 msgid "ILPortal_label_sexo" … … 1376 1279 1377 1280 1378 #: Solicitacao.py1379 #. Telefone1380 1281 #: Telefone.py 1381 1282 #. Fone … … 1426 1327 #: Telefone.py 1427 1328 #. Local 1428 ## 9 more: MesaDiretora.py, CasaLegislativa.py, MembroMesaDiretora.py, MelhoresPraticas.py, VideoConferencia.py, TextoPasta.py, SolicitacaoFolder.py, Solicitacao.py, Resposta.py1329 ## 6 more: MesaDiretora.py, CasaLegislativa.py, MembroMesaDiretora.py, MelhoresPraticas.py, VideoConferencia.py, TextoPasta.py 1429 1330 # Original: "Nome da Casa" 1430 1331 msgid "ILPortal_label_title" … … 1445 1346 msgstr "" 1446 1347 1447 1448 #: Solicitacao.py1449 #. Username1450 # Original: "Username"1451 msgid "ILPortal_label_username"1452 msgstr ""1453 -
ILPortal/trunk/skins/ILPortal_script/imgsatelite_js.py
r2547 r2548 60 60 var point = new GLatLng(lat_inic, lon_inic); 61 61 map.setCenter(point, zoom, G_SATELLITE_MAP); 62 63 // GEvent.addListener(map, "zoomend", function() {64 // alert('ok');65 // });66 62 67 63 for (x = 1; x <= ncasas; x++){ -
ILPortal/trunk/skins/ILPortal_script/validate_destaque.vpy
r2547 r2548 7 7 ##bind subpath=traverse_subpath 8 8 ##parameters=canal='' 9 ##title=V erifica se o usuário selecionou um canal9 ##title=Validates content publishing 10 10 ## 11 11 if not canal: -
ILPortal/trunk/skins/ILPortal_templates/imgsatelite.pt
r2547 r2548 24 24 </style> 25 25 26 <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACjtyVdGNP5-Oo0tgW9mzUB SSRP03RjDuJpmqi_dwAzmXI_FndBQqM3us7YoME6T6esQN2iGdHz-mOw" type="text/javascript"></script>26 <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACjtyVdGNP5-Oo0tgW9mzUBQYE7IuemmLdJNn_A9kpNLqojMnxxQg0mk32UETQl0uXxCshD6b39wZeA" type="text/javascript"></script> 27 27 28 28 <script type="text/javascript" tal:content="structure python:here.imgsatelite_js(latitude=request.get('latitude',''),longitude=request.get('longitude',''),estado=request.get('estado',''))"> -
ILPortal/trunk/skins/ILPortal_templates/join_form.cpt
r2547 r2548 194 194 </div> 195 195 196 197 196 <div class="field" 198 197 tal:condition="allowEnterPassword"> … … 204 203 </div> 205 204 206 <div class="field" 207 tal:define="status_email_interlegis request/status_email_interlegis|nothing"> 208 209 <input type="checkbox" 210 class="noborder" 211 name="status_email_interlegis" 212 size="30" 213 id="cb_status_email_interlegis" 214 tabindex="" 215 tal:attributes="checked python:test(status_email_interlegis, 'checked', None); 216 tabindex tabindex/next;" 217 /> 218 <label for="cb_status_email_interlegis" i18n:translate="label_status_email_interlegis">Solicitar a criação de um e-mail com o domínio do Interlegis</label> 219 </div> 220 221 <div class="field" 205 <div class="row" 222 206 tal:define="objs python: here.getILPortalProperties('sexo'); 223 207 error errors/sexo| nothing; … … 247 231 </div> 248 232 249 <div class=" field"233 <div class="row" 250 234 tal:define="error errors/endereco| nothing; 251 235 endereco request/endereco | nothing;" … … 270 254 </div> 271 255 272 <div class=" field"256 <div class="row" 273 257 tal:define="error errors/cidade| nothing; 274 258 cidade request/cidade | nothing;" … … 294 278 </div> 295 279 296 <div class=" field"280 <div class="row" 297 281 tal:define="objs python: here.getILPortalProperties('estado'); 298 282 error errors/escolaridade| nothing; … … 320 304 </div> 321 305 322 <div class=" field"306 <div class="row" 323 307 tal:define="error errors/cep| nothing; 324 308 cep request/cep | nothing;" … … 344 328 </div> 345 329 346 <div class=" field"330 <div class="row" 347 331 tal:define="error errors/empresa| nothing; 348 332 empresa request/empresa | nothing;" … … 368 352 </div> 369 353 370 <div class=" field"354 <div class="row" 371 355 tal:define="error errors/cargo| nothing; 372 356 cargo request/cargo | nothing;" … … 392 376 </div> 393 377 394 <div class=" field"378 <div class="row" 395 379 tal:define="objs python: here.getILPortalProperties('escolaridade'); 396 380 error errors/escolaridade| nothing; … … 417 401 418 402 </div> 419 <div class=" field"403 <div class="row" 420 404 tal:define="error errors/ddd| nothing; 421 405 ddd request/ddd | nothing; -
ILPortal/trunk/skins/ILPortal_templates/join_form.cpt.metadata
r2547 r2548 4 4 5 5 [validators] 6 validators = validate_emailaddr,join_form_validate ,verifica_dados_usuarios6 validators = validate_emailaddr,join_form_validate 7 7 8 8 [actions] -
ILPortal/trunk/skins/ILPortal_templates/prefs_user_details.cpt
r2547 r2548 73 73 class="enableUnloadProtection" 74 74 tal:condition="user | nothing" 75 tal:attributes="action template/getId" 76 tal:define="dados_usuario python:portal.consulta_dados_usuario_zsql(username=member.getId()); 77 status_email_interlegis python:dados_usuario[0].status_email; 78 email_interlegis python:dados_usuario[0].email_interlegis;"> 75 tal:attributes="action template/getId"> 79 76 80 77 <fieldset> … … 129 126 /> 130 127 </div> 131 132 <div class="field"133 tal:define="status_email_interlegis request/status_email_interlegis | status_email_interlegis |nothing">134 135 <input type="checkbox"136 class="noborder"137 name="status_email_interlegis"138 size="30"139 id="cb_status_email_interlegis"140 tabindex=""141 tal:attributes="checked python:test(status_email_interlegis, 'checked', None);142 tabindex tabindex/next;143 disabled python:test(status_email_interlegis, 'disabled', None);144 name python:test(status_email_interlegis,'status_email_interlegis_temp','status_email_interlegis')"145 />146 <input type="hidden" name="status_email_interlegis" value="1"147 tal:condition="status_email_interlegis" />148 149 <label for="cb_status_email_interlegis" i18n:translate="label_status_email_interlegis">Solicitar a criação de um e-mail com o domínio do Interlegis</label>150 </div>151 152 <div class="field"153 tal:define="error errors/email_interlegis | nothing;"154 tal:attributes="class python:test(error, 'field error', 'field')"155 tal:condition="status_email_interlegis">156 157 <label for="email_interlegis" i18n:translate="label_email_interlegis">Email Interlegis</label>158 159 <div tal:content="error">Validation error output</div>160 161 <input type="text"162 id="email_interlegis"163 name="email_interlegis"164 size="25"165 tabindex=""166 value="email_interlegis"167 disabled="disabled"168 tal:attributes="value python:test(email_interlegis,email_interlegis,'não criado');169 tabindex tabindex/next;"170 />171 172 </div>173 174 128 175 129 <div class="field" … … 243 197 244 198 <label for="estado" i18n:translate="label_estado">Estado</label> 245 199 <span tal:content="estado"/> 246 200 <div tal:content="error">Validation error output</div> 247 201
Note: Veja
TracChangeset
para ajuda no uso do visualizador de conjunto de mudanças.