Garth's test of PyDS 30.5.2004

2004-05-30

DirectPydsUriTest

As DirectPydsUriTest points out, I should capture outbound pyds:/ links and redirect them appropriately. [Fixed.]

posted at 21:24:48    #    comment []    trackback []
 

Backslashes in Wiki node titles

When I first made EmptyParentNodeTest, I accidentally used backslashes to separate the ID. That caused problems because the code I was using to separate the names worked (_fullSplit), but the subsequent name lookups I was performing after recomposing with '/' didn't. I need to automatically translate them, or at least issue an appropriate warning. [Fixed.]

posted at 14:33:04    #    comment []    trackback []
 

Empty Title Test

I should automatically fill in the titles of new Wiki nodes. I've added EmptyTitleTest to track it. [Done.]

posted at 13:26:56    #    comment []    trackback []
 

New bug!

I was trying to post a new Wiki node (EmptyParentNodeTest), and...

Exception exceptions.NameError: 
global name 'getPost' is not defined

PyDS\Tool.py 967 process_request 
u = getattr(tool,meth)(req) 

PyDS\WikiTool.py 569 edit_redir 
id = self.addNode(id, title, text, template=int(template)) 

PyDS\WikiTool.py 699 addNode 
meshTool.renderItemsWithUnresolvedLinks() 

PyDS\MeshTool.py 986 renderItemsWithUnresolvedLinks 
return [handles, self.renderItems(handles)] 

PyDS\MeshTool.py 1015 renderItems 
method(item.uniqueId) 

PyDS\WeblogTool.py 325 renderItemByUniqueId 
post = getPost(uniqueId) 

Fix:

# Render an item by its unique ID
def renderItemByUniqueId(self, uniqueId):
        """Render all pages associated with the post identified by `uniqueId`."""
        post  = self.getPost(uniqueId)
        # ... and so on

I've got no idea why renderItemsWithUnresolvedLinks was triggering weblog renders. I should also look into that.

posted at 13:22:40    #    comment []    trackback []
May 2004
MoTuWeThFrSaSu
      1 2
3 4 5 6 7 8 9
10111213141516
17181920212223
24252627282930
31      
Apr
2003
 Jun
2004

Garth is testing PyDS rather more extensively than at first he thought he would.

XML-Image Letterimage

© 2004, Garth T Kidd