I don't know what I did just there, but I really have got back the momentum.
I'd say that the Model class per se is pretty complete. The stuff around is is not very much so, e.g. I only have three types of Fields, and the database interface is only 50% done. But Models should kick ass right about now.
The 50% I just mentioned is, by the way, somewhat literal. Unlike Django, that has its models always go through a Manager until you can access the database, LightFrame has a perhaps even more intuitive way of accessing the data. Data retrieval is split into two methods - single results, interfaced with the model object itself, and several results, interfaced with a special Entries object. The reason is that data is handled 50% of the time as single entries (showing individual blog entries), and 50% of the time as a collection of entries (a blog archive). This enables the developer to be more assured which quantity he/she is dealing with. LightFrame can guarantee that you only delete a maximum of one entry, when you delete it with a Model.
On a related note, the code is going a major reorganization. Files are thrown about and there's poking and tweaking everywhere. The next commit will contain a working Model system, and that isn't all that far in the future, I might add. Ooh, I feel somewhat giddy inside as a first test release is nearing fast. But the fixing rounds that ensue just after that aren't something I look forward to...
On an unrelated note, I haven't heard from Joona since he took a checkout of the code, so I've taken him off the contributor list.
Monday, March 3, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment