Adicionar portlets no PLONE 3
Voltar para o PortalExistem atualmente 4 resposta(s) ao tópico
Re: Adicionar portlets no PLONE 3
Estou com problemas para gerenciar os portlets, alias, não consigo abrir a pagina de gerenciamento dos portlets, podem me ajudar??
o erro que aparece é o seguinte:
| Time | 2009/01/22 08:10:49.984 GMT-2 |
|---|---|
| User Name (User Id) | admin (admin) |
| Request URL | http://localhost/@@manage-portlets |
| Exception Type | TraversalError |
| Exception Value | (<five.customerize.zpt.TTWViewTemplateRenderer object at 0x089746D0>, 'macros') |
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.Five.browser.metaconfigure, line 417, in __call__
- Module Shared.DC.Scripts.Bindings, line 313, in __call__
- Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
- Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
- 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 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 957, in do_defineSlot
- 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 957, in do_defineSlot
- 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 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 745, in do_insertStructure_tal
- Module Products.PageTemplates.Expressions, line 221, in evaluateStructure
- Module zope.tales.tales, line 696, in evaluate
URL: main_template
Line 83, Column 18
Expression: <StringExpr u'plone.leftcolumn'>
Names:{'container': <PloneSite at /Plone>, 'context': <PloneSite at /Plone>, 'default': <object object at 0x00A6B528>, 'here': <PloneSite at /Plone>, 'loop': {}, 'nothing': None, 'options': {'args': (<Products.Five.metaclass.SimpleViewClass from C:\Arquivos de programas\Plone 3\Python\lib\site-packages\plone.app.portlets-1.1.5.1-py2.4.egg\plone\app\portlets\browser\templates\manage-contextual.pt object at 0x08963810>,)}, 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x084FD080>, 'request': <HTTPRequest, URL=http://localhost/@@manage-portlets>, 'root': <Application at >, 'template': <ImplicitAcquirerWrapper object at 0x08963710>, 'traverse_subpath': [], 'user': <PropertiedUser 'admin'>, 'view': <Products.Five.metaclass.SimpleViewClass from C:\Arquivos de programas\Plone 3\Python\lib\site-packages\plone.app.portlets-1.1.5.1-py2.4.egg\plone\app\portlets\browser\templates\manage-contextual.pt object at 0x08963810>, 'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x08907FF0>} - Module Products.Five.browser.providerexpression, line 37, in __call__
- Module plone.app.portlets.browser.editmanager, line 59, in render
- Module Shared.DC.Scripts.Bindings, line 313, in __call__
- Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
- Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
- Module Products.PageTemplates.PageTemplate, line 89, in pt_render
- Module zope.pagetemplate.pagetemplate, line 117, in pt_render
Warning: Macro expansion failed
Warning: zope.traversing.interfaces.TraversalError: (<five.customerize.zpt.TTWViewTemplateRenderer object at 0x08974730>, 'macros') - Module zope.tal.talinterpreter, line 271, in __call__
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 870, in do_useMacro
- Module zope.tales.tales, line 696, in evaluate
URL: edit-manager-contextual
Line 5, Column 2
Expression: <PathExpr standard:'context/@@manage-portlets-macros/macros/portlet-add-form'>
Names:{'container': <PloneSite at /Plone>, 'context': <PloneSite at /Plone>, 'default': <object object at 0x00A6B528>, 'here': <PloneSite at /Plone>, 'loop': {}, 'nothing': None, 'options': {'args': ()}, 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x0898AE68>, 'request': <HTTPRequest, URL=http://localhost/@@manage-portlets>, 'root': <Application at >, 'template': <ImplicitAcquirerWrapper object at 0x08974FD0>, 'traverse_subpath': [], 'user': <PropertiedUser 'admin'>, 'view': <plone.app.portlets.browser.editmanager.ContextualEditPortletManagerRenderer object at 0x08974CD0>, 'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x08974CB0>} - Module zope.tales.expressions, line 217, in __call__
- Module Products.PageTemplates.Expressions, line 153, in _eval
- Module zope.tales.expressions, line 124, in _eval
- Module Products.PageTemplates.Expressions, line 103, in trustedBoboAwareZopeTraverse
- Module zope.traversing.adapters, line 164, in traversePathElement
__traceback_info__: (<five.customerize.zpt.TTWViewTemplateRenderer object at 0x089746D0>, 'macros') - Module zope.traversing.adapters, line 52, in traverse
__traceback_info__: (<five.customerize.zpt.TTWViewTemplateRenderer object at 0x089746D0>, 'macros', ['portlet-add-form'])
REQUEST
form
| -C | '' |
|---|
cookies
| areYourCookiesEnabled | '' |
|---|---|
| __ac | 'NjE2NDZkNjk2ZTo2MTY0NmQ2OTZl' |
lazy items
| SESSION | <bound method SessionDataManager.getSessionData of <SessionDataManager at /session_data_manager>> |
|---|
other
| TraversalRequestNameStack | [] |
|---|---|
| LANGUAGE | u'pt-br' |
| AUTHENTICATED_USER | <PropertiedUser 'admin'> |
| URL | 'http://localhost/@@manage-portlets' |
| VirtualRootPhysicalPath | ('', 'Plone') |
| SiteRootPATH | '/' |
| SERVER_URL | 'http://localhost' |
| LANGUAGE_TOOL | <Products.PloneLanguageTool.LanguageTool.LanguageBinding instance at 0x084FD2B0> |
| AUTHENTICATION_PATH | '' |
| _ec_cache | {144062416: <Products.PageTemplates.Expressions.ZopeContext object at 0x0896E330>} |
| __ac | 'NjE2NDZkNjk2ZTo2MTY0NmQ2OTZl' |
| PUBLISHED | <Products.Five.metaclass.SimpleViewClass from C:\Arquivos de programas\Plone 3\Python\lib\site-packages\plone.app.portlets-1.1.5.1-py2.4.egg\plone\app\portlets\browser\templates\manage-contextual.pt object at 0x08963810> |
| _pts_is_rtl | False |
| ACTUAL_URL | 'http://localhost/@@manage-portlets' |
| disable_border | True |
| URL0 | http://localhost/@@manage-portlets |
| URL1 | http://localhost |
| BASE0 | http://localhost |
| BASE1 | http://localhost |
| BASE2 | http://localhost/@@manage-portlets |
environ
| HTTP_ACCEPT | 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*' |
|---|---|
| CONNECTION_TYPE | 'Keep-Alive' |
| HTTP_USER_AGENT | 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1)' |
| HTTP_REFERER | 'http://localhost/' |
| SERVER_NAME | 'srv_vt05.admix.com.br' |
| GATEWAY_INTERFACE | 'CGI/1.1' |
| SERVER_SOFTWARE | 'Zope/(Zope 2.10.6-final, python 2.4.4, win32) ZServer/1.1 Plone/3.1.6' |
| REMOTE_ADDR | '127.0.0.1' |
| HTTP_ACCEPT_LANGUAGE | 'en-us' |
| SCRIPT_NAME | '' |
| REQUEST_METHOD | 'GET' |
| HTTP_HOST | 'localhost' |
| PATH_INFO | '/@@manage-portlets' |
| SERVER_PORT | '80' |
| SERVER_PROTOCOL | 'HTTP/1.1' |
| HTTP_UA_CPU | 'x86' |
| channel.creation_time | 1232618978 |
| HTTP_ACCEPT_ENCODING | 'gzip, deflate' |
| HTTP_COOKIE | 'areYourCookiesEnabled=; __ac="NjE2NDZkNjk2ZTo2MTY0NmQ2OTZl"' |
| PATH_TRANSLATED | '\\@@manage-portlets' |
Obrigado!
Re: Re: Adicionar portlets no PLONE 3
Ola pessoal, estou começando a utilizar o Plone e tenho uma dúvida sobre os portlets.
Fui no Gerenciador de portlets do Plone e adicionei um portlet de navegação, mas nada aconteceu no meu site!!
O que fiz de errado? imaginei q apareceria uma barra, uma especie de menu, onde estaria presente o conteúdo do site.
Se estou fazendo o caminho errado, qual é o certo??
a idéia era fazer um menu parecido com o deste portal...
Obrigado!
David
Re: Adicionar portlets no PLONE 3
Oi Lucas!
Perguntar não tem problema, mas quem responde gosta muito mais quando você que a pessoa se esforçou, fez o básico, o dever de casa. Senão é tutoria particular :) Gaste ao menos 1h pesquisando no Google, no Plone.Org e nos arquivos do egroups [zope-pt] antes de perguntar qualquer coisa! Ah. E tente antes fazer o que você achar que pode dar certo. Como disseram outro dia, o Plone não vai morder o seu nariz se você chegar perto.
Por exemplo, essa sua dúvida do portlet poderia ser resolvida com você fuçando um pouco. Basta clicar no Gerenciar Portlets que você mencionou e acrescentar um Static Portlet. O Plone 3.1.1 traz essa possibilidade por padrão.
Acho que é fácil fazer isso, li um tutorial, mas não entendi muito bem a parte de instalação, sei lá, ficou meio confuso. Então, se alguém souber me dar uma luz para eu poder criar um portlet somente com um texto e fotos. Como li por ai, um portlet_static. O que eu devo fazer? Posso fazer isso mexendo lá no "gerenciar portlets"? Valeu, estou sempre cheio de dúvidas, espero não chatear ninguém com minhas perguntas.