Thursday, May 7, 2009
TA1
TA1 went good. We learned a lot on the fly. We first hardcoded every field we had with pure html in all of our .py files. We quickly realized that this practice would be cumbersome and extremely 'non-robust.' We saw one group made a Field class and extending subclasses such as "TextBoxField," "SelectField," and "MultiselectField." This made life infinitely easier, as well as enabled us to use the Django templates by passing a dictionary with strings as the keys and any other data type (lists, booleans, whatever) as the values, that were THEN callable inside the template .html files. This was a very useful implementation and had we not done that, our subsequent TA submissions would have been the cause of many more headaches than they were anyhow.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment