Maciej Szulik added the comment:
Updated so that users can see each others gh name, but edit only his own. By
the way I've fixed homepage settings, which weren't correct either.
It would be also worth extending search with gh name on user list, but if we
need that I'm gonna need your help
_______________________________________________________
PSF Meta Tracker <metatrac...@psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue579>
_______________________________________________________
diff --git a/html/user.item.html b/html/user.item.html
--- a/html/user.item.html
+++ b/html/user.item.html
@@ -105,7 +105,12 @@
<tr tal:define="name string:homepage; label string:Homepage; value
context/homepage">
<th metal:use-macro="th_label">Home page</th>
- <td><input name="organisation" metal:use-macro="normal_input"></td>
+ <td><input name="homepage" metal:use-macro="normal_input"></td>
+ </tr>
+
+ <tr tal:define="name string:github; label string:GitHub Name; value
context/github">
+ <th metal:use-macro="th_label">GitHub Name</th>
+ <td><input name="github" metal:use-macro="normal_input"></td>
</tr>
<tr>
diff --git a/schema.py b/schema.py
--- a/schema.py
+++ b/schema.py
@@ -96,7 +96,8 @@
contrib_form_date=Date(),
openids=String(), # space separated list
iscommitter=Boolean(),
- homepage=String()
+ homepage=String(),
+ github=String()
)
user.setkey("username")
db.security.addPermission(name='Register', klass='user',
@@ -349,7 +350,7 @@
p = db.security.addPermission(name='View', klass='user',
properties=('id', 'username', 'address', 'realname', 'phone',
'organisation', 'alternate_addresses', 'timezone',
- 'roles', 'contrib_form', 'iscommitter', 'homepage'))
+ 'roles', 'contrib_form', 'iscommitter', 'homepage',
'github'))
db.security.addPermissionToRole('User', p)
db.security.addPermissionToRole('Developer', p)
# Coordinator may view all user properties.
@@ -374,8 +375,8 @@
'address', 'realname',
'phone', 'organisation',
'alternate_addresses',
- 'queries',
- 'timezone')) # Note: 'roles' excluded - users should not be
able to edit their own roles.
+ 'queries', 'timezone',
+ 'homepage', 'github')) # Note: 'roles' excluded - users should
not be able to edit their own roles.
# Also excluded: contrib_form, contrib_form_date,
iscommitter
for r in 'User', 'Developer':
db.security.addPermissionToRole(r, p)
_______________________________________________
Tracker-discuss mailing list
Tracker-discuss@python.org
https://mail.python.org/mailman/listinfo/tracker-discuss