[Fwd: [railroad-dev] Re: Problems with Railroad + Zope]

Daniel A Fulton dfulton at Chindex.com
Tue Apr 12 12:24:28 MEST 2005


As i posted earlier (04/07/2005), this form is erroring on several input 
tal:attributes from the railroadServiceAdd.zpt.  the 
manage_RailroadService method takes variables repo_url, services_url, 
repository_name, client_name...

short:

1. you've 2 options for the attribute error for services_url, 
repository_name and client_name:

A. delete the tal:attributes on each of these <input>s.  it's trying to 
service the tal:attributes call to here/services_url which has not been 
passed to this form's FORM or REQUEST namespace. same, for repository_name 
and client_name.

B. tal:define these variables ie. tal:define="services_url 
here/services_url|REQUEST/services_url|nothing" so that the tal:attributes 
for said variable are correct...

2. add a <input type="text" name="repo_url" size="50"> to this form.

i can't make it any more clear than that.

d

Message: 1
Date: Mon, 11 Apr 2005 10:28:32 -0500
From: "Floyd May" <Fmay at okcareertech.org>
Subject: Re: [Fwd: [railroad-dev] Re: Problems with Railroad + Zope]
To: <railroad-dev at codespeak.net>
Message-ID: <s25a5161.056 at gwia.okcareertech.org>
Content-Type: text/plain; charset=US-ASCII

Thank you very much!

However, the problem still remains that I can't actually add a Railroad
Service object.  Adding the opening <table> tag gets me a little
farther:

Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 106, in _exec
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - <PageTemplateFile at /manage_addRailroadServiceForm>
  Module TAL.TALInterpreter, line 189, in __call__
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 262, in do_startEndTag
  Module TAL.TALInterpreter, line 290, in do_startTag
  Module TAL.TALInterpreter, line 356, in attrAction_tal
  Module Products.PageTemplates.TALES, line 226, in evaluateText
  Module Products.PageTemplates.TALES, line 220, in evaluate
   - URL: manage_addRailroadServiceForm
   - Line 52, Column 8
   - Expression: standard:'here/services_url'
   - Names:
      {'container': <__FactoryDispatcher__ instance at 414f1590>,
       'context': <__FactoryDispatcher__ instance at 414f1590>,
       'default': <Products.PageTemplates.TALES.Default instance at
0x40c33a6c>,
       'here': <__FactoryDispatcher__ instance at 414f1590>,
       'loop': <SafeMapping instance at 414f1560>,
       'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0x40c2df8c>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <SafeMapping instance at 414f1560>,
       'request': <HTTPRequest,
URL=http://xxx.xxx.xxx.xxx:xxxx/manage_addProduct/Railroad/manage_addRailroadServiceForm>,
       'root': <Application instance at 413e1c80>,
       'template': <PageTemplateFile at
/manage_addRailroadServiceForm>,
       'traverse_subpath': [],
       'user': manager}
  Module Products.PageTemplates.Expressions, line 201, in __call__
  Module Products.PageTemplates.Expressions, line 189, in _eval
  Module Products.PageTemplates.Expressions, line 145, in _eval
   - __traceback_info__: here
  Module Products.PageTemplates.Expressions, line 354, in
restrictedTraverse
   - __traceback_info__: {'path': ['services_url'],
'TraversalRequestNameStack': []}
AttributeError: services_url


But I'm still very stuck.  What can I do?

F.

>>> Martijn Faassen <faassen at infrae.com> 4/8/2005 1:15:39 PM >>>
Hey,

[snip]

> I had the most hellacious time even locating lxml, so I assumed that

> the version I pulled down from infrae's CVS server had renamed etree
> to elementtree.  Using CVS was the only way I could even GET lxml,
so
> if you know of a better way to locate lxml, or, specifically, etree,

> please let me know, because I'm pulling my hair out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/railroad-dev/attachments/20050412/fbe84b8b/attachment.html


More information about the railroad-dev mailing list