RyanofTinellb / Smeagol

A suite of programs for creating and maintaining a constructed language website.
http://www.tinellb.com
0 stars 0 forks source link

Make Node and Page Objects #21

Closed RyanofTinellb closed 5 years ago

RyanofTinellb commented 5 years ago

node.py and page.py have been created following somewhat of a functional paradigm. However, the function signature for each method is almost identical across the board, i.e.: each function has the form function(root, location, *args). Hence, it makes sense to make these into a Node and a Page object, so as to save space. This has the added bonus of clearing up the name space, to keep variable node separate from the method node.

RyanofTinellb commented 5 years ago

Oddly, this almost returns node.py and page.py to an earlier point: 1ecff13b4750bde52ff40f1609b7e64f3449c1f9

RyanofTinellb commented 5 years ago

Done. Now to ensure that SiteEditor and DictionaryEditor can use the new objects.