You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a number of utilities or "presentation" functions, that would be much more at home attached to a model.
For example, coda_replication.presentation.xmlToQueueEntry would be more appropriate as a converter constructor on the QueueEntry model...
classQueueEntry(models.Model):
# ...@classmethoddeffrom_xml(self, xml):
# xmlToQueueEntry body here.
Of course, not all of the functions will work like this. An xml -> object function that just updates an object might be more appropriately attached as an instance method.
The text was updated successfully, but these errors were encountered:
There are a number of utilities or "presentation" functions, that would be much more at home attached to a model.
For example,
coda_replication.presentation.xmlToQueueEntry
would be more appropriate as a converter constructor on theQueueEntry
model...Of course, not all of the functions will work like this. An
xml -> object
function that just updates an object might be more appropriately attached as an instance method.The text was updated successfully, but these errors were encountered: