[zope-pt] PloneSlideShow para Plone 3
Ola, existem algum projeto para colocar o PloneSlideShow para funcionar no Plone3? Testei a versão 0.9.0, mas não funciona a macro (global_slide), dá erro no portal_url -- Ronaldo Amaral Santos Tecnólogo em Desenvolvimento de Software Núcleo de Pesquisa em Sistemas de Informação – NSI Cefet-Campos - Linux User #437600
Re: [zope-pt] PloneSlideShow para Plone 3
Lá vai, ah se eu puder ajudar em alguma coisa, pois estou precisando de utilizar a ferramenta em um portal (Plone3) 2008-10-13 15:21:44 ERROR Zope.SiteErrorLog http://localhost:8080/Plone/portal_publicator/updatePBItems Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module Products.CMFPublicator.PublicatorTool, line 374, in updatePBItems Module Products.CMFPublicator.PublicationBoxInformation, line 302, in updateItems Module Products.CMFPublicator.PublicationBoxInformation, line 347, in _extractItem ValueError: An inconsistent path has been passed in item restrictedTraverse. 2008-10-13 15:38:55 ERROR Zope.SiteErrorLog http://localhost:8080/iff/portal_skins/custom/teste Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module Shared.DC.Scripts.Bindings, line 313, in __call__ Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render Module Products.PageTemplates.PageTemplate, line 89, in pt_render Module zope.pagetemplate.pagetemplate, line 117, in pt_render Module zope.tal.talinterpreter, line 271, in __call__ Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 891, in do_useMacro Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 855, in do_condition Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 536, in do_optTag_tal Module zope.tal.talinterpreter, line 521, in do_optTag Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 855, in do_condition Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 824, in do_loop_tal Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 623, in do_insertText_tal Module Products.PageTemplates.Expressions, line 228, in evaluateText Module zope.tales.tales, line 696, in evaluate - URL: file:/home/ronaldo/Plone3/zinstance/parts/productdistros/PloneSlideShow/skins/SlideShow/global_slide.zpt - Line 89, Column 9 - Expression: PythonExpr items['Rights'] + '|' + portal_url + '/' + items['ImageURL'] + '|' + items['Title'] + '|' + portal_url + '/' + items['RelativeContentURL'] + '|nbsp;|' + items['Description'][:75] + '|' + items['Type'] +'|' - Names: {'container': Folder at /iff/portal_skins/custom, 'context': Folder at /iff/portal_skins/custom, 'default': object object at 0xb7d0e528, 'here': Folder at /iff/portal_skins/custom, 'loop': {u'items': Products.PageTemplates.Expressions.PathIterator object at 0xdf7c6ec}, 'nothing': None, 'options': {'args': ()}, 'repeat': Products.PageTemplates.Expressions.SafeMapping object at 0xdf8fe0c, 'request': HTTPRequest, URL= http://localhost:8080/iff/portal_skins/custom/teste, 'root': Application at , 'template': ZopePageTemplate at /iff/portal_skins/custom/teste, 'traverse_subpath': [], 'user': PropertiedUser 'admin'} Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__ - __traceback_info__: items['Rights'] + '|' + portal_url + '/' + items['ImageURL'] + '|' + items['Title'] + '|' + portal_url + '/' + items['RelativeContentURL'] + '|nbsp;|' + items['Description'][:75] + '|' + items['Type'] +'|' Module PythonExpr, line 1, in expression NameError: name 'portal_url' is not defined vlw On Mon, Oct 13, 2008 at 3:28 PM, Cleber J Santos [EMAIL PROTECTED] wrote: Ronaldo Amaral wrote: Ola, existem algum projeto para colocar o PloneSlideShow para funcionar no Plone3? Testei a versão 0.9.0, mas não funciona a macro (global_slide), dá erro no portal_url Olá Ronaldo, Sim já existe um projeto, inclusive sou um dos desenvolvedores, você poderia me informar qual o erro? Enviar um Trace deste erro? Att
Re: [zope-pt] PloneSlideShow para Plone 3
Vlw Cleber, mas vc colocou na Plone.org ou está em algum SVN, caso seja no SVN me passe o endereço. Desde de já agradeço a atenção e se precisar de alguma coisa que eu possa fazer, e só falar. Vlw 2008/10/13 Cleber J Santos [EMAIL PROTECTED] Ok, acabo de subir o produto com este template arrumado, haviam mais linhas, o mais estranho é que quando testei no Plone 3.0.1 rolou de boa, no Plone 2.5 vai tranquilo, mas bem apenas troquei o que havia de portal_url por context/portal_url ou context.portal_url, é provável que essa correção que te passei continue dando erro em mais alguns locais, então recomendo que você baixe novamente o produto ;) Att, Cleber J Santos wrote: Opa, é ao contrário, altere a linha que está assim: span tal:omit-tag= tal:content=python:items['Rights'] + '|' + portal_url + '/' + items['ImageURL'] + '|' + items['Title'] + '|' + portal_url + '/' + items['RelativeContentURL'] + '| |' + items['Description'][:75] + '|' + items['Type'] +'|' / Por essa aqui: span tal:omit-tag= tal:content=python:items['Rights'] + '|' + context.portal_url() + '/' + items['ImageURL'] + '|' + items['Title'] + '|' + portal_url + '/' + items['RelativeContentURL'] + '| |' + items['Description'][:75] + '|' + items['Type'] +'|' / Cleber J Santos wrote: Ronaldo, faça o seguinte, customize o template *global_slide* que está em e troque a linha 89 que está assim: span tal:omit-tag= tal:content=python:items['Rights'] + '|' + portal_url + '/' + items['ImageURL'] + '|' + items['Title'] + '|' + portal_url + '/' + items['RelativeContentURL'] + '| |' + items['Description'][:75] + '|' + items['Type'] +'|' / Por essa aqui span tal:omit-tag= tal:content=python:items['Rights'] + '|' + context.portal_url() + '/' + items['ImageURL'] + '|' + items['Title'] + '|' + portal_url + '/' + items['RelativeContentURL'] + '| |' + items['Description'][:75] + '|' + items['Type'] +'|' / O problema ai é que ele tá chamando o portal_url e não está declarado, inclusive vou atualizando isso no produto agora ;) Att, Ronaldo Amaral wrote: Lá vai, ah se eu puder ajudar em alguma coisa, pois estou precisando de utilizar a ferramenta em um portal (Plone3) 2008-10-13 15:21:44 ERROR Zope.SiteErrorLog http://localhost:8080/Plone/portal_publicator/updatePBItems Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module Products.CMFPublicator.PublicatorTool, line 374, in updatePBItems Module Products.CMFPublicator.PublicationBoxInformation, line 302, in updateItems Module Products.CMFPublicator.PublicationBoxInformation, line 347, in _extractItem ValueError: An inconsistent path has been passed in item restrictedTraverse. 2008-10-13 15:38:55 ERROR Zope.SiteErrorLog http://localhost:8080/iff/portal_skins/custom/teste Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module Shared.DC.Scripts.Bindings, line 313, in __call__ Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render Module Products.PageTemplates.PageTemplate, line 89, in pt_render Module zope.pagetemplate.pagetemplate, line 117, in pt_render Module zope.tal.talinterpreter, line 271, in __call__ Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 891, in do_useMacro Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 855, in do_condition Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 536, in do_optTag_tal Module zope.tal.talinterpreter, line 521, in do_optTag Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 855, in do_condition Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 824, in do_loop_tal Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line
Re: [zope-pt] Esconder portlets
Na classe de seu portlet, coloque a função *available*, se ela retornar True o portlet aparece, caso False não aparece. Como o exemplo abaixo. class Renderer(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. # The 'available' property is used to determine if the portlet should # be shown. @property def available(self): mtool = getToolByName(self, 'portal_membership') if mtool.isAnonymousUser(): return False else: rerturn True 2008/9/1 Cristina Souza [EMAIL PROTECTED] Como escondo portlets de usuários não logados na minha página? Uso o Plone 3.1.4 Abraços! -- Ronaldo Amaral Santos Tecnólogo em Desenvolvimento de Software Núcleo de Pesquisa em Sistemas de Informação – NSI Cefet-Campos - Linux User #437600
Re: [zope-pt] Invasão Câmara
Pelo quem me parece o www2.camara.gov.br era plone. Consulta uma pagina em cache no google pra ver Em 28/06/07, Wilton Alencar [EMAIL PROTECTED] escreveu: Pessoal, tá correndo a notícia. http://g1.globo.com/Noticias/Tecnologia/0,,MUL60646-6174,00.html Alguém sabe se foi na parte plone? Sabemos que a câmara usa muita coisa, mas se alguém tiver detalhes ou puder comentar. Apenas porque na mídia, pode parecer que a culpa foi do Plone/Zope. Abraços. -- Cordialmente, Wilton Souza Alencar www.tom.pro.br -- Ronaldo Amaral Santos Tecnólogo em Desenvolvimento de Software Núcleo de Pesquisa em Sistemas de Informação – NSI Cefet-Campos - Linux User #437600
Re: [zope-pt] Busca Zope - ZCatalog
Olá Diego. ainda não resolvi o problema mas estava com uma linha de pensamento parecida com a sua, que é fazer a busca por uma faixa de data. Valeu pela dica !!! Em 24/05/07, Diego Manhães Pinheiro [EMAIL PROTECTED] escreveu: Olá Ronaldo. Através do DateIndex não é possível fazer esse tipo de busca do tipo informar o mês e ano.É necessário informar o dia mês e ano na consulta ao catálogo. Tem duas formas de fazer: 1) Pra fazer isso vc pode tentar fazer uma busca por faixa de data informando o primeiro dia do do mês atual e o primeiro dia do mês seguinte como faixa de valores. Você pode usar alguns métodos do portal_calendar (getPreviousMonth e getNextMonth) pra lhe ajudar. 2) Se vc quiser pegar os dias exatos(primeiro dia do mês e o último dia do mês ) a meu ver terá q criar um external method pra usar a faixa de valores através do módulo calendar[1]. (gurus de plantão estou certo? ) Você pode habilitá-lo também em python scripts no zope[2] se não quiser usar external method. Você poderia usar o módulo calendar para capturar o primeiro e último dia do mês corretamente, pois consegue informar com anos bisextos e tudo mais. [1] : http://docs.python.org/lib/module-calendar.html [2] : http://wiki.zope.org/zope2/HowToAddModulesToRestrictedCode Espero ter ajudado de alguma forma. :) Em 24/05/07, Ronaldo Amaral [EMAIL PROTECTED] escreveu: Como faço para efetuar uma busca por mês e ano em um determinado tipo de conteúdo, onde utilizo um campo tipo DateField. -- Ronaldo Amaral Santos Tecnólogo em Desenvolvimento de Software 6º Período Noturno Núcleo de Pesquisa em Sistemas de Informação – NSI Cefet-Campos - Linux User #437600 -- --- Diego Manhães Pinheiro Linux User #375020 Para enviar uma mensagem: zope-pt@yahoogrupos.com.br Para desistir envie uma mensagem em branco para: [EMAIL PROTECTED] Links do Yahoo! Grupos -- Ronaldo Amaral Santos Tecnólogo em Desenvolvimento de Software 6º Período Noturno Núcleo de Pesquisa em Sistemas de Informação – NSI Cefet-Campos - Linux User #437600
[zope-pt] Busca Zope - ZCatalog
Como faço para efetuar uma busca por mês e ano em um determinado tipo de conteúdo, onde utilizo um campo tipo DateField. -- Ronaldo Amaral Santos Tecnólogo em Desenvolvimento de Software 6º Período Noturno Núcleo de Pesquisa em Sistemas de Informação – NSI Cefet-Campos - Linux User #437600
[zope-pt] Efetuando Busca pelo Mes e Ano Zcatalog
Aí galera, tenho que listar um determinado tipo de conteúdo utilizando o mes e o ano deste objeto.Pretendo utilizar o ZCatalog, alguém já utilizou algo. -- Ronaldo Amaral Santos Tecnólogo em Desenvolvimento de Software 6º Período Noturno Núcleo de Pesquisa em Sistemas de Informação – NSI Cefet-Campos - Linux User #437600