Roundup Tracker - Issues

Issue 2550911

Title: make default_value in hyperdb work or at least document its use.
Type: rfe Severity: normal
Components: Versions:
Status: new Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ThomasAH, rouilj
Priority: Keywords:

Created on 2016-06-30 23:38 by rouilj, last changed 2018-06-06 23:42 by rouilj.

msg5690 Author: [hidden] (rouilj) Date: 2016-06-30 23:38

  changeset:   4481:9bbf3758c16a
  user:        Stefan Seefeld <>
  date:        Thu Apr 14 12:47:48 2011 +0000
  files:       roundup/cgi/ roundup/
  Allow default value declaration in DB schema.

added the ability to invoke the hyperdb classes with


 prop=String(default_value="no value set")

It assigns self.__default_value to the value that is passed and
defines the get_default_value() method that can return that value, but
it looks like get_default_value() is only used in cgi/

Is there some reason that only cgi/templating does this? I would think
email issue creation, issue creation by roundup_admin etc. should get
this default value as well.

So if a new (issue, user ...) class is created and there is no value
for the property, it should get that property automatically.

In any case we should probably document this option better. I added a
little bit of docs recently but....

Does anybody have more history on this?h
msg6074 Author: [hidden] (ThomasAH) Date: 2018-04-23 07:46
I don't have more history about this, but I was using it in a local
tracker and noticed the following:

status=Link("status", default_value=1), # 1=foo

resulted in the rendered HTML page having "foo" twice in the dropdown:

<option selected="selected" value="1">foo</option>
<option value="1">foo</option>
Date User Action Args
2018-06-06 23:42:58rouiljsettype: rfe
2018-04-23 07:46:05ThomasAHsetnosy: + ThomasAH
messages: + msg6074
2016-06-30 23:38:23rouiljcreate