several issues in DvDate

Bug #612582 reported by Sergio Miranda Freire on 2010-08-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OSHIPpy
High
Diego Manhães Pinheiro

Bug Description

Argument magnitudeStatus is missing in the initializer and in the call to the superclass initializer.
magnitude is an derived attribute, so it does not need to appear as an argument in the initializer.

DvDate inherits from DvAbsoluteQuantity and ISO8601Date(support package). So it is necessary to implement all methods of both classes, namely:
      add, subtract, diff, compare, isStrictlyComparableTo (DvAbsoluteQuantity)
     asString, year, month, week, day, monthUnknown, dayUnknown, isPartial, isExtended, isValidISO8601Date (ISO8601Date) and enforce the invariants:
Year_valid: valid_year(year)
Month_valid: not month_unknown implies valid_month(month)
Day_valid: not day_unknown implies valid_day(year, month, day)
Partial_validity: month_unknown implies day_unknown

Related branches

Changed in oship:
importance: Undecided → High
milestone: none → 1.5
Changed in oship:
assignee: nobody → Diego Manhães Pinheiro (dmpinheiro)
Changed in oship:
status: New → In Progress
affects: oship → oshippy
Changed in oshippy:
milestone: 1.5 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers