Python Desktop Server 29.5.2003

2003-05-29

Rescuing Lost Nodes

  1. Thank your gods that you make backups.

  2. Fetch wiki.data from the most recent backup.

  3. ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
    Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import metakit
    >>> db = metakit.storage('wiki.data')
    >>> nodes = db.getas("nodes[id:S,title:S,text:S")
    >>> res, found = nodes.locate({'id':'WikiTool'})
    >>> found
    1
  4. Sigh with relief.

  5. >>> t = nodes[res].text
    >>> t[:60]
    ".. contents:: \n\nWhat?\n-----\n\nI've hacked together the PyDS W"
    >>> file('phew.txt','wt').write(t)
  6. Copy content from phew.txt back into PyDS as WikiTool/ToDo.

  7. Cackle with laughter.

posted at 12:22:56    #    comment []    trackback []
 

Edit non-existent subnode bug

Oops

Exception exceptions.KeyError: 

categoryid File Line Function 
Source 

D:\Python22\Lib\site-packages\PyDS\Tool.py 1068 
continue_request s = getattr(self,meth)(req) 

D:\Python22\Lib\site-packages\PyDS\WikiTool.py 257 
show_html _flet.begin(categoryid=node ['categoryid'], id=id) 

I linked to WikiTool/ToDo and tried to follow it.

Oh, bugger. I just trashed my to do list by copying the error before pasting the list somewhere else...

posted at 12:10:08    #    comment []    trackback []
 

Duplicating the Amelie Effect

Oooooh.

posted at 11:53:04    #    comment []    trackback []
 

Bride of Windows

Nifty, though the DHTML Imposter Exploding Tree List Menu is closer to what I want. If anyone has a tree view that'd make sense for the heirachial display of the new WikiTool (grab the most recent version), please let me know.

posted at 11:20:00    #    comment []    trackback []
May 2003
MoTuWeThFrSaSu
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 
Apr
2003
 Jun
2003

Posts related to PyDS

XML-Image Letterimage

© 2003-2004, Garth T Kidd