# HG changeset patch # User John Rouillard # Date 1734816911 18000 # Node ID d0460348bf9ab95652d3cae9763a4300505f6b5a # Parent 984bc9f94ec65be4ec22a729442c0204b4d9988f fix: issue2550924. clean up schema for devel/responsive templates. both templates have the same schema. Changes patches class to patch in devel schema. Change bug.issue.html to account for patches -> patch rename. Sort property list for a permission. Add patch class for responsive template. From both remove incorrect comment. diff -r 984bc9f94ec6 -r d0460348bf9a share/roundup/templates/devel/html/bug.item.html --- a/share/roundup/templates/devel/html/bug.item.html Sat Dec 21 15:23:12 2024 -0500 +++ b/share/roundup/templates/devel/html/bug.item.html Sat Dec 21 16:35:11 2024 -0500 @@ -176,21 +176,21 @@ Patch: - - + + Patch Description: - + Repository: - + Repo. Revision: - + --> diff -r 984bc9f94ec6 -r d0460348bf9a share/roundup/templates/devel/schema.py --- a/share/roundup/templates/devel/schema.py Sat Dec 21 15:23:12 2024 -0500 +++ b/share/roundup/templates/devel/schema.py Sat Dec 21 16:35:11 2024 -0500 @@ -127,7 +127,7 @@ description=String(indexme='yes')) # Patch -patches = FileClass(db, "patches", +patch = FileClass(db, "patch", name=String(), description=String(indexme='yes'), repository=String(), @@ -144,7 +144,6 @@ # title = String() # messages = Multilink("msg") # files = Multilink("file") -# patches = Multilink("patches") # nosy = Multilink("user") # superseder = Multilink("issue") bug = IssueClass(db, "bug", @@ -159,7 +158,7 @@ resolution=Link('resolution'), superseder=Link('bug'), keywords=Multilink('keyword'), - patches=Multilink('patches')) + patches=Multilink('patch')) # Task Type task_type = Class(db, 'task_type', @@ -209,6 +208,7 @@ db.security.addPermissionToRole(r, 'Rest Access') db.security.addPermissionToRole(r, 'Xmlrpc Access') + ########################## # User permissions ########################## @@ -299,7 +299,7 @@ # if you don't want them to p = db.security.addPermission(name='View', klass='user', properties=('id', 'organisation', 'phone', 'realname', 'timezone', - 'vcs_name', 'username')) + 'username', 'vcs_name')) db.security.addPermissionToRole('User', p) db.security.addPermissionToRole('Developer', p) diff -r 984bc9f94ec6 -r d0460348bf9a share/roundup/templates/responsive/schema.py --- a/share/roundup/templates/responsive/schema.py Sat Dec 21 15:23:12 2024 -0500 +++ b/share/roundup/templates/responsive/schema.py Sat Dec 21 16:35:11 2024 -0500 @@ -144,7 +144,6 @@ # title = String() # messages = Multilink("msg") # files = Multilink("file") -# patches = Multilink("patches") # nosy = Multilink("user") # superseder = Multilink("issue") bug = IssueClass(db, "bug", @@ -158,7 +157,8 @@ status=Link('status'), resolution=Link('resolution'), superseder=Link('bug'), - keywords=Multilink('keyword')) + keywords=Multilink('keyword'), + patches=Multilink('patch')) # Task Type task_type = Class(db, 'task_type',