Work on native gui: views and database model
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: WTFPL
|
||||
|
||||
from .dbrecord import DbRecord
|
||||
|
||||
class Task(DbRecord):
|
||||
|
||||
table = "task"
|
||||
pk_field = "taskid"
|
||||
fields = ('taskid', 'vid', 'projid', 'taskname', 'priority', 'taskstate',
|
||||
'state_ts', 'plandate', 'duedate', 'started', 'finished', 'responsible')
|
||||
|
||||
def __init__(self, db, taskid=None):
|
||||
super().__init__(db, taskid)
|
||||
self.title = _("Task({})")
|
||||
Reference in New Issue
Block a user