Ticket #5 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Traceback upon Menu Save with docs/lightbulb.gif

Reported by: Randy Selzler <RSelzler@…> Owned by: sheep
Priority: High Milestone: 1.4.0
Component: Hatta Wiki Version: 1.3.3dev
Keywords: traceback Menu Save gif Cc: RSelzler@…

Description

(STARTING A NEW TICKET, because I had added this to #4, which
was a separate defect, already closed and couldn't reopen).

Now I'm getting this traceback...

Traceback (most recent call last):

File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 1174, in communicate

req.respond()

File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 544, in respond

self._respond()

File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 556, in _respond

response = self.wsgi_app(self.environ, self.start_response)

File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 176, in call

return app(environ, start_response)

File "/var/lib/python-support/python2.6/werkzeug/utils.py", line 1694, in <lambda>

return _patch_wrapper(f, lambda *a: f(*a)(*a[-2:]))

File "./hatta.py", line 3288, in application

return endpoint(request, values)

File "./hatta.py", line 2682, in save

self.index.update(self, request)

File "./hatta.py", line 1546, in update

self.reindex(wiki, request, changed)

File "./hatta.py", line 1515, in reindex

self.reindex_page(page, title, cursor)

File "./hatta.py", line 1484, in reindex_page

text = get_text()

TypeError: <lambda>() takes exactly 1 argument (0 given)

The test scenario is nearly the same.
It works with two pages in docs (Home and Menu).
I can Edit Menu and Save it okay.
The traceback occurs if a third file exists, docs/lightbulb.gif
The traceback occurs upon the Menu Save.

Happy hunting :)
-- Randy

Change History

comment:1 Changed 2 years ago by sheep

  • Status changed from new to accepted

That's hat you get for doing quick fixes without really looking. I made another mistake while fixing #4. It should be ok now, please test.

comment:2 Changed 2 years ago by sheep

  • Priority set to Normal
  • Status changed from accepted to closed
  • Resolution set to fixed

comment:3 Changed 2 years ago by sheep

By the way, you can always reopen tickets: expand the 'Modify ticket' section and select 'reopen'.

comment:4 Changed 2 years ago by Randy Selzler <RSelzler@…>

  • Status changed from closed to reopened
  • Resolution fixed deleted

The docs tree branch is better... tracebacks have not been seen,
but pages are not rendered, found or created correctly in the tree.

I haven't narrowed the problem to a simple test yet,
but I thought feedback sooner, was better than later.
These notes are from memory and tests 2 days ago (which makes
them particularly suspect).
Pull on hatta-dev this morning doesn't show any updates since then.

When I create a very simple site from scratch,
hatta.py -D and dev.py -D both seems to work the
same and will correctly create subdirectories and pages.

When I attempt to serve my real site, then...

  • Logo and png files are not rendered.
  • existing pages in subdirectories have 'blue links' (are supposedly found). When I follow the link, the Edit form is rendered and the page name is displayed with '%2F' for the '/' character. Saving the Edit form will create a page in the flat name space using '%2F'.

-- Randy

comment:5 Changed 2 years ago by anonymous

Can you elaborate on "when I attempt to serve my real site"? What does that mean? What's the difference?

comment:6 Changed 2 years ago by sheep

  • Priority changed from Normal to High
  • Status changed from reopened to accepted
  • Milestone set to 1.4.0

comment:7 Changed 2 years ago by anonymous

I suspect that the problem is not with Hatta, but with your web server which apparently duble-encodes the already %-encoded URLs. Maybe we can find a configuration option or some code in Hatta to work around that?

comment:8 Changed 2 years ago by Randy Selzler <RSelzler@…>

  • Cc RSelzler@… added
  • Status changed from accepted to closed
  • Resolution set to fixed

Actually, the problem is me and being too distracted by other objectives.
The "dev.py -D" seems to work correctly with my 300+ page directory tree.
I'm changing the ticket status back to resolved.

Thanks for the docs tree support !!!
It's awesome :)

--Randy

Note: See TracTickets for help on using tickets.