Create a StgitObject class to factorise code for property handling.
authorYann Dirson <ydirson@altern.org>
Tue, 5 Dec 2006 22:07:23 +0000 (22:07 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Tue, 5 Dec 2006 22:07:23 +0000 (22:07 +0000)
commit8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3
tree7f1812920d675f0f76a55a054061cbe4364a05bb
parent9e3f506f0d0e1b0c09d1e9d7051af23bfede7834
Create a StgitObject class to factorise code for property handling.

This change makes it easier to add new stored fields to the Series object,
without having to duplicate existing code from Patch.

Generic field accessors were taken from the Patch class.  Dir accessors
were added to avoid making the __dir attribute public, and were used
to replace Series::__series_dir (that name was a bit redundant anyway).
Create_empty_field came as a natural addition to factorise more code.

Signed-off-by: Yann Dirson <ydirson@altern.org>
stgit/stack.py