Obrigada,
Rafa
Bruno Rezende <[EMAIL PROTECTED]> escreveu:
Aí já deve ser problema no cpt.metadata. Tente editar usando o base_edit e veja se salva...On 8/2/06, Rafahela Bazzanella < [EMAIL PROTECTED]> wrote:Olá Bruno,
Desculpa não ter respondido antes, mas estava fazendo uns testes aqui. Bom, fiz outra coisa, copiei o conteúdo do base_edit para o meu edit e coloquei meu código, funcionou, mas estou com problemas em salvar. Estou vendo isto.
Obrigada,
Rafa
Bruno Rezende <[EMAIL PROTECTED]> escreveu:Olá,
acho que vc não deve utilizar o main_template e preencher o slot main. Se vc ler o base_edit (pelo menos no archetypes 1.3 era assim), vc verá que ele procura por um arquivo, com o nome ${nometipo}_edit, onde algumas macros, body entre elas, serão definidas. Acho que no seu caso bastaria um arquivo com o nome resolucao_edit.pt com o conteúdo:
<metal:define define-macro="body"><metal:use use-macro="here/edit_macros/macros/body"><metal:fieldMacro use-macro ="python:here.widget('id', mode='edit')" /><metal:fieldMacro use-macro="python:here.widget('title', mode='edit')" /> <metal:fieldMacro use-macro="python:here.widget('descricao', mode='edit')" /></metal:use></metal:define >
Vc teria que utilizar o base_edit para a edição. Tente isso e veja se funciona.
um abraço,
BrunoOn 8/1/06, Rafahela Bazzanella < [EMAIL PROTECTED]> wrote:Pessoal,
Fiz um produto e precisava que um dos tipos tivesse um formulário de
edição diferente do base_edit. Segui um exemplo do produto da Pycon
(inscricao_edit.pt), coloquei meu código no paste.plone.org [1].
Mas estou tendo este erro sempre:
Traceback (innermost last):
* Module ZPublisher.Publish, line 115, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 41, in call_object
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 195, in _exec
* Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
* Module Products.PageTemplates.PageTemplate, line 104, in
pt_render
<FSPageTemplate at /sigfs/resolucao_edit used
for /sigfs/fundos/agronegocios/ev/titulo-da-reuniao/ata-da-reuniao-2/resolucao-da-sub-acao-sub-acao-1>
* Module TAL.TALInterpreter , line 238, in __call__
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 780, in do_defineSlot
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter , line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 728, in do_defineMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 772, in do_defineSlot
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 728, in do_defineMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter , line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 780, in do_defineSlot
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter , line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 689, in do_loop_tal
* Module Products.PageTemplates.TALES, line 206, in setRepeat
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:Archetypes/skins/archetypes/edit_macros.pt
Line 79, Column 12
_expression_: standard:'fields'
Names:
{'container': <PloneSite at /sigfs>,
'context': <Resolucao
at /sigfs/fundos/agronegocios/ev/titulo-da-reuniao/ata-da-reuniao-2/resolucao-da-sub-acao-sub-acao-1>,
'default': <Products.PageTemplates.TALES.Default instance at
0xb724b10c>,
'here': <Resolucao
at /sigfs/fundos/agronegocios/ev/titulo-da-reuniao/ata-da-reuniao-2/resolucao-da-sub-acao-sub-acao-1>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at
0xb33129ac>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0xb71eb1cc>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0xb33129ac>,
'request': <HTTPRequest,
URL="" href="http://localhost:8580/sigfs/fundos/agronegocios/ev/titulo-da-reuniao/ata-da-reuniao-2/resolucao-da-sub-acao-sub-acao-1/resolucao_edit" target="_blank" > http://localhost:8580/sigfs/fundos/agronegocios/ev/titulo-da-reuniao/ata-da-reuniao-2/resolucao-da-sub-acao-sub-acao-1/resolucao_edit >,
'root': <Application at >,
'template': <FSPageTemplate at /sigfs/resolucao_edit used
for /sigfs/fundos/agronegocios/ev/titulo-da-reuniao/ata-da-reuniao-2/resolucao-da-sub-acao-sub-acao-1>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
* Module Products.PageTemplates.Expressions, line 185, in __call__
* Module Products.PageTemplates.Expressions, line 173, in _eval
* Module Products.PageTemplates.Expressions, line 123, in _eval
__traceback_info__: fields
KeyError: 'fields'
Estou usando o Plone 2.5 e Archetypes 1.4.
Obrigada,
Rafa
[1] http://paste.plone.org/9742
_______________________________________________________
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
http://br.mobile.yahoo.com/mailalertas/
O Yahoo! está de cara nova. Venha conferir!
--
um abraço,
Bruno
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! __._,_.___
Para enviar uma mensagem: [email protected]
Para desistir envie uma mensagem em branco para: [EMAIL PROTECTED]
| Yahoo! Grupos, um serviço oferecido por: | |
|
Links do Yahoo! Grupos
- Para visitar o site do seu grupo na web, acesse:
http://br.groups.yahoo.com/group/zope-pt/
- Para sair deste grupo, envie um e-mail para:
[EMAIL PROTECTED]
- O uso que você faz do Yahoo! Grupos está sujeito aos Termos do Serviço do Yahoo!.
__,_._,___
